/* --- Quantity Offers UI (Modular) --- */
.opsim-quantity-offers-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.opsim-quantity-offer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.opsim-quantity-offer-item.active {
    border-color: var(--opsim-brand, #355872);
    background: rgba(var(--opsim-brand-rgb, 53, 88, 114), 0.03);
    box-shadow: 0 4px 15px rgba(var(--opsim-brand-rgb, 53, 88, 114), 0.08);
}

.opsim-offer-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--opsim-brand, #355872);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

.opsim-offer-img {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.opsim-offer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opsim-offer-details {
    flex: 1;
    text-align: left;
}

.opsim-offer-subtitle {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-bottom: 2px;
}

.opsim-offer-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2px;
}

.opsim-offer-bundle-variations {
    margin-top: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

.opsim-quantity-offer-item.active .opsim-offer-bundle-variations {
    display: flex;
}

.opsim-bundle-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.opsim-bundle-item-header {
    font-size: 0.75rem;
    font-weight: 900;
    color: #111827;
    width: 25px;
    flex-shrink: 0;
}

.opsim-bundle-item-selects {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.opsim-bundle-select-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
}

.opsim-bundle-select-group label {
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--opsim-brand, #355872);
    text-transform: uppercase;
    opacity: 0.9;
}

/* Custom Dropdown Styling to fix the Icon issue */
.opsim-bundle-select-group select {
    width: 100%;
    font-size: 0.75rem;
    padding: 6px 28px 6px 10px; /* Space for icon */
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    background: #fafafa;
    color: #111827;
    outline: none;
    cursor: pointer;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23355872' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
}

.opsim-bundle-select-group select:focus {
    border-color: var(--opsim-brand, #355872);
    background-color: #fff;
}

.opsim-offer-pricing {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.opsim-offer-price {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.opsim-offer-compare {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
    .opsim-quantity-offer-item {
        padding: 10px;
        gap: 10px;
    }
    .opsim-offer-label {
        font-size: 0.75rem;
    }
    .opsim-bundle-item-selects {
        grid-template-columns: 1fr 1fr;
    }
    .opsim-bundle-select-group select {
        font-size: 0.7rem;
        padding: 5px 24px 5px 8px;
        background-position: right 6px center;
        background-size: 8px;
    }
    .opsim-offer-img {
        width: 38px;
        height: 38px;
    }
}
