.ngnm-forex {
    container-type: inline-size;
    --ngnm-width: 100%;
    --ngnm-height: auto;
    width: var(--ngnm-width);
    height: var(--ngnm-height);
    max-width: 100%;
    box-sizing: border-box;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.25;
    color: #111827;
}

.ngnm-forex__card {
	box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(17, 24, 39, 0.08);
    padding: 8px;
    display: flex;
    flex-direction: column;
	justify-content: center;
	
	/* padding: calc(var(--spacing)*4); */
    /* background-color: var(--card); */
    /* color: var(--card-foreground); */
    /* box-shadow: 0 4px 24px #58667e14,0 1px 2px #58667e1f; */
}

.ngnm-forex__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ngnm-forex__title-link {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.ngnm-forex__title-link:hover .ngnm-forex__title {
	text-decoration: underline;
}

.ngnm-forex__title {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}

.ngnm-forex__external {
	width: 13px;
	height: 13px;
	fill: currentColor;
	color: #15803d;
	flex: 0 0 auto;
}

.ngnm-forex__primary-change {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ngnm-forex__primary-change[data-positive="1"],
.ngnm-forex__row-change[data-positive="1"] {
	color: #15803d;
}

.ngnm-forex__primary-change[data-negative="1"],
.ngnm-forex__row-change[data-negative="1"] {
	color: #dc2626;
}

.ngnm-forex__primary-change[data-zero="1"],
.ngnm-forex__row-change[data-zero="1"] {
	color: #64748b;
}

.ngnm-forex__primary {
    margin-top: 1px;
    min-height: 30px;
    display: flex;
    align-items: center;
    /* justify-content: space-between;
    gap: 6px; */
}

.ngnm-forex__primary-rate {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    white-space: nowrap;
}

.ngnm-forex__divider {
	height: 1px;
	background: #e5e7eb;
	margin: 7px 0 7px;
	flex: 0 0 auto;
}

.ngnm-forex__subheading {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 1px;
}

.ngnm-forex__rows {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-height: 0;
    flex: 0 0 auto;
}

.ngnm-forex__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    min-height: 16px;
    font-size: 11px;
    line-height: 16px;
}

.ngnm-forex__currency-label,
.ngnm-forex__row-value {
	min-width: 0;
}

.ngnm-forex__currency-label {
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0;
}

.ngnm-forex__code {
	font-weight: 400;
	color: #64748b;
}

.ngnm-forex__symbol {
	color: #64748b;
}

.ngnm-forex__row-value {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 4px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ngnm-forex__row-rate {
	font-weight: 600;
	color: #0f172a;
}

.ngnm-forex__row-change {
	font-weight: 400;
}

.ngnm-forex__footer {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
    font-size: 9px;
    line-height: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex: 0 0 auto;
}

.ngnm-forex__footer a {
    flex: 0 0 auto;
    color: #64748b;
    text-decoration: none;
}

.ngnm-forex__footer a:hover {
	text-decoration: underline;
}

.ngnm-forex__updated {
    position: static;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 9px;
    line-height: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ngnm-forex[data-stale="1"] .ngnm-forex__updated::after {
	content: " • cached";
}

.ngnm-forex--unavailable .ngnm-forex__card {
	justify-content: center;
}

.ngnm-forex__unavailable-title {
	font-size: clamp(16px, 4cqw, 22px);
	font-weight: 700;
	color: #0f172a;
}

.ngnm-forex__unavailable-copy {
	font-size: clamp(11px, 2.8cqw, 14px);
	color: #64748b;
	margin-top: 4px;
}

.et_pb_code .ngnm-forex,
.et_pb_code .ngnm-forex * {
    box-sizing: border-box;
}

.et_pb_code .ngnm-forex {
    font-size: 16px;
    line-height: 1.25;
}

@media (prefers-reduced-motion: reduce) {
	.ngnm-forex * {
		transition: none !important;
		animation: none !important;
	}
}
