/* ===== Tiered Discount Block ("Compre mais e pague menos") ===== */
.tiered-discount {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
}

.tiered-discount__header {
    margin-bottom: 18px;
}

.tiered-discount__title {
    margin: 0 0 4px;
    color: #3b0a52;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.tiered-discount__subtitle {
    margin: 0;
    color: #2b2b2b;
    font-size: 15px;
    line-height: 1.3;
}

.tiered-discount__progress {
    position: relative;
    margin: 22px 0 24px;
    padding: 0 12px;
}

.tiered-discount__bar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 6px;
    background: #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
}

.tiered-discount__bar-fill {
    height: 100%;
    background: #16a34a;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.tiered-discount__steps {
    position: relative;
    height: 60px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tiered-discount__step {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tiered-discount__step.is-completed .tiered-discount__step-marker {
    background: #16a34a;
}

.tiered-discount__step-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d9d9d9;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.tiered-discount__step-label {
    margin-top: 8px;
    color: #2b2b2b;
    font-size: 16px;
    font-weight: 600;
}

.tiered-discount__levels {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.tiered-discount__level {
    position: relative;
    flex: 1 1 240px;
    min-width: 240px;
    padding: 16px 16px 14px;
    border-radius: 10px;
    border: 1.5px solid transparent;
}

.tiered-discount__level--current {
    background: #e9f8ee;
    border-color: #bfe7cb;
}

.tiered-discount__level--next {
    background: #fdeaf3;
    border-color: #f5b9d4;
}

.tiered-discount__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: #cfeed7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.tiered-discount__badge--next {
    background: #ec4899;
    color: #fff;
}

.tiered-discount__level-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tiered-discount__level-qty {
    color: #2b2b2b;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.tiered-discount__level-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    line-height: 1.1;
}

.tiered-discount__level-old {
    color: #6b6b6b;
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 600;
}

.tiered-discount__level-new {
    color: #16a34a;
    font-size: 20px;
    font-weight: 700;
}

.tiered-discount__arrow {
    align-self: center;
    color: #b5b5b5;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.tiered-discount__lock {
    color: #2b2b2b;
    font-size: 18px;
}

.tiered-discount__level-text {
    margin: 0;
    color: #2b2b2b;
    font-size: 14px;
    line-height: 1.3;
}

.tiered-discount__level-new-price {
    color: #ec4899;
    font-weight: 700;
}

.tiered-discount__status {
    margin-top: 16px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px dashed #f0ad4e;
    border-radius: 6px;
    color: #8a6d3b;
    font-family: monospace;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 600px) {
    .tiered-discount {
        padding: 16px;
    }

    .tiered-discount__title {
        font-size: 18px;
    }

    .tiered-discount__subtitle {
        font-size: 13px;
    }

    .tiered-discount__step-label {
        font-size: 14px;
    }

    .tiered-discount__arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .tiered-discount__level {
        min-width: 100%;
    }

    .tiered-discount__level-prices {
        align-items: flex-end;
    }
}
