/* =========================================================
   CURRENCY BUYER
   ========================================================= */

.currency-buyer {
    width: 100%;

    background: #ffffff;

    border-top: 1px solid #111111;
    border-bottom: 1px solid #111111;
}


/* =========================================================
   INNER
   ========================================================= */

.currency-buyer__inner {
    display: grid;

    grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.3fr);
    gap: 60px;

    align-items: center;

    max-width: 1400px;

    margin: 0 auto;
    padding: 42px 24px;
}


/* =========================================================
   HEADER
   ========================================================= */

.currency-buyer__header {
    align-self: start;
}

.currency-buyer__eyebrow {
    margin-bottom: 10px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #315cff;
}

.currency-buyer__title {
    margin: 0;

    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 0.9;

    letter-spacing: -0.055em;

    color: #111111;
}


/* =========================================================
   CONTROL
   ========================================================= */

.currency-buyer__control {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   LABEL
   ========================================================= */

.currency-buyer__label {
    display: block;

    margin-bottom: 16px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #333333;
}


/* =========================================================
   SLIDER
   ========================================================= */

.currency-buyer__slider-wrap {
    width: 100%;
}

.currency-buyer__slider-labels {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 700;

    color: #999999;
}


/* RANGE */

.currency-buyer__slider {
    display: block;

    width: 100%;
    height: 4px;

    margin: 0;
    padding: 0;

    appearance: none;
    -webkit-appearance: none;

    background: #d8d8d4;

    cursor: pointer;
}


/* WebKit */

.currency-buyer__slider::-webkit-slider-runnable-track {
    height: 4px;

    background: #d8d8d4;
}

.currency-buyer__slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;

    margin-top: -8px;

    appearance: none;
    -webkit-appearance: none;

    border: 2px solid #111111;

    background: #315cff;

    cursor: pointer;
}


/* Firefox */

.currency-buyer__slider::-moz-range-track {
    height: 4px;

    background: #d8d8d4;
}

.currency-buyer__slider::-moz-range-thumb {
    width: 16px;
    height: 16px;

    border: 2px solid #111111;

    background: #315cff;

    border-radius: 50%;

    cursor: pointer;
}


/* =========================================================
   VALUE
   ========================================================= */

.currency-buyer__value-display {
    display: flex;
    align-items: baseline;
    gap: 8px;

    margin-top: 22px;
}

.currency-buyer__value-number {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    line-height: 0.9;

    letter-spacing: -0.055em;

    color: #111111;
}

.currency-buyer__value-unit {
    font-size: 12px;
    font-weight: 700;

    color: #777777;
}


/* =========================================================
   PRICE
   ========================================================= */

.currency-buyer__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid #d8d8d4;
}

.currency-buyer__price-label {
    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #777777;
}

.currency-buyer__price-value {
    font-size: 27px;
    font-weight: 900;

    letter-spacing: -0.04em;

    color: #111111;
}


/* =========================================================
   BUTTON
   ========================================================= */

.currency-buyer__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 52px;

    margin-top: 16px;
    padding: 0 18px;

    border: 1px solid #111111;

    background: #315cff;

    font: inherit;
    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #ffffff;

    cursor: pointer;

    transition: background 0.15s ease;
}

.currency-buyer__btn::after {
    content: "→";

    font-size: 20px;

    transition: transform 0.15s ease;
}

.currency-buyer__btn:hover {
    background: #111111;
}

.currency-buyer__btn:hover::after {
    transform: translateX(4px);
}

.currency-buyer__btn:active {
    transform: translateY(1px);
}

.currency-buyer__btn:focus-visible {
    outline: 2px solid #315cff;
    outline-offset: 2px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .currency-buyer__inner {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 36px 24px;
    }

    .currency-buyer__title {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .currency-buyer__inner {
        padding: 30px 18px;
    }

    .currency-buyer__title {
        font-size: 38px;
    }

    .currency-buyer__value-number {
        font-size: 42px;
    }

    .currency-buyer__price-value {
        font-size: 23px;
    }
}