/* ==========================================================================
   Kursna lista — Daily Exchange Rates
   Change the look by overriding these variables, e.g. in your theme:
   .der-rates-wrap { --der-accent: #ffd400; }
   ========================================================================== */

.der-rates-wrap {
	--der-bg: #1a1a1a;
	--der-bg-alt: #232323;
	--der-bg-hover: #2c2c2c;
	--der-text: #ffffff;
	--der-muted: #b9b9b9;
	--der-accent: #f3e05b;       /* header colour */
	--der-accent-text: #111111;  /* text on the header */
	--der-flag-ring: rgba(255, 255, 255, 0.18);
	--der-radius: 14px;

	margin: 1.5em 0;
	background: var(--der-bg);
	color: var(--der-text);
	border-radius: var(--der-radius);
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.25;
}

.der-rates-wrap.der-theme-light {
	--der-bg: #ffffff;
	--der-bg-alt: #f6f5ee;
	--der-bg-hover: #efeee3;
	--der-text: #16181d;
	--der-muted: #6b7280;
	--der-flag-ring: rgba(0, 0, 0, 0.12);

	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---- Date + live time bar -------------------------------------------- */

.der-rates-wrap .der-rates-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 6px 24px;
	padding: 16px 22px;
	color: var(--der-muted);
	font-size: clamp(14px, 2vw, 28px);
}

.der-rates-wrap .der-rates-date,
.der-rates-wrap .der-rates-time {
	margin: 0;
	padding: 0;
	color: var(--der-muted);
}

.der-rates-wrap .der-rates-date strong,
.der-rates-wrap .der-rates-time strong {
	color: var(--der-text);
	font-weight: 700;
}

.der-rates-wrap .der-clock {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

/* ---- Table ------------------------------------------------------------ */

.der-rates-wrap .der-rates-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.der-rates-wrap .der-rates-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	background: transparent;
}

/* Selectors are deliberately specific so theme table styles (zebra rows, borders) don't win. */
.der-rates-wrap .der-rates-table thead th {
	background: var(--der-accent);
	color: var(--der-accent-text);
	padding: 14px 16px;
	border: 0;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
	font-size: clamp(12px, 2vw, 28px);
	white-space: nowrap;
}

.der-rates-wrap .der-rates-table tbody td {
	padding: 14px 16px;
	border: 0;
	color: var(--der-text);
	font-weight: 700;
	font-size: clamp(15px, 2vw, 28px);
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: middle;
	transition: background-color 0.15s ease;
}

.der-rates-wrap .der-rates-table tbody tr:nth-child(odd) td {
	background: var(--der-bg);
}

.der-rates-wrap .der-rates-table tbody tr:nth-child(even) td {
	background: var(--der-bg-alt);
}

.der-rates-wrap .der-rates-table tbody tr:hover td {
	background: var(--der-bg-hover);
}

.der-rates-wrap .der-center {
	text-align: center;
}

.der-rates-wrap .der-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.der-rates-wrap .der-code {
	font-variant-numeric: tabular-nums;
}

.der-rates-wrap .der-rates-table tbody td.der-country {
	white-space: normal;
	min-width: 150px;
	line-height: 1.2;
}

.der-rates-wrap .der-empty {
	text-align: center;
	text-transform: none;
	font-weight: 500;
	color: var(--der-muted);
}

/* ---- Oznaka: round flag + short code ---------------------------------- */

.der-rates-wrap .der-label {
	white-space: nowrap;
}

.der-rates-wrap .der-flag {
	display: inline-block;
	width: 36px;
	height: 36px;
	max-width: none;
	margin: 0 14px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	object-fit: cover;
	vertical-align: middle;
	box-shadow: 0 0 0 2px var(--der-flag-ring);
}

.der-rates-wrap .der-symbol {
	vertical-align: middle;
}

/* ---- Small screens: keep all five columns visible, no sideways swiping ---- */

@media (max-width: 640px) {
	.der-rates-wrap .der-rates-bar {
		padding: 12px 14px;
	}

	.der-rates-wrap .der-rates-table thead th {
		padding: 10px 4px;
		font-size: 9.5px;
		letter-spacing: 0;
		white-space: normal;
		line-height: 1.15;
	}

	.der-rates-wrap .der-rates-table tbody td {
		padding: 9px 4px;
		font-size: 12px;
	}

	.der-rates-wrap .der-rates-table tbody td.der-country {
		min-width: 0;
		font-size: 10px;
		line-height: 1.15;
	}

	.der-rates-wrap .der-flag {
		width: 20px;
		height: 20px;
		margin-right: 5px;
	}
}