.currency-tooltip {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    color: #f8f8f8;
    max-width: 280px;
    position: relative;
}

.currency-tooltip-last-updated {
    position: fixed;
    top: 2px;
    right: 5px;
    font-size: 10px;
    font-family: 'Architects Daughter', serif;
}

.currency-tooltip-header {
    text-align: center;
    margin-top: 4px;
    margin-bottom: 0;

    & > p {
        margin: 4px 0;
        font-size: 11px;
        line-height: 1.4;
    }
}

.currency-tooltip-header h5 {
    margin: 0 0 2px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.currency-tooltip-base {
    display: inline-block;
    font-weight: 600;
    margin-top: 2px;
}

.currency-tooltip-base-amount {
    font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
    margin-left: 2px;
}

.currency-tooltip-table-wrapper {
    max-height: 225px;
    overflow-y: auto;
}

.currency-tooltip-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.currency-tooltip-table .currency-tooltip-code {
    width: 12%;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}

.currency-tooltip-table .currency-tooltip-name {
    width: 50%;
    text-align: left;
    white-space: normal;
    overflow: visible;
}

.currency-tooltip-table .currency-tooltip-value {
    width: 38%;
    text-align: right;
    font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
    font-weight: 700;
}

.currency-tooltip-table th:not(:last-child),
.currency-tooltip-table td:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.currency-tooltip-table-row.active .currency-tooltip-value {
    font-weight: 800;
}

.currency-tooltip-table thead th {
    padding: 4px 6px;
    font-size: 10px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(2px);
    z-index: 5;
}

.currency-tooltip-table tbody tr {
    transition: transform .33s ease-in-out, background .33s ease-in-out, color .33s ease-in-out;
}

.currency-tooltip-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.00);
    &:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

.currency-tooltip-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.10);
    &:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

.currency-tooltip-table tbody tr.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    &:hover {
        background: rgba(255, 255, 255, 0.30);
    }
}

.currency-tooltip-table td {
    padding: 4px 6px;
    font-size: 11px;
    vertical-align: middle;
}

.currency-tooltip-footer {
    display: flex;
    flex-direction: column;

    & > span {
    }
}

.prefered-currency-switcher-div {
    position: fixed;
    top: 3px;
    left: 5px;

    & > select {
        background: rgba(48, 49, 51, 1);
        padding: 2px 4px;
        color: rgba(205, 205, 205, 0.9);
        font-family: permanent marker,cursive;
        border: 2px solid #17181aa6;
        border-radius: 7px;
        transition: all .33s ease-in-out;

        &:hover {
            color: rgba(205, 205, 205, 1);
            background: rgba(53, 54, 56, 1);
        }
    }
}

.currency-conversion-target[data-currencyamount] {
    font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
}