/* =========================================================
 * Страница «Курс валют» [wf_currency_page]
 * =======================================================*/

.wf-cp {
	--cp-dark: #123c2b;
	--cp-bright: #5fe08a;
	--cp-green: #1a7a4f;
	--cp-greendark: #0f2e22;
	--cp-ink: #101621;
	--cp-muted: #8a93a2;
	--cp-border: #e9edf2;
	--cp-up: #16a34a;
	--cp-down: #da3b3b;
	--cp-bg: #f4f7f9;
	color: var(--cp-ink);
	font-size: 15px;
}

.wf-cp * {
	box-sizing: border-box;
}

.wf-cp--empty {
	padding: 20px;
	color: var(--cp-muted);
}

/* ---- сегментные переключатели ---- */
.wf-cp-seg {
	display: inline-flex;
	background: #eef1f4;
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}

.wf-cp-seg button {
	border: none;
	background: none;
	cursor: pointer;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #3b4656;
	border-radius: 999px;
	transition: all 0.12s ease;
	font-family: inherit;
}

.wf-cp-seg button.is-active {
	background: var(--cp-green);
	color: #ffffff;
}

.wf-cp-seg button.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* =========================================================
 * HERO
 * =======================================================*/
/* На странице курса прячем заголовок/крошки шаблона и убираем верхний
   отступ, чтобы full-bleed hero встал под прозрачную шапку — как на главной.
   Класс wf-cur-page только на этой странице (главную не трогаем). */
.wf-cur-page main > .wp-block-group:first-child {
	display: none;
}

.wf-cur-page main,
.wf-cur-page .entry-content {
	padding-top: 0 !important;
	margin-top: 0;
}

/* Full-bleed на всю ширину окна + зелёный фон под прозрачной шапкой
   (как .wf-hero на главной; шапка становится прозрачной через класс
   wf-green-header на <body>). */
.wf-cp-hero {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	max-width: 100vw;
	margin: 0 0 28px;
	padding: 120px 0 64px;
	background: #0b5d46; /* тот же зелёный, что и hero главной (.wf-hero__card) */
	color: #ffffff;
}

.wf-cp-hero__wrap {
	display: flex;
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
}

.wf-cp-hero__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wf-cp-hero__crumb {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
	margin-bottom: 14px;
}

.wf-cp-hero__title {
	margin: 0 0 12px;
	font-size: 55px;
	font-weight: 800;
	line-height: 1.05;
	color: #ffffff;
}

.wf-cp-hero__title span {
	color: var(--cp-bright);
}

.wf-cp-hero__sub {
	margin: 0 0 24px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.75);
	max-width: 460px;
}

.wf-cp-hero__strip {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
}

.wf-cp-chip {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wf-cp-chip__lbl {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
}

.wf-cp-chip__val {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 15px;
}

.wf-cp-chip__two {
	font-size: 15px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.65);
}

.wf-cp-chip__val b {
	font-size: 26px;
	font-weight: 800;
	color: #ffffff;
}

.wf-cp-chg {
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.wf-cp-chg--up {
	color: var(--cp-up);
}

.wf-cp-chg--down {
	color: #ff7a7a;
}

.wf-cp-chg--flat {
	color: var(--cp-muted);
}

/* ---- конвертер ---- */
.wf-cp-conv {
	flex: 0 0 400px;
	max-width: 400px;
	background: #ffffff;
	border-radius: 18px;
	padding: 22px;
	color: var(--cp-ink);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.wf-cp-conv__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.wf-cp-conv__title {
	font-size: 17px;
	font-weight: 700;
}

.wf-cp-conv__src {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.wf-cp-conv__src button {
	flex: 1 1 0;
	border: 1px solid #dfe4ea;
	background: #ffffff;
	border-radius: 10px;
	padding: 9px 6px;
	font-size: 13px;
	font-weight: 600;
	color: #3b4656;
	cursor: pointer;
	transition: all 0.12s ease;
	font-family: inherit;
}

.wf-cp-conv__src button.is-active {
	background: var(--cp-green);
	border-color: var(--cp-green);
	color: #ffffff;
}

.wf-cp-conv__src button.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.wf-cp-conv__field {
	position: relative;
	background: #f1f5f3;
	border-radius: 12px;
	padding: 14px 16px;
}

.wf-cp-conv__field--dark {
	background: var(--cp-greendark);
	color: #ffffff;
}

.wf-cp-conv__flabel {
	display: block;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: var(--cp-muted);
	text-transform: uppercase;
	margin-bottom: 4px;
}

.wf-cp-conv__field--dark .wf-cp-conv__flabel {
	color: rgba(255, 255, 255, 0.6);
}

.wf-cp-conv__input {
	width: 100%;
	border: none;
	background: none;
	font-size: 30px;
	font-weight: 800;
	color: var(--cp-ink);
	padding: 0;
	font-family: inherit;
	padding-right: 70px;
}

.wf-cp-conv__input:focus {
	outline: none;
}

.wf-cp-conv__result {
	display: block;
	font-size: 30px;
	font-weight: 800;
	color: #ffffff;
	padding-right: 70px;
}

.wf-cp-conv__unit {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: #e3f2ea;
	color: var(--cp-green);
	font-weight: 700;
	font-size: 14px;
	padding: 8px 12px;
	border-radius: 9px;
}

.wf-cp-conv__unit--uah {
	background: #1f6b4a;
	color: #ffffff;
}

.wf-cp-conv__swap {
	display: block;
	margin: -12px auto;
	position: relative;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid #ffffff;
	background: #22c55e;
	color: #ffffff;
	font-size: 17px;
	cursor: pointer;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.wf-cp-conv__note {
	margin-top: 14px;
	text-align: center;
	font-size: 12px;
	color: var(--cp-muted);
}

/* =========================================================
 * ГРАФИК
 * =======================================================*/
.wf-cp-chart {
	margin-bottom: 28px;
}

.wf-cp-chart__head {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.wf-cp-chart__title {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	color: var(--cp-ink);
}

.wf-cp-chart__badge {
	font-size: 13px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	background: #e8f6ee;
	color: var(--cp-up);
}

.wf-cp-chart__badge--down {
	background: #fdeaea;
	color: var(--cp-down);
}

.wf-cp-chart__badge--flat {
	background: #eef1f4;
	color: var(--cp-muted);
}

.wf-cp-chart__toggles {
	display: flex;
	gap: 10px;
	margin-left: auto;
	flex-wrap: wrap;
}

.wf-cp-chart__card {
	background: #ffffff;
	border: 1px solid var(--cp-border);
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 1px 2px rgba(16, 22, 33, 0.04);
}

.wf-cp-chart__stats {
	display: flex;
	gap: 40px;
	margin-bottom: 14px;
}

.wf-cp-chart__stats > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wf-cp-stat__lbl {
	font-size: 11px;
	letter-spacing: 0.05em;
	color: var(--cp-muted);
	text-transform: uppercase;
}

.wf-cp-stat__val {
	font-size: 22px;
	font-weight: 800;
	color: var(--cp-ink);
}

.wf-cp-stat__val--max {
	color: var(--cp-up);
}

.wf-cp-stat__val--min {
	color: #e0723e;
}

.wf-cp-chart__legend {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #3b4656;
	margin-bottom: 10px;
}

.wf-cp-legend__dot {
	width: 18px;
	height: 3px;
	border-radius: 2px;
	background: #16543b;
}

.wf-cp-chart__plot {
	width: 100%;
	position: relative;
}

.wf-cp-chart__svgholder {
	position: relative;
	line-height: 0;
}

.wf-cp-svg {
	display: block;
}

/* ---- Ховер по графику ---- */
.wf-cp-hover-line {
	position: absolute;
	width: 0;
	border-left: 1px dashed rgba(22, 84, 59, 0.55);
	pointer-events: none;
	z-index: 2;
}

.wf-cp-hover-dot {
	position: absolute;
	width: 11px;
	height: 11px;
	margin: -5.5px 0 0 -5.5px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid #16543b;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	z-index: 3;
}

.wf-cp-hover-tip {
	position: absolute;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: #0f2e22;
	color: #ffffff;
	padding: 8px 11px;
	border-radius: 10px;
	font-size: 12px;
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
	z-index: 4;
}

.wf-cp-hover-date {
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
}

.wf-cp-hover-rate {
	font-weight: 700;
	font-size: 15px;
}

.wf-cp-hover-delta {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.8);
}

.wf-cp-hover-tip--up .wf-cp-hover-delta {
	color: #6ee7a0;
}

.wf-cp-hover-tip--down .wf-cp-hover-delta {
	color: #ff9b9b;
}

.wf-cp-svg .wf-cp-line {
	fill: none;
	stroke: #16543b;
	stroke-width: 2.5;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.wf-cp-svg .wf-cp-area {
	fill: rgba(22, 84, 59, 0.07);
	stroke: none;
}

.wf-cp-svg .wf-cp-dot {
	fill: #ffffff;
	stroke: #16543b;
	stroke-width: 3;
}

.wf-cp-svg .wf-cp-grid {
	stroke: #eef1f4;
	stroke-width: 1;
}

.wf-cp-svg .wf-cp-ylabel {
	fill: #aab2bf;
	font-size: 11px;
}

.wf-cp-chart__axis {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--cp-muted);
	margin-top: 6px;
	padding-right: 54px;
}

/* =========================================================
 * КОЛОНКИ: НБУ + ГОТІВКА
 * =======================================================*/
.wf-cp-cols {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 28px;
	margin-bottom: 20px;
}

.wf-cp-col__title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 800;
	color: var(--cp-ink);
	display: flex;
	align-items: center;
	gap: 10px;
}

.wf-cp-datechip {
	font-size: 12px;
	font-weight: 600;
	color: #6d5bd0;
	background: #efeafc;
	padding: 3px 9px;
	border-radius: 7px;
}

/* ---- карточки НБУ ---- */
.wf-cp-nbu__card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f6f8fa;
	border-radius: 14px;
	padding: 16px 18px;
	margin-bottom: 12px;
}

.wf-cp-nbu__two {
	font-size: 18px;
	font-weight: 800;
	color: #b7c0cc;
	width: 34px;
}

.wf-cp-nbu__meta {
	display: flex;
	flex-direction: column;
}

.wf-cp-nbu__code {
	font-weight: 800;
	color: var(--cp-ink);
}

.wf-cp-nbu__name {
	font-size: 13px;
	color: var(--cp-muted);
}

.wf-cp-nbu__right {
	margin-left: auto;
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.wf-cp-nbu__rate {
	font-size: 24px;
	font-weight: 800;
	color: var(--cp-ink);
}

.wf-cp-nbu__right .wf-cp-chg {
	padding: 2px 8px;
	border-radius: 7px;
}

.wf-cp-nbu__right .wf-cp-chg--up {
	background: #e8f6ee;
}

.wf-cp-nbu__right .wf-cp-chg--down {
	background: #fdeaea;
	color: var(--cp-down);
}

/* ---- таблица налички ---- */
.wf-cp-cash__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.wf-cp-cash__head .wf-cp-col__title {
	margin: 0;
}

.wf-cp-cash__table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border: 1px solid var(--cp-border);
	border-radius: 14px;
	overflow: hidden;
}

.wf-cp-cash__table th {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cp-muted);
	font-weight: 600;
	text-align: right;
	padding: 12px 16px;
	background: #f8fafb;
	border-bottom: 1px solid var(--cp-border);
}

.wf-cp-cash__table th:first-child {
	text-align: left;
}

.wf-cp-cash__table td {
	padding: 14px 16px;
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--cp-ink);
	border-bottom: 1px solid #f2f5f8;
}

.wf-cp-cash__table tr:last-child td {
	border-bottom: none;
}

.wf-cp-cash__table tr.is-top td {
	background: #f2fbf6;
}

.wf-cp-cash__bank {
	text-align: left !important;
	display: flex;
	align-items: center;
	gap: 12px;
}

.wf-cp-cash__logo {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	flex: 0 0 auto;
}

.wf-cp-cash__logo--privat {
	background: #e6ecfb;
	color: #2a54c9;
}

.wf-cp-cash__logo--mono {
	background: #111111;
	color: #ffffff;
}

.wf-cp-cash__bname {
	font-weight: 700;
	color: var(--cp-ink);
}

.wf-cp-cash__top {
	display: inline-block;
	margin-left: 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: #ffffff;
	background: #22c55e;
	padding: 2px 7px;
	border-radius: 6px;
	vertical-align: 1px;
}

.wf-cp-cash__note {
	margin: 12px 2px 0;
	font-size: 12px;
	color: var(--cp-muted);
}

.wf-cp-foot {
	font-size: 12px;
	color: var(--cp-muted);
	margin: 0;
}

/* =========================================================
 * АДАПТИВ
 * =======================================================*/
@media (max-width: 980px) {
	.wf-cp-hero {
		padding: 104px 0 40px;
	}

	.wf-cp-hero__wrap {
		flex-direction: column;
		padding: 0 24px;
	}

	.wf-cp-hero__title {
		font-size: 34px;
	}

	.wf-cp-conv {
		flex-basis: auto;
		max-width: none;
		width: 100%;
	}

	.wf-cp-cols {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.wf-cp-hero {
		padding: 92px 0 32px;
	}

	.wf-cp-hero__wrap {
		padding: 0 18px;
	}

	.wf-cp-hero__title {
		font-size: 28px;
	}

	.wf-cp-hero__strip {
		gap: 18px;
	}

	.wf-cp-chart__title,
	.wf-cp-col__title {
		font-size: 19px;
	}

	.wf-cp-chart__toggles {
		margin-left: 0;
		width: 100%;
	}

	.wf-cp-chart__stats {
		gap: 22px;
	}

	.wf-cp-chart__card {
		padding: 18px 16px;
	}
}
