/* ============================================================
   Quantity Breaks – Frontend Styles | LM Media
   ============================================================ */

:root {
    --qb-border-normal: #e5e7eb;
    --qb-border-active: #229ebc;
    --qb-bg-active:     #e8f5f8;
    --qb-text-muted:    #777;
    --qb-text-dark:     #1a1a1a;
    --qb-radius:        5px;
}

.qb-quantity-breaks {
    width: 100%;
    margin: 10px 0 0;
    font-family: inherit;
    box-sizing: border-box;
}

/* ---- Step row (<label>) ---- */
.qb-step {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--qb-border-normal);
    border-radius: var(--qb-radius);
    padding: 13px 16px;
    margin-bottom: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.qb-step:last-child { margin-bottom: 0; }

.qb-step:hover { border-color: var(--qb-border-active); }

.qb-step.qb-step--active {
    border-color: var(--qb-border-active);
    background: var(--qb-bg-active);
}

/* ---- Hidden native radio ---- */
.qb-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ---- Custom radio circle ---- */
.qb-radio-circle {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--qb-border-normal);
    background: #fff;
    transition: border-color 0.15s ease;
    position: relative;
    box-sizing: border-box;
}

.qb-step.qb-step--active .qb-radio-circle {
    border-color: var(--qb-border-active);
}

.qb-step.qb-step--active .qb-radio-circle::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--qb-border-active);
}

/* ---- Left: title + description ---- */
.qb-step-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.qb-step-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qb-step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-text-dark);
    line-height: 1.2;
}

.qb-step-desc {
    font-size: 14px;
    color: var(--qb-text-muted);
    font-weight: 400;
    line-height: 1.3;
}

/* ---- Label badge ---- */
.qb-label {
    display: inline-block;
    background: var(--qb-border-active);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 2px;
    white-space: nowrap;
    line-height: 1.7;
}

/* ---- Right: prices — old price on top, new price below ---- */
.qb-step-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Regular (doorgestreept) BOVEN */
.qb-regular-price {
    font-size: 13px;
    color: var(--qb-text-muted);
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1.3;
    order: 1;
}

.qb-regular-price .woocommerce-Price-amount { color: inherit; }

/* Sale prijs ONDER */
.qb-sale-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--qb-text-dark);
    line-height: 1.2;
    order: 2;
}

.qb-sale-price .woocommerce-Price-amount { color: inherit; }

/* Geen korting: alleen verkoopprijs */
.qb-sale-price.qb-sale-price--only { order: 1; }

/* ---- Notice ---- */
.qb-notice {
    font-size: 13px;
    margin: 6px 0;
    padding: 6px 10px;
    border-radius: var(--qb-radius);
}
.qb-notice--success { background: #eefbf4; color: #276749; }
.qb-notice--error   { background: #fdf2f2; color: #9b1c1c; }

@media (max-width: 480px) {
    .qb-step { padding: 11px 12px; gap: 10px; }
    .qb-step-title { font-size: 14px; }
    .qb-step-desc  { font-size: 13px; }
    .qb-sale-price { font-size: 14px; }
}
