/* ============================================
   TESORO TIERED DISCOUNT v2.1 — Frontend CSS
   ============================================ */

/* ─── Produkto puslapis — pasiūlymo blokas ─── */
.ttdis-offer {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff8f0;
    border: 1px solid #ecd9bf;
    border-left: 3px solid #c8a97e;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.ttdis-offer-head {
    font-weight: 600;
    color: #3a3a3a;
}

.ttdis-offer-tiers {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.ttdis-offer-tiers li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px dashed #ecd9bf;
    margin: 0;
}

.ttdis-offer-qty {
    flex: 0 0 64px;
    font-weight: 600;
    color: #3a3a3a;
}

.ttdis-offer-disc {
    flex: 0 0 auto;
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    background: #c8a97e;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .02em;
}

.ttdis-offer-unit {
    flex: 1;
    color: #666;
    white-space: nowrap;
}

.ttdis-offer-unit .amount {
    color: #2d7a2d;
    font-weight: 600;
}

.ttdis-offer-status {
    margin-top: 10px;
    padding: 8px 10px;
    background: #f1f8f1;
    border: 1px solid #cfe6cf;
    border-radius: 4px;
    color: #2d7a2d;
    font-size: 12.5px;
}

.ttdis-offer-status[hidden] {
    display: none;
}

/* Sena klasė paliekama suderinamumui */
.ttdis-single-notice {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 4px;
    padding: 8px 14px;
    background: #fff8f0;
    border-left: 3px solid #c8a97e;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* ─── Progreso juosta (krepšelis / checkout) ─── */
.bstd-wrap {
    background: #fafafa;
    border: 1px solid #e8e0d8;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
    font-size: 13px;
}

.tesoro-custom-cart-page .bstd-wrap {
    margin-bottom: 20px;
}

.ttdis-checkout-bar .bstd-wrap {
    margin-bottom: 14px;
}

.bstd-msg {
    margin: 0 0 14px;
    color: #444;
    line-height: 1.5;
}

.bstd-msg.bstd-msg--success {
    color: #2d7a2d;
}

/* Žingsniai */
.bstd-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.bstd-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.bstd-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e0d8;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all .25s;
}

.bstd-step.active .bstd-step-circle {
    background: #c8a97e;
    color: #fff;
}

.bstd-step.next .bstd-step-circle {
    background: #fff;
    border: 2px solid #c8a97e;
    color: #c8a97e;
}

.bstd-step-label {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    text-align: center;
}

.bstd-step.active .bstd-step-label {
    color: #c8a97e;
    font-weight: 600;
}

.bstd-connector {
    flex: 1;
    height: 2px;
    background: #e8e0d8;
    margin-bottom: 15px;
    transition: background .25s;
}

.bstd-connector.active {
    background: #c8a97e;
}

/* ─── Nuolaidos eilutė krepšelyje ─── */
.bstd-discount-row th,
.bstd-discount-row td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-top: 1px dashed #e0d8d0;
}

/* Tesoro custom krepšelio santrauka: mokesčių/nuolaidų eilutės ir pastaba po jomis */
.tesoro-cart-summary-fee strong,
.tesoro-cart-summary-discount strong {
    color: #2d7a2d;
}

.tesoro-cart-summary-note {
    font-size: 12px;
    color: #2d7a2d;
    margin: -4px 0 10px;
    line-height: 1.4;
}

/* ─── Mini krepšelis ─── */
.bstd-mini {
    padding: 10px 14px;
    background: #fdf9f5;
    border-bottom: 1px solid #ede8e0;
    font-size: 12px;
}

.bstd-mini-msg {
    color: #555;
    line-height: 1.45;
    margin-bottom: 8px;
}

.bstd-mini-msg.success {
    color: #2d7a2d;
}

.bstd-mini-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.bstd-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
    transition: background .2s;
}

.bstd-mini-dot.on {
    background: #c8a97e;
}

.bstd-mini-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    transition: background .2s;
}

.bstd-mini-line.on {
    background: #c8a97e;
}

.bstd-mini-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #fdf9f5;
    border-top: 1px solid #ede8e0;
    font-size: 12px;
    color: #444;
}

.bstd-mini-discount strong {
    color: #2d7a2d;
}

/* ─── Checkout ─── */
.woocommerce-checkout-review-order-table tr.fee th,
.woocommerce-checkout-review-order-table tr.fee td {
    color: #2d7a2d;
}

.ttdis-checkout-notice-row td {
    padding-top: 0 !important;
}

.ttdis-checkout-notice {
    background: #fdf9f5;
    border: 1px solid #c8a97e;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* ─── Mobile ─── */
@media (max-width: 600px) {
    .bstd-step-label { font-size: 9px; }
    .bstd-step-circle { width: 24px; height: 24px; font-size: 10px; }
    .bstd-wrap { padding: 12px 12px; }
    .ttdis-offer-tiers li { flex-wrap: wrap; gap: 6px 10px; }
    .ttdis-offer-unit { flex-basis: 100%; white-space: normal; }
}
