/* =============================================
   Quantity Upsell Tiles - Hey Midori Style
   Variant C: Rijen met radio-buttons
   ============================================= */

.qty-upsell-wrap {
    margin-bottom: 24px;
}

/* Header */
.qty-upsell-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.qty-upsell-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #4a6741;
}

.qty-upsell-stock-warning {
    font-size: 11px;
    font-weight: 600;
    color: #c0392b;
    background: #fdf0ef;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Rows container */
.qty-upsell-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual row */
.qty-upsell-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid #e0ddd7;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.qty-upsell-row:hover:not(.disabled) {
    border-color: #4a6741;
    box-shadow: 0 2px 8px rgba(74, 103, 65, 0.08);
}

.qty-upsell-row.selected {
    border-color: #4a6741;
    background: #edf2eb;
}

.qty-upsell-row.disabled {
    border-color: #e5e2dc;
    background: #f5f3f0;
    opacity: 0.55;
    cursor: not-allowed;
}

/* Radio button */
.qty-upsell-radio {
    flex-shrink: 0;
}

.qty-upsell-radio-outer {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.qty-upsell-row.selected .qty-upsell-radio-outer {
    border-color: #4a6741;
}

.qty-upsell-row.disabled .qty-upsell-radio-outer {
    border-color: #d0ccc5;
}

.qty-upsell-radio-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a6741;
    transition: transform 0.15s ease;
}

/* Info section */
.qty-upsell-info {
    flex: 1;
    min-width: 0;
}

.qty-upsell-info-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qty-upsell-label {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
}

.qty-upsell-row.disabled .qty-upsell-label {
    color: #bbb;
}

.qty-upsell-desc {
    font-size: 13px;
    color: #555;
}

.qty-upsell-row.disabled .qty-upsell-desc {
    color: #ccc;
}

/* Badges */
.qty-upsell-badge {
    display: inline-block;
    background: #4a6741;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.qty-upsell-badge-unavailable {
    display: inline-block;
    background: #e5e2dc;
    color: #999;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Info bottom row */
.qty-upsell-info-bottom {
    margin-top: 3px;
    font-size: 13px;
    color: #555;
}

.qty-upsell-per-unit {
    color: #555;
}

/* Bespaar tekst */
.qty-upsell-saving {
    color: #c0392b;
    font-weight: 600;
    margin-left: 8px;
}

/* Inline wc_price spans */
.qty-upsell-saving .woocommerce-Price-amount {
    color: #c0392b;
    font-weight: 600;
}

.qty-upsell-unavailable-text {
    color: #ccc;
    font-style: italic;
}

/* Price column */
.qty-upsell-price-col {
    text-align: right;
    flex-shrink: 0;
}

.qty-upsell-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    display: block;
}

.qty-upsell-price.strikethrough {
    text-decoration: line-through;
    color: #ccc;
}

.qty-upsell-row.disabled .qty-upsell-price {
    color: #ccc;
    text-decoration: line-through;
}

.qty-upsell-original {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    display: block;
    margin-top: 2px;
}

/* Hide default WooCommerce quantity input when upsell is active */
.qty-upsell-wrap ~ .quantity,
.qty-upsell-active .quantity {
    display: none !important;
}

/* Hide upsell in Astra sticky add-to-cart bar */
.ast-sticky-add-to-cart .qty-upsell-wrap,
.ast-sticky-add-to-cart-action-wrap .qty-upsell-wrap {
    display: none !important;
}

/* =============================================
   Responsive: mobiel
   ============================================= */

@media (max-width: 480px) {
    .qty-upsell-row {
        padding: 14px 14px;
        gap: 10px;
    }

    .qty-upsell-label {
        font-size: 14px;
    }

    .qty-upsell-desc {
        font-size: 12px;
    }

    .qty-upsell-price {
        font-size: 16px;
    }

    .qty-upsell-info-top {
        gap: 6px;
    }

    .qty-upsell-badge,
    .qty-upsell-badge-unavailable {
        font-size: 8px;
        padding: 2px 8px;
    }
}
