/* "Estimate in" currency switcher, the tenge charge note and the "≈"
   estimates next to tenge prices (templates/partials/estimate-switcher.php,
   assets/js/price-estimate.js). */

.estimate-bar {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0 0 18px;
}

.estimate-switcher {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
        align-items: center;
        justify-content: space-between;
        padding: 8px 8px 8px 16px;
        background: #fafafa;
        border: 1px solid #e4e4e7;
        border-radius: 12px;
}

.estimate-switcher[hidden] {
        display: none;
}

.estimate-switcher__label {
        color: #6f7174;
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
        letter-spacing: .08em;
        text-transform: uppercase;
}

.estimate-switcher__options {
        display: inline-flex;
        gap: 2px;
        padding: 3px;
        background: #ededee;
        border-radius: 10px;
}

.estimate-switcher__option {
        min-width: 52px;
        min-height: 36px;
        margin: 0;
        padding: 6px 12px;
        color: #55575a;
        background: transparent;
        border: 0;
        border-radius: 8px;
        font: inherit;
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        letter-spacing: .02em;
        cursor: pointer;
}

.estimate-switcher__option:hover {
        color: #0f0f18;
}

.estimate-switcher__option[aria-pressed="true"] {
        color: #0f0f18;
        background: #fff;
        box-shadow: 0 2px 0 #cfaa77, 0 1px 3px rgba(15, 15, 24, .12);
}

.estimate-switcher__option:focus-visible {
        outline: 2px solid #0f0f18;
        outline-offset: 2px;
}

.estimate-note {
        margin: 0;
        color: #6f7174;
        font-size: 13px;
        line-height: 18px;
        font-weight: 300;
}

.price-estimate {
        display: block;
        color: #6f7174;
        font-size: 12px;
        line-height: 16px;
        font-weight: 400;
        white-space: nowrap;
}

.price-estimate[hidden] {
        display: none;
}

/* An estimate inside a line of text, e.g. "(+3 900 ₸ ≈ 9 $)". */
.price-estimate--inline {
        display: inline;
        margin-left: .35em;
        font-size: .92em;
        line-height: inherit;
}

/* On phones an airport tariff cell is a label/value grid
   (airport-transfer-tariffs.css): keep the estimate under the price, not
   under the label. */
@media (max-width: 539px) {
        .airport-transfer-tariffs td > .price-estimate {
                grid-column: 2;
                margin-top: -6px;
        }
}

@media (max-width: 480px) {
        .estimate-switcher {
                padding: 8px;
        }

        .estimate-switcher__options {
                width: 100%;
        }

        .estimate-switcher__option {
                flex: 1 1 0;
                min-width: 0;
                padding: 6px 4px;
        }
}
