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

/* Force the QB block onto its own full-width row inside WC's flex cart row
   (.variations_button / .cart). Qty input and Add-to-cart button wrap below. */
.kw-qb,
.kw-qb-variations {
    flex: 1 0 100%;
    max-width: 100%;
    width: 100%;
}

/* Hide WC's qty input (Flatsome's .ux-quantity wrapper) whenever the QB block
   is present — qty is set automatically by the active tier button. JS clicks
   the initially-active tier on render so the hidden input has the right
   value at submit time. */
.kw-qb ~ .quantity,
.kw-qb-variations ~ .quantity {
    display: none !important;
}

.kw-qb {
    background: var(--kw-surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    font-family: inherit;
}

/* Section title above the tier cards (e.g. "Izberite količino") */
.kw-qb__title {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--kw-ink);
    line-height: 1.3;
    margin: 0 0 8px;
}

/* Tabs + delivery-interval radios moved to the standalone
   product-subscription-tabs module (.kw-sub-*). */

/* ── Tier buttons ────────────────────────────────────────────────────────── */
.kw-qb__buttons {
    display: flex;
    gap: 8px;
}

.kw-qb__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px;
    margin: 0;
    background: var(--kw-bg);
    border: 1.5px solid var(--kw-line);
    border-radius: var(--kw-radius);
    cursor: pointer;
    text-align: center;
    color: inherit;
    font-family: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    min-height: 80px;
}

.kw-qb__btn:hover {
    border-color: var(--kw-ink-muted);
}

.kw-qb__btn--active {
    border-color: var(--kw-qb-active-border, var(--kw-qb-accent, var(--kw-accent)));
    box-shadow: inset 0 0 0 0.5px var(--kw-qb-active-border, var(--kw-qb-accent, var(--kw-accent)));
    background: var(--kw-accent-soft);
}

.kw-qb__btn-qty {
    font-size: 16px;
    font-weight: 700;
    color: var(--kw-ink);
    line-height: 1;
}

.kw-qb__btn-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--kw-qb-label-text, #fff);
    background: var(--kw-qb-label-bg, var(--kw-accent));
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

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

.kw-qb__btn-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.kw-qb__btn-unit-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--kw-ink);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    line-height: 1.3;
}

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

.kw-qb__btn-suffix {
    font-size: 12px;
    color: var(--kw-ink-muted);
    font-weight: 400;
}

.kw-qb__btn-total {
    font-size: 11px;
    color: var(--kw-ink-muted);
}

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

/* ── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 849px) {
    .kw-qb {
        padding: 16px;
    }
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 549px) {
    .kw-qb {
        padding: 12px;
        border-radius: 9px;
    }

    .kw-qb__btn {
        padding: 12px 4px;
        min-height: 68px;
    }

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

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