/**
 * AIA Exchange Rates — stiluri frontend (sidebar / ziar).
 *
 * @package AIA_Pro
 */

.aia-pro-exchange-rates {
	--aia-exchange-trend-up: #1a9b3d;
	--aia-exchange-trend-down: #e60000;
	width: 100%;
	font-family: 'Roboto Slab', Georgia, serif;
}

.aia-exchange-wrapper {
	border: 1px solid #ddd;
	overflow: hidden;
	background-color: #fff;
}

.aia-exchange-body {
	padding: 12px 15px;
	background-color: #fafafa;
}

.aia-exchange-date {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.65);
}

.aia-exchange-rates {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aia-exchange-rate {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.aia-exchange-rate:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.aia-exchange-rate__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	color: #0c0c0c;
}

.aia-exchange-trend-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	flex-shrink: 0;
}

.aia-exchange-trend {
	display: inline-block;
	width: 0;
	height: 0;
	flex-shrink: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
}

.aia-exchange-trend--up {
	border-bottom: 10px solid var(--aia-exchange-trend-up);
}

.aia-exchange-trend-wrap--up .aia-exchange-trend__label {
	color: var(--aia-exchange-trend-up);
}

.aia-exchange-trend--down {
	border-top: 10px solid var(--aia-exchange-trend-down);
}

.aia-exchange-trend-wrap--down .aia-exchange-trend__label {
	color: var(--aia-exchange-trend-down);
}

.aia-exchange-trend--flat {
	width: 10px;
	height: 3px;
	border: 0;
	background-color: rgba(0, 0, 0, 0.35);
}

.aia-exchange-trend__label {
	flex-shrink: 0;
	white-space: nowrap;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: rgba(0, 0, 0, 0.55);
}

.aia-exchange-error {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.65);
}
