/* ── Product Quantity Buttons ─────────────────────────────────────────────── */

.kw-qb {
    margin-bottom: 40px;
    font-family: inherit;
}

/* ── Tier buttons layout ─────────────────────────────────────────────────── */
.kw-qb__buttons {
    display: flex;
    gap: 22px;
    align-items: stretch;
}

/* ── Button card ─────────────────────────────────────────────────────────── */
.kw-qb__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 26px 18px 26px;
    background: #fff;
    border: 0;
    box-shadow: 0 0 0 2px #E2E2E2;
    cursor: pointer;
    text-align: center;
    color: inherit;
    font-family: inherit;
    transition: all 0.2s ease;
    min-height: 160px;
    position: relative;
    overflow: visible;
}

.kw-qb__btn:hover {
    box-shadow: 0 0 0 2px #BFC3C8;
}

/* ── Active state ────────────────────────────────────────────────────────── */
.kw-qb__btn--active {
    background: #EEF5F8;
    box-shadow: 0 0 0 2px #4EC3E1!important;
}

/* ── Quantity text ───────────────────────────────────────────────────────── */
.kw-qb__btn-qty {
    font-size: 16px;
    font-weight: 700;
    color: #324767;
    line-height: 1.1;
}

/* ── Top badge ───────────────────────────────────────────────────────────── */
.kw-qb__btn-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #4C97B8 0%, #2F4268 100%);
    padding: 8px 26px;
    border-radius: 999px;
    line-height: 1.1;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.kw-qb__btn-label:empty {
    display: none;
}

/* gold badge variant */
.kw-qb__btn:last-child .kw-qb__btn-label {
    background: linear-gradient(90deg, #D8A24F 0%, #676A70 100%);
}

/* ── Price section ───────────────────────────────────────────────────────── */
.kw-qb__btn-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.kw-qb__btn-unit-price {
    font-size: 18px;
    font-weight: 700;
    color: #4EC3E1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1.2;
}

.kw-qb__btn-unit-price .woocommerce-Price-amount {
    color: inherit;
}

.kw-qb__btn-total {
    font-size: 12px;
    color: #9DA5AF;
}

.kw-qb__btn-total .woocommerce-Price-amount {
    color: inherit;
}

/* ── Bottom selector circle ─────────────────────────────────────────────── */
.kw-qb__btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px #D5D5D5;
    z-index: 2;
}

/* active circle */
.kw-qb__btn--active::after {
    background: #4EC3E1;
    box-shadow: 0 0 0 2px #4EC3E1;
}

/* checkmark */
.kw-qb__btn--active::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 6px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, 38%) rotate(45deg);
    z-index: 3;
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 849px) {
    .kw-qb__buttons {
        gap: 14px;
    }

    .kw-qb__btn {
        min-height: 180px;
        padding: 44px 12px 42px;
    }

    .kw-qb__btn-qty {
        font-size: 20px;
    }

    .kw-qb__btn-unit-price {
        font-size: 18px;
    }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .kw-qb__buttons {
        flex-direction: column;
		gap: 32px;
    }

    .kw-qb__btn {
        min-height: 130px;
        padding: 36px 10px;
    }

    /* hide bottom circle on mobile (optional) */
    .kw-qb__btn::after,
    .kw-qb__btn--active::before {
        display: none;
    }
}