/* NBG currency embed — modern converter + flagged rate cards */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.cr-embed {
    margin: 0;
    padding: 0;
    width: 100%;
    background: transparent;
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    color: #12293f;
    -webkit-font-smoothing: antialiased;
}

.cr-widget {
    --cr-navy: #1e3a5f;
    --cr-teal: #2d7a8c;
    --cr-teal-soft: #e8f4f6;
    --cr-ink: #12293f;
    --cr-muted: #647589;
    --cr-line: #d7e3ec;
    --cr-card: #ffffff;
    --cr-shadow: 0 10px 28px rgba(18, 41, 63, 0.08);

    width: 100%;
    max-width: 100%;
    padding: 16px;
    border: 1px solid var(--cr-line);
    border-radius: 16px;
    background:
        radial-gradient(900px 220px at 0% 0%, rgba(45, 122, 140, 0.12), transparent 55%),
        linear-gradient(165deg, #f7fbfc 0%, #ffffff 42%);
    box-shadow: var(--cr-shadow);
}

.cr-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.cr-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cr-brand-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--cr-line);
    box-shadow: 0 4px 12px rgba(18, 41, 63, 0.06);
    overflow: hidden;
    flex-shrink: 0;
}

.cr-brand-flag img {
    width: 34px;
    height: 26px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.cr-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--cr-ink);
}

.cr-subtitle {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: var(--cr-muted);
    font-weight: 500;
}

.cr-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cr-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--cr-teal-soft);
    color: var(--cr-teal);
    font-size: 0.75rem;
    font-weight: 700;
}

.cr-nbg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--cr-navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.cr-nbg-link:hover {
    background: var(--cr-teal);
    transform: translateY(-1px);
}

.cr-error {
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.9rem;
}

.cr-converter {
    margin-bottom: 16px;
}

.cr-panels {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: stretch;
}

.cr-panel {
    background: var(--cr-card);
    border: 1px solid var(--cr-line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(18, 41, 63, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cr-panel:focus-within {
    border-color: rgba(45, 122, 140, 0.55);
    box-shadow: 0 0 0 3px rgba(45, 122, 140, 0.12);
}

.cr-panel-to {
    background: linear-gradient(180deg, #f3fafb 0%, #ffffff 100%);
}

.cr-panel-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cr-muted);
}

.cr-panel-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cr-currency-pick {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cr-flag {
    width: 28px;
    height: 21px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(18, 41, 63, 0.12);
    flex-shrink: 0;
    background: #f3f4f6;
}

.cr-select {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cr-ink);
    cursor: pointer;
}

.cr-select:focus {
    outline: none;
}

.cr-amount {
    width: 100%;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cr-ink);
}

.cr-amount:focus {
    outline: none;
}

.cr-result-value {
    margin: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cr-teal);
    line-height: 1.15;
    word-break: break-word;
}

.cr-swap {
    align-self: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--cr-line);
    border-radius: 50%;
    background: #fff;
    color: var(--cr-navy);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(18, 41, 63, 0.08);
    transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease;
}

.cr-swap:hover {
    background: var(--cr-navy);
    color: #fff;
    transform: rotate(180deg);
}

.cr-result-line {
    margin: 10px 2px 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--cr-muted);
}

.cr-result-line strong {
    color: var(--cr-ink);
}

.cr-rates-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.cr-rates-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--cr-ink);
}

.cr-rates-hint {
    margin: 0;
    font-size: 0.74rem;
    color: var(--cr-muted);
    font-weight: 500;
}

.cr-rate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cr-rate-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 10px;
    border: 1px solid var(--cr-line);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cr-rate-card:hover,
.cr-rate-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(45, 122, 140, 0.45);
    box-shadow: 0 8px 18px rgba(18, 41, 63, 0.08);
    outline: none;
}

.cr-rate-card.is-active {
    border-color: var(--cr-teal);
    background: var(--cr-teal-soft);
    box-shadow: 0 0 0 2px rgba(45, 122, 140, 0.12);
}

.cr-rate-flag {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f7fb;
    border: 1px solid #e4ebf3;
}

.cr-rate-flag img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.cr-rate-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.cr-rate-code {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--cr-ink);
    letter-spacing: -0.01em;
}

.cr-rate-name {
    font-size: 0.68rem;
    color: var(--cr-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-rate-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.cr-rate-num {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--cr-teal);
    letter-spacing: -0.02em;
}

.cr-rate-gel {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cr-muted);
    letter-spacing: 0.04em;
}

.cr-footnote {
    margin: 12px 0 0;
    font-size: 0.7rem;
    color: #8494a6;
    line-height: 1.4;
}

.cr-footnote a {
    color: var(--cr-teal);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .cr-panels {
        grid-template-columns: 1fr;
    }

    .cr-swap {
        justify-self: center;
        transform: rotate(90deg);
    }

    .cr-swap:hover {
        transform: rotate(270deg);
    }

    .cr-rate-grid {
        grid-template-columns: 1fr;
    }

    .cr-amount,
    .cr-result-value {
        font-size: 1.35rem;
    }
}

@media (min-width: 720px) {
    .cr-rate-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
