:root {
    --ctfx-navy: #071b2d;
    --ctfx-navy-2: #0d2944;
    --ctfx-blue: #0865ae;
    --ctfx-line: rgba(167, 198, 226, 0.22);
    --ctfx-green: #16c45b;
}

.ctfx-ticker {
    position: relative;
    z-index: 45;
    width: 100%;
    color: #fff;
    background: var(--ctfx-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid #2875b9;
    font-family: inherit;
}

.ctfx-ticker__inner {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 40px;
    direction: rtl;
    max-width: 1500px;
    min-height: 36px;
    margin: 0 auto;
    overflow: hidden;
}

.ctfx-ticker__brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 5px 18px 5px 25px;
    color: #fff !important;
    background: var(--ctfx-blue);
    clip-path: polygon(0 50%, 16px 0, 100% 0, 100% 100%, 16px 100%);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.ctfx-ticker__viewport {
    min-width: 0;
    overflow: hidden;
    direction: ltr;
}

.ctfx-ticker__track {
    display: flex;
    width: max-content;
    min-width: 100%;
    animation: ctfx-ticker-scroll 70s linear infinite;
    will-change: transform;
}

.ctfx-ticker:hover .ctfx-ticker__track,
.ctfx-ticker.is-paused .ctfx-ticker__track {
    animation-play-state: paused;
}

.ctfx-ticker__group {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    direction: rtl;
}

.ctfx-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 4px 15px;
    color: #eef7ff !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.ctfx-ticker__item:hover,
.ctfx-ticker__item:focus-visible {
    background: rgba(35, 119, 190, 0.22);
}

.ctfx-ticker__triangle {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #2785d3;
    transform: rotate(45deg);
}

.ctfx-ticker__rate {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.ctfx-ticker__item small {
    color: var(--ctfx-green);
    font-size: 11px;
    font-weight: 800;
}

.ctfx-ticker__toggle {
    display: grid;
    place-items: center;
    width: 40px;
    min-height: 36px;
    padding: 0;
    color: #fff;
    background: #0b5799;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font: inherit;
}

@keyframes ctfx-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ctfx-ticker__track { animation: none; }
}

@media (max-width: 760px) {
    .ctfx-ticker__inner {
        grid-template-columns: 145px minmax(0, 1fr) 36px;
    }

    .ctfx-ticker__brand {
        padding-inline: 10px 17px;
        font-size: 12px;
    }

    .ctfx-ticker__item {
        padding-inline: 11px;
        font-size: 12px;
    }

    .ctfx-ticker__toggle { width: 36px; }
}

body.canada-today-currency-page {
    background: var(--ctfx-navy);
}

.ctfx-page {
    min-height: 70vh;
    padding: 34px 18px 56px;
    color: #f5f9fd;
    background: var(--ctfx-navy);
    direction: rtl;
}

.ctfx-page__shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.ctfx-page__breadcrumb {
    margin-bottom: 20px;
    color: #75b9f0;
    font-size: 14px;
}

.ctfx-page__breadcrumb a { color: inherit; }

.ctfx-page__hero {
    padding: 26px;
    background: linear-gradient(145deg, rgba(18, 54, 84, 0.9), rgba(5, 25, 42, 0.95));
    border: 1px solid var(--ctfx-line);
}

.ctfx-page__eyebrow {
    margin: 0 0 8px;
    color: #6cbcff;
    font-weight: 800;
}

.ctfx-page h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.25;
}

.ctfx-page__updated {
    margin: 10px 0 0;
    color: #9eb2c5;
    font-size: 13px;
}

.ctfx-page__rates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.ctfx-page__rate-card {
    padding: 22px;
    background: rgba(5, 24, 40, 0.72);
    border-right: 4px solid var(--ctfx-blue);
}

.ctfx-page__rate-card span {
    display: block;
    margin-bottom: 8px;
    color: #9eb2c5;
}

.ctfx-page__rate-card strong {
    display: block;
    color: #fff;
    font-size: clamp(24px, 4vw, 38px);
    font-variant-numeric: tabular-nums;
}

.ctfx-page__converter,
.ctfx-page__table-wrap {
    margin-top: 28px;
    padding: 24px;
    background: var(--ctfx-navy-2);
    border: 1px solid var(--ctfx-line);
}

.ctfx-page h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 23px;
}

.ctfx-page__converter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 15px;
    align-items: center;
}

.ctfx-page__converter label {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid transparent;
}

.ctfx-page__converter input {
    width: 100%;
    color: #10283d;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 22px;
}

.ctfx-page__converter-code {
    color: #143c60;
    font-weight: 900;
}

.ctfx-page__converter-result {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 18px;
    color: #fff;
    background: #071a2a;
    border: 1px solid #2b6698;
    font-size: 22px;
    font-weight: 900;
}

.ctfx-page__equals { color: #70bfff; font-size: 25px; }

.ctfx-page__table-scroll { overflow-x: auto; }

.ctfx-page__table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.ctfx-page__table th,
.ctfx-page__table td {
    padding: 14px 12px;
    border-bottom: 1px dashed rgba(163, 194, 220, 0.25);
    text-align: right;
}

.ctfx-page__table th { color: #78bff8; }
.ctfx-page__table a { color: #fff; font-weight: 700; text-decoration: none; }
.ctfx-page__table a:hover { color: #70bfff; }
.ctfx-page__table-rate { font-variant-numeric: tabular-nums; }

.ctfx-page__source {
    margin: 18px 0 0;
    color: #8ea7bb;
    font-size: 12px;
}

.ctfx-page__source a { color: #70bfff; }

@media (max-width: 680px) {
    .ctfx-page { padding-inline: 12px; }
    .ctfx-page__hero, .ctfx-page__converter, .ctfx-page__table-wrap { padding: 18px; }
    .ctfx-page__rates { grid-template-columns: 1fr; }
    .ctfx-page__converter-grid { grid-template-columns: 1fr; }
    .ctfx-page__equals { display: none; }
}

