.wcqb-box {
    direction: rtl;
    text-align: right;
    border: 1px solid #e6e8ec;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
    background: #fff;
}

.wcqb-title {
    font-size: 29px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 18px;
    color: #1f2937;
}

.wcqb-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #dbe2e8;
    border-radius: 20px;
    background: #fff;
    padding: 19px 22px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wcqb-option:hover {
    border-color: #c8d0d9;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}

.wcqb-option.is-selected,
.wcqb-option.is-selected-default {
    border-color: #d4a72c;
    background: linear-gradient(180deg, #fcf8eb 0%, #f6efdc 100%);
    box-shadow: 0 16px 36px rgba(212, 167, 44, .16), 0 2px 0 rgba(255,255,255,.5) inset;
    transform: translateY(-1px);
}

.wcqb-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wcqb-check-ui {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #c5ccd6;
    background: #fff;
    position: relative;
    box-shadow: inset 0 0 0 2px #fff, 0 1px 2px rgba(15, 23, 42, .04);
}

.wcqb-option.is-selected .wcqb-check-ui,
.wcqb-option.is-selected-default .wcqb-check-ui,
.wcqb-radio:checked + .wcqb-check-ui {
    border-color: #1b7f79;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 4px rgba(27, 127, 121, .12);
}

.wcqb-option.is-selected .wcqb-check-ui::after,
.wcqb-option.is-selected-default .wcqb-check-ui::after,
.wcqb-radio:checked + .wcqb-check-ui::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #1b7f79;
}


.wcqb-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.wcqb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.wcqb-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.wcqb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.wcqb-qty-label {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #223040;
}

.wcqb-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wcqb-badge,
.wcqb-save,
.wcqb-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.wcqb-badge {
    background: #111827;
    color: #fff;
}

.wcqb-save {
    background: #1b7f79;
    color: #fff;
}

.wcqb-info-badge {
    background: #eef4ff;
    color: #1e3a8a;
    border: 1px solid #cfe0ff;
}

.wcqb-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.wcqb-price-line {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.wcqb-old-price {
    font-size: 12px;
    line-height: 1;
    color: #9aa5b5;
    text-decoration: line-through;
    opacity: .82;
    direction: ltr;
}

.wcqb-new-price {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    direction: ltr;
}

.wcqb-price-amount {
    direction: ltr;
}

.wcqb-price-currency {
    font-size: .76em;
}

.wcqb-unit-text {
    font-size: 15px;
    color: #5d6979;
    font-weight: 600;
}

.wcqb-summary {
    margin-top: 6px;
}

.wcqb-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wcqb-summary-card {
    background: #f8fafc;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .03);
}

.wcqb-summary-label {
    font-size: 14px;
    color: #667588;
    font-weight: 700;
}

.wcqb-summary-value {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.wcqb-summary-save {
    color: #166b66;
}

.wcqb-cta-button {
    display: block;
    width: 100%;
    margin-top: 16px;
    border: 0;
    border-radius: 14px;
    padding: 18px 20px;
    background: linear-gradient(90deg, #1f2937 0%, #111827 100%);
    color: #fff !important;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.wcqb-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .2);
}

.wcqb-cta-button.is-disabled {
    opacity: .6;
    cursor: not-allowed;
    pointer-events: auto;
}

.wcqb-cta-note {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}

.wcqb-cta-note.is-warning {
    color: #b45309;
}

form.cart.wcqb-has-breaks .quantity {
    display: none !important;
}

form.cart.wcqb-mode-external > .single_add_to_cart_button,
form.cart.wcqb-mode-external button.single_add_to_cart_button,
form.cart.wcqb-mode-external .single_add_to_cart_button.button.alt {
    display: none !important;
}

.wcqb-option.is-base-offer {
    padding-top: 17px;
    padding-bottom: 17px;
}

.wcqb-option.is-base-offer 
.wcqb-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.wcqb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.wcqb-content {
    gap: 8px;
}

.wcqb-option.is-base-offer .wcqb-price-box {
    gap: 4px;
}

.wcqb-option.has-savings .wcqb-price-box {
    min-height: 58px;
    justify-content: flex-end;
}

.wcqb-option .wcqb-badges:empty {
    display: none;
}

@media (max-width: 767px) {
    .wcqb-box {
        padding: 16px;
        border-radius: 18px;
    }

    .wcqb-title {
        font-size: 24px;
    }

    .wcqb-option {
        padding: 16px;
        border-radius: 16px;
    }

    .wcqb-qty-label {
        font-size: 20px;
    }

    .wcqb-new-price {
        font-size: 24px;
    }

    .wcqb-cta-button {
        font-size: 18px;
        padding: 16px 18px;
    }

    .wcqb-summary-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 767px) {
    .wcqb-thumb {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 14px;
    }
}
