﻿/* *********************************** Câmbio */

.bv-header-exchange {
    --bv-exchange-buy: #07866f;
    --bv-exchange-buy-soft: rgba(7, 134, 111, .09);
    --bv-exchange-sell: var(--bv-catalog-accent-dark);
    --bv-exchange-sell-soft: rgba(255, 46, 147, .085);
    min-width: 0;
}

/* *********************************** Hero */

.bv-header-exchange-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    overflow: hidden;
    border-radius: 25px;
    background: radial-gradient(circle at 12% 10%, rgba(255, 46, 147, .23), transparent 34%), radial-gradient(circle at 92% 90%, rgba(7, 134, 111, .24), transparent 38%), linear-gradient(135deg, #111827 0%, #162235 58%, #0d1828 100%);
    color: #fff;
    box-shadow: 0 20px 42px rgba(12, 20, 35, .17);
}

    .bv-header-exchange-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .1;
        background-image: linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px);
        background-size: 38px 38px;
        pointer-events: none;
    }

.bv-header-exchange-hero__content {
    position: relative;
    z-index: 1;
    padding: 28px;
}

.bv-header-exchange-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff85bf;
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.bv-header-exchange-hero__content h3 {
    max-width: 560px;
    margin: 10px 0 0;
    color: #fff;
    font-size: 1.34rem;
    line-height: 1.22;
    font-weight: 950;
}

.bv-header-exchange-hero__content > p {
    max-width: 570px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: .74rem;
    line-height: 1.62;
}

.bv-header-exchange-hero__legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-width: 540px;
    margin-top: 19px;
}

    .bv-header-exchange-hero__legend > span {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 11px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 14px;
        background: rgba(255, 255, 255, .06);
        backdrop-filter: blur(9px);
    }

        .bv-header-exchange-hero__legend > span > i {
            width: 31px;
            height: 31px;
            display: grid;
            flex: 0 0 auto;
            place-items: center;
            border-radius: 10px;
        }

    .bv-header-exchange-hero__legend .is-buy > i {
        background: rgba(42, 206, 169, .15);
        color: #55dcb9;
    }

    .bv-header-exchange-hero__legend .is-sell > i {
        background: rgba(255, 95, 172, .15);
        color: #ff80bd;
    }

    .bv-header-exchange-hero__legend span span {
        min-width: 0;
        display: grid;
        gap: 2px;
        color: rgba(255, 255, 255, .61);
        font-size: .57rem;
    }

    .bv-header-exchange-hero__legend strong {
        color: #fff;
        font-size: .65rem;
        font-weight: 950;
    }

.bv-header-exchange-hero__content > .bv-header-catalog-button {
    margin-top: 20px;
}

.bv-header-exchange-hero__visual {
    position: relative;
    z-index: 1;
    min-height: 310px;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
}

    .bv-header-exchange-hero__visual > img {
        width: 100%;
        height: 100%;
        min-height: 310px;
        display: block;
        object-fit: cover;
        opacity: .68;
    }

    .bv-header-exchange-hero__visual > span {
        width: 100%;
        height: 100%;
        min-height: 310px;
        display: grid;
        place-items: center;
        color: rgba(255, 255, 255, .26);
        font-size: 4rem;
    }

.bv-header-exchange-hero__summary {
    position: absolute;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(10, 18, 31, .78);
    backdrop-filter: blur(11px);
}

    .bv-header-exchange-hero__summary div {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .bv-header-exchange-hero__summary strong {
        color: #fff;
        font-size: 1.15rem;
        font-weight: 950;
    }

    .bv-header-exchange-hero__summary span {
        color: rgba(255, 255, 255, .72);
        font-size: .62rem;
        font-weight: 850;
    }

    .bv-header-exchange-hero__summary small {
        display: block;
        margin-top: 5px;
        color: rgba(255, 255, 255, .51);
        font-size: .54rem;
        line-height: 1.4;
    }

/* *********************************** Seções */

.bv-header-exchange-section,
.bv-header-exchange-board,
.bv-header-exchange-simulator {
    padding: 20px;
    border: 1px solid var(--bv-catalog-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 27, 43, .055);
}

.bv-header-exchange-section__header {
    margin-bottom: 14px;
}

    .bv-header-exchange-section__header > div,
    .bv-header-exchange-simulator__intro {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
    }

        .bv-header-exchange-section__header > div > span,
        .bv-header-exchange-simulator__intro > span {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: var(--bv-catalog-accent-soft);
            color: var(--bv-catalog-accent-dark);
        }

        .bv-header-exchange-section__header small,
        .bv-header-exchange-simulator__intro small,
        .bv-header-exchange-board__intro small {
            display: block;
            color: var(--bv-catalog-accent-dark);
            font-size: .55rem;
            font-weight: 950;
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        .bv-header-exchange-section__header h3,
        .bv-header-exchange-simulator__intro h3,
        .bv-header-exchange-board__intro h3 {
            margin: 3px 0 0;
            color: var(--bv-catalog-text);
            font-size: .92rem;
            font-weight: 950;
        }

        .bv-header-exchange-section__header p,
        .bv-header-exchange-simulator__intro p,
        .bv-header-exchange-board__intro p {
            margin: 4px 0 0;
            color: var(--bv-catalog-muted);
            font-size: .64rem;
            line-height: 1.5;
        }

/* *********************************** Destaques */

.bv-header-exchange-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bv-header-exchange-highlight {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
    border: 1px solid #e4e7ec;
    border-radius: 17px;
    background: radial-gradient(circle at 100% 0, rgba(255, 46, 147, .065), transparent 38%), #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

    .bv-header-exchange-highlight:hover,
    .bv-header-exchange-highlight.is-selected {
        border-color: rgba(255, 46, 147, .38);
        transform: translateY(-1px);
        box-shadow: 0 11px 25px rgba(32, 41, 56, .08);
    }

.bv-header-exchange-highlight__flag {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e2e5ea;
    border-radius: 50%;
    background: #f5f6f8;
    color: var(--bv-catalog-accent-dark);
}

    .bv-header-exchange-highlight__flag img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.bv-header-exchange-highlight__identity {
    min-width: 0;
    display: grid;
}

    .bv-header-exchange-highlight__identity small {
        overflow: hidden;
        color: #8a919c;
        font-size: .51rem;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bv-header-exchange-highlight__identity strong {
        margin-top: 2px;
        color: #202630;
        font-size: .9rem;
        font-weight: 950;
    }

    .bv-header-exchange-highlight__identity > span {
        overflow: hidden;
        color: #747c87;
        font-size: .57rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.bv-header-exchange-highlight__quotes {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

    .bv-header-exchange-highlight__quotes > span {
        display: grid;
        gap: 2px;
        padding: 8px;
        border-radius: 11px;
    }

    .bv-header-exchange-highlight__quotes .is-buy {
        background: var(--bv-exchange-buy-soft);
    }

    .bv-header-exchange-highlight__quotes .is-sell {
        background: var(--bv-exchange-sell-soft);
    }

    .bv-header-exchange-highlight__quotes small {
        color: #747c86;
        font-size: .49rem;
        font-weight: 850;
        text-transform: uppercase;
    }

    .bv-header-exchange-highlight__quotes strong {
        font-size: .66rem;
        font-weight: 950;
    }

    .bv-header-exchange-highlight__quotes .is-buy strong {
        color: var(--bv-exchange-buy);
    }

    .bv-header-exchange-highlight__quotes .is-sell strong {
        color: var(--bv-exchange-sell);
    }

/* *********************************** Simulador */

.bv-header-exchange-simulator {
    display: grid;
    gap: 16px;
    border-color: rgba(255, 46, 147, .18);
    background: radial-gradient(circle at 100% 0, rgba(255, 46, 147, .075), transparent 32%), #fff;
}

.bv-header-exchange-operations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

    .bv-header-exchange-operations button {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px;
        border: 1px solid #dfe3e8;
        border-radius: 15px;
        background: #fff;
        color: inherit;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

        .bv-header-exchange-operations button > i {
            width: 35px;
            height: 35px;
            display: grid;
            flex: 0 0 auto;
            place-items: center;
            border-radius: 11px;
            background: #f2f4f7;
            color: #717985;
        }

        .bv-header-exchange-operations button > span {
            min-width: 0;
            display: grid;
            gap: 2px;
            color: #818894;
            font-size: .54rem;
        }

    .bv-header-exchange-operations strong {
        color: #303640;
        font-size: .65rem;
        font-weight: 950;
    }

    .bv-header-exchange-operations button.is-active[data-header-exchange-operation="buy"] {
        border-color: rgba(255, 46, 147, .38);
        background: var(--bv-exchange-sell-soft);
    }

        .bv-header-exchange-operations button.is-active[data-header-exchange-operation="buy"] > i {
            background: rgba(255, 46, 147, .13);
            color: var(--bv-exchange-sell);
        }

    .bv-header-exchange-operations button.is-active[data-header-exchange-operation="sell"] {
        border-color: rgba(7, 134, 111, .35);
        background: var(--bv-exchange-buy-soft);
    }

        .bv-header-exchange-operations button.is-active[data-header-exchange-operation="sell"] > i {
            background: rgba(7, 134, 111, .13);
            color: var(--bv-exchange-buy);
        }

.bv-header-exchange-form {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 10px;
}

    .bv-header-exchange-form label {
        min-width: 0;
        display: grid;
        gap: 6px;
    }

        .bv-header-exchange-form label > span {
            color: #6c7480;
            font-size: .55rem;
            font-weight: 900;
        }

    .bv-header-exchange-form select,
    .bv-header-exchange-amount {
        width: 100%;
        min-height: 48px;
        border: 1px solid #dce0e6;
        border-radius: 13px;
        background: #fff;
    }

    .bv-header-exchange-form select {
        padding: 0 12px;
        color: #303640;
        font: inherit;
        font-size: .68rem;
        font-weight: 850;
    }

.bv-header-exchange-amount {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
}

    .bv-header-exchange-amount > span {
        height: 100%;
        display: grid;
        place-items: center;
        padding: 0 12px;
        border-right: 1px solid #dce0e6;
        background: #f5f6f8;
        color: #575f6b;
        font-size: .67rem;
        font-weight: 950;
    }

    .bv-header-exchange-amount input {
        width: 100%;
        height: 100%;
        min-width: 0;
        padding: 0 12px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #242a33;
        font: inherit;
        font-size: .78rem;
        font-weight: 900;
    }

.bv-header-exchange-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: #161f2f;
    color: #fff;
}

    .bv-header-exchange-result > div {
        min-width: 0;
        display: grid;
        gap: 3px;
    }

    .bv-header-exchange-result small {
        color: rgba(255, 255, 255, .55);
        font-size: .52rem;
        font-weight: 850;
        text-transform: uppercase;
    }

    .bv-header-exchange-result strong {
        color: #fff;
        font-size: 1rem;
        line-height: 1.25;
        font-weight: 950;
    }

    .bv-header-exchange-result > div > span {
        color: rgba(255, 255, 255, .63);
        font-size: .57rem;
    }

/* *********************************** Quadro de cotações */

.bv-header-exchange-board {
    display: grid;
    gap: 13px;
}

.bv-header-exchange-board__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.bv-header-exchange-search {
    width: min(270px, 100%);
    min-height: 42px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #dfe3e8;
    border-radius: 13px;
    background: #fff;
    color: #8a919b;
}

    .bv-header-exchange-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #303640;
        font: inherit;
        font-size: .65rem;
    }

.bv-header-exchange-categories {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
}

    .bv-header-exchange-categories::-webkit-scrollbar {
        display: none;
    }

    .bv-header-exchange-categories button {
        min-height: 34px;
        flex: 0 0 auto;
        padding: 0 12px;
        border: 1px solid #dfe3e8;
        border-radius: 999px;
        background: #fff;
        color: #69717c;
        font: inherit;
        font-size: .57rem;
        font-weight: 900;
        cursor: pointer;
    }

        .bv-header-exchange-categories button.is-active {
            border-color: var(--bv-catalog-accent);
            background: var(--bv-catalog-accent);
            color: #fff;
        }

.bv-header-exchange-board__header,
.bv-header-exchange-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.4fr) minmax(120px, .75fr) minmax(120px, .75fr) 38px;
    align-items: center;
    gap: 10px;
}

.bv-header-exchange-board__header {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: #172131;
    color: #fff;
}

    .bv-header-exchange-board__header > span {
        display: grid;
        gap: 1px;
        font-size: .58rem;
        font-weight: 950;
    }

    .bv-header-exchange-board__header small {
        color: rgba(255, 255, 255, .48);
        font-size: .45rem;
        font-weight: 750;
    }

    .bv-header-exchange-board__header .is-buy {
        color: #63dfbd;
    }

    .bv-header-exchange-board__header .is-sell {
        color: #ff8ec4;
    }

.bv-header-exchange-board__body {
    display: grid;
    gap: 7px;
}

.bv-header-exchange-row {
    min-height: 76px;
    padding: 10px 12px;
    border: 1px solid #e1e4e9;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    outline: 0;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

    .bv-header-exchange-row:hover,
    .bv-header-exchange-row:focus-visible,
    .bv-header-exchange-row.is-selected {
        border-color: rgba(255, 46, 147, .36);
        background: rgba(255, 46, 147, .025);
        box-shadow: 0 8px 21px rgba(27, 36, 50, .07);
    }

    .bv-header-exchange-row.is-featured {
        border-left: 3px solid var(--bv-catalog-accent);
    }

.bv-header-exchange-row__currency {
    min-width: 0;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.bv-header-exchange-row__flag {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 50%;
    background: #f4f5f7;
    color: var(--bv-catalog-accent-dark);
}

    .bv-header-exchange-row__flag img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.bv-header-exchange-row__currency > span:last-child {
    min-width: 0;
    display: grid;
}

.bv-header-exchange-row__currency strong {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #252b34;
    font-size: .75rem;
    font-weight: 950;
}

    .bv-header-exchange-row__currency strong i {
        color: var(--bv-catalog-accent);
        font-size: .53rem;
    }

.bv-header-exchange-row__currency span span {
    overflow: hidden;
    color: #6b7380;
    font-size: .57rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bv-header-exchange-row__currency small {
    margin-top: 2px;
    color: #989ea7;
    font-size: .48rem;
}

.bv-header-exchange-row__quote {
    min-width: 0;
    display: grid;
    gap: 2px;
}

    .bv-header-exchange-row__quote small {
        display: none;
    }

    .bv-header-exchange-row__quote strong {
        font-size: .71rem;
        font-weight: 950;
    }

    .bv-header-exchange-row__quote.is-buy strong {
        color: var(--bv-exchange-buy);
    }

    .bv-header-exchange-row__quote.is-sell strong {
        color: var(--bv-exchange-sell);
    }

    .bv-header-exchange-row__quote span {
        color: #969ca5;
        font-size: .46rem;
    }

.bv-header-exchange-row__detail {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bv-catalog-accent-soft);
    color: var(--bv-catalog-accent-dark);
    text-decoration: none;
}

.bv-header-exchange-no-results {
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    text-align: center;
    color: #89909a;
}

    .bv-header-exchange-no-results[hidden] {
        display: none !important;
    }

    .bv-header-exchange-no-results i {
        margin-bottom: 5px;
        color: var(--bv-catalog-accent-dark);
        font-size: 1.2rem;
    }

    .bv-header-exchange-no-results strong {
        color: #3a4049;
        font-size: .72rem;
    }

    .bv-header-exchange-no-results span {
        font-size: .58rem;
    }

/* *********************************** Aviso */

.bv-header-exchange-notice {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e4e9;
    border-radius: 19px;
    background: #f8f9fb;
}

    .bv-header-exchange-notice > span {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: var(--bv-catalog-accent-soft);
        color: var(--bv-catalog-accent-dark);
    }

    .bv-header-exchange-notice strong {
        display: block;
        color: #303640;
        font-size: .68rem;
        font-weight: 950;
    }

    .bv-header-exchange-notice p {
        margin: 4px 0 0;
        color: #727a85;
        font-size: .59rem;
        line-height: 1.5;
    }

/* *********************************** Vazio */

.bv-header-exchange-empty h3 {
    margin: 14px 0 0;
    color: var(--bv-catalog-text);
    font-size: .97rem;
    font-weight: 950;
}

.bv-header-exchange-empty p {
    max-width: 470px;
    margin: 7px 0 0;
    color: var(--bv-catalog-muted);
    font-size: .73rem;
    line-height: 1.55;
}

/* *********************************** Responsivo */

@media (max-width: 900px) {
    .bv-header-exchange-hero {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

    .bv-header-exchange-board__header,
    .bv-header-exchange-row {
        grid-template-columns: minmax(175px, 1.25fr) minmax(105px, .75fr) minmax(105px, .75fr) 36px;
    }
}

@media (max-width: 760px) {
    .bv-header-exchange-hero {
        grid-template-columns: 1fr;
    }

    .bv-header-exchange-hero__visual,
    .bv-header-exchange-hero__visual > img,
    .bv-header-exchange-hero__visual > span {
        min-height: 230px;
    }

    .bv-header-exchange-highlights {
        grid-template-columns: 1fr;
    }

    .bv-header-exchange-board__intro {
        align-items: stretch;
        flex-direction: column;
    }

    .bv-header-exchange-search {
        width: 100%;
    }

    .bv-header-exchange-board__header {
        display: none;
    }

    .bv-header-exchange-row {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(95px, auto)) 34px;
    }

    .bv-header-exchange-row__quote small {
        display: block;
        color: #969ca5;
        font-size: .46rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .bv-header-exchange-notice {
        grid-template-columns: 42px minmax(0, 1fr);
    }

        .bv-header-exchange-notice .bv-header-catalog-button {
            grid-column: 1 / -1;
            width: 100%;
        }
}

@media (max-width: 560px) {
    .bv-header-exchange-hero__content,
    .bv-header-exchange-section,
    .bv-header-exchange-board,
    .bv-header-exchange-simulator {
        padding: 16px;
    }

    .bv-header-exchange-hero__legend,
    .bv-header-exchange-operations,
    .bv-header-exchange-form {
        grid-template-columns: 1fr;
    }

    .bv-header-exchange-result {
        align-items: stretch;
        flex-direction: column;
    }

        .bv-header-exchange-result .bv-header-catalog-button {
            width: 100%;
        }

    .bv-header-exchange-row {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 13px;
    }

    .bv-header-exchange-row__currency {
        grid-column: 1 / -1;
    }

    .bv-header-exchange-row__quote {
        padding: 9px;
        border-radius: 11px;
    }

        .bv-header-exchange-row__quote.is-buy {
            background: var(--bv-exchange-buy-soft);
        }

        .bv-header-exchange-row__quote.is-sell {
            background: var(--bv-exchange-sell-soft);
        }

    .bv-header-exchange-row__detail {
        position: absolute;
        top: 13px;
        right: 13px;
    }

    .bv-header-exchange-row {
        position: relative;
    }

    .bv-header-exchange-highlight__quotes strong,
    .bv-header-exchange-row__quote strong {
        font-size: .65rem;
    }
}
