/* OnDuty Options — frontend styles */

.ondutyopt-wrapper {
    margin: 20px 0;
    padding: 0;
}

.ondutyopt-section {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.ondutyopt-heading {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #232323;
}

.ondutyopt-subtitle {
    margin: 0 0 12px;
    font-size: 13px;
    color: #666;
}

/* ----- Text swap dropdown ----- */

.ondutyopt-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

/* ----- Print add-on grid ----- */

.ondutyopt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.ondutyopt-card {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    font-weight: normal;
}

.ondutyopt-card:hover {
    border-color: #0075ff;
    background: #f0f7ff;
}

.ondutyopt-cb {
    margin: 0 10px 0 0;
    flex-shrink: 0;
    transform: scale(1.15);
    cursor: pointer;
}

.ondutyopt-card:has(.ondutyopt-cb:checked) {
    border-color: #0075ff;
    background: #e8f2ff;
    box-shadow: 0 2px 8px rgba(0,117,255,0.15);
}

.ondutyopt-thumb {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ondutyopt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ondutyopt-no-img {
    color: #bbb;
    font-size: 20px;
}

.ondutyopt-meta {
    flex: 1;
    min-width: 0;
}

.ondutyopt-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ondutyopt-price {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0075ff;
    margin-top: 2px;
}

.ondutyopt-price-tag {
    font-size: 14px;
    font-weight: 700;
    color: #0075ff;
    margin-left: 8px;
}

/* ----- Upload section ----- */

.ondutyopt-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ondutyopt-upload-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.ondutyopt-upload-status {
    font-size: 13px;
    color: #666;
}

.ondutyopt-upload-status.success {
    color: #27ae60;
    font-weight: 600;
}

.ondutyopt-upload-status.error {
    color: #e74c3c;
    font-weight: 600;
}

.ondutyopt-upload-status.uploading {
    color: #f39c12;
}

/* ----- Mobile ----- */
@media (max-width: 544px) {
    .ondutyopt-grid {
        grid-template-columns: 1fr;
    }
    .ondutyopt-section {
        padding: 12px 14px;
    }
}
