/*
 * AW Custom Display Attributes — Radio Button Styles
 * Scoped under .aw-cda-radio-group
 */

.aw-cda-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.aw-cda-radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    background-color: #fff;
    min-width: 60px;
    text-align: center;
}

.aw-cda-radio-label:hover {
    border-color: #111;
}

.aw-cda-radio-label.aw-cda-radio-active {
	border-color: var(--e-global-color-primary);
    background-color: #fff;
    color: black;
}

/* Out of stock — grayed out */
.aw-cda-radio-label.aw-cda-radio-oos {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: line-through;
}

/* Hide the native radio circle */
.aw-cda-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.aw-cda-radio-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

/* Responsive: stack on small screens */
@media screen and (max-width: 480px) {
    .aw-cda-radio-group {
        gap: 8px;
    }

    .aw-cda-radio-label {
        padding: 6px 14px;
        min-width: 50px;
    }

    .aw-cda-radio-text {
        font-size: 13px;
    }
}

/* Radio group — variation price display */
.aw-cda-radio-price {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.aw-cda-radio-price del {
    color: #9ca3af;
    font-weight: 400;
    margin-right: 4px;
}

.aw-cda-radio-price ins {
    text-decoration: none;
}

/* Dropdown — inline variation price display */
.aw-cda-dropdown-price {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.aw-cda-dropdown-price del {
    color: #9ca3af;
    font-weight: 400;
    margin-right: 4px;
}

.aw-cda-dropdown-price ins {
    text-decoration: none;
}

/* =============================================================
 *  pa_kleur overview — multi-qty list
 * ============================================================= */

.aw-cda-kleur-overview {
    width: 100%;
}

.aw-cda-kleur-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 350px;
    overflow-y: auto;
    /* border: 1px solid #e5e7eb; */
    border-radius: 6px;
}

/* Single row */
.aw-cda-kleur-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px 16px 0px;
    border-bottom: 1px solid #e5e7eb;
    gap: 16px;
}

.aw-cda-kleur-row:last-child {
    border-bottom: none;
}

.aw-cda-kleur-row:hover {
    background-color: #f9fafb;
}

/* Info column: name + price */
.aw-cda-kleur-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.aw-cda-kleur-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-wrap: auto;
    color: black;
}

.aw-cda-kleur-price {
    font-size: 14px;
    color: #6b7280;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.aw-cda-kleur-price del {
    color: #9ca3af;
    margin-right: 4px;
}

.aw-cda-kleur-price ins {
    text-decoration: none;
    font-weight: 600;
    color: #111;
}

/* Qty controls */
.aw-cda-kleur-qty {
    border: 1px solid #666;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.aw-cda-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background-color: transparent !important;
    cursor: pointer;
    margin: 0px ;
    font-size: 16px;
    line-height: 1;
    user-select: none;
    color: #111;
    transition: background 0.15s ease;
}

.aw-cda-qty-btn:hover, .aw-cda-qty-btn:focus {
    color: #111;
}

.aw-cda-qty-minus {
    color: #b5b5b5;
    border-radius: 10px 0 0 10px !important;
}

.aw-cda-qty-plus {
    color: var( --e-global-color-primary );
    border-radius: 0 10px 10px 0 !important;
    margin: 0px !important;
}

.aw-cda-qty-input {
    width: 60px !important;
    height: 32px;
    text-align: center;
    border: none !important;
    border-left: none;
    border-right: none;
    font-size: 14px;
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
    padding: 0;
    background: transparent;
}

.aw-cda-qty-input::-webkit-outer-spin-button,
.aw-cda-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Out of stock row */
.aw-cda-kleur-row.aw-cda-kleur-oos {
    opacity: 0.45;
}

.aw-cda-kleur-row.aw-cda-kleur-oos .aw-cda-kleur-name {
    text-decoration: line-through;
}

.aw-cda-kleur-stock-label {
    font-size: 12px;
    color: #111;
    font-style: italic;
    white-space: nowrap;
    padding: 8px 12px;
}

/* Empty state */
.aw-cda-kleur-empty {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Actions bar: subtotal + add to cart */
.aw-cda-kleur-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    .added_to_cart{
        display: none !important;
    }
    .aw-cda-add-to-cart {
        font-size: 16px !important;
        border-radius: 10px !important;
        max-width: 400px;
    }
}

/* Subtotal */
.aw-cda-subtotal {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    flex-shrink: 0;
}

.aw-cda-subtotal-label {
    font-size: 13px;
    color: #6b7280;
}

.aw-cda-subtotal-count {
    font-weight: 600;
    color: #111;
}

.aw-cda-subtotal-price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.aw-cda-add-to-cart {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.aw-cda-add-to-cart:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .aw-cda-kleur-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 0px;
    }
    .aw-cda-kleur-info{
        flex-direction: column;
        align-items: flex-start;
    }
    .aw-cda-kleur-qty {
        align-self: flex-end;
    }

    .aw-cda-kleur-name {
        white-space: normal;
    }
}
