/* Gani Currency Rate Converter & Marquee — front end styles */

:root {
	--gani-cr-accent: #6b2a6e;
	--gani-cr-accent-2: #c9a7cb;
}

.gani-cr-widget {
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.gani-cr-widget *,
.gani-cr-widget *::before,
.gani-cr-widget *::after {
	box-sizing: border-box;
}

/* ---------- Converter card ---------- */

.gani-cr-converter-card {
	position: relative;
	border-radius: 20px;
	padding: 44px 40px;
	background: linear-gradient(120deg, #e4d9e6 0%, var(--gani-cr-accent-2) 55%, #b98fc0 100%);
	overflow: hidden;
	box-shadow: 0 18px 40px -18px rgba(60, 20, 65, 0.35);
}

.gani-cr-converter-card::before,
.gani-cr-converter-card::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	pointer-events: none;
}
.gani-cr-converter-card::before {
	width: 220px;
	height: 220px;
	left: -80px;
	bottom: -100px;
}
.gani-cr-converter-card::after {
	width: 120px;
	height: 120px;
	right: 8%;
	top: -50px;
}

.gani-cr-converter-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px;
	align-items: center;
}

.gani-cr-heading {
	margin: 0 0 14px;
	font-size: 32px;
	line-height: 1.15;
	font-weight: 800;
	color: var(--gani-cr-accent);
}

.gani-cr-subheading {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #3d2740;
	max-width: 34ch;
}

.gani-cr-convert-box {
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(2px);
	border-radius: 16px;
	padding: 22px;
}

.gani-cr-rate-line {
	font-size: 15px;
	font-weight: 600;
	color: #241226;
	margin-bottom: 14px;
}
.gani-cr-live-rate {
	font-weight: 800;
	color: var(--gani-cr-accent);
}

.gani-cr-field {
	display: flex;
	align-items: stretch;
	background: #f4f2f5;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 12px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}
.gani-cr-field:last-of-type {
	margin-bottom: 8px;
}

.gani-cr-field-tag {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
	white-space: nowrap;
	background: #ececee;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #241226;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.gani-cr-select-tag {
	padding-right: 6px;
}

.gani-cr-select {
	border: 0;
	background: transparent;
	font-weight: 700;
	font-size: 14px;
	padding: 8px 4px;
	cursor: pointer;
	color: #241226;
}
.gani-cr-select:focus {
	outline: none;
}

.gani-cr-flag {
	border-radius: 2px;
	display: block;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.gani-cr-input {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 12px 14px;
	font-size: 16px;
	font-weight: 600;
	color: #241226;
	min-width: 0;
}
.gani-cr-input:focus {
	outline: none;
	background: #fff;
}
.gani-cr-result {
	color: var(--gani-cr-accent);
	cursor: default;
}

.gani-cr-note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 2px 0;
	font-size: 12.5px;
	color: #5c4a5f;
}
.gani-cr-note .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ---------- Marquee card ---------- */

.gani-cr-marquee-card {
	margin: -34px auto 0;
	position: relative;
	z-index: 2;
	max-width: 96%;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 45px -20px rgba(30, 10, 35, 0.28);
	padding: 26px 26px 22px;
}

.gani-cr-marquee-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.gani-cr-marquee-header h4 {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	color: var(--gani-cr-accent);
}
.gani-cr-marquee-base {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f4f2f5;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	padding: 8px 14px;
	font-weight: 700;
	font-size: 14px;
	color: #241226;
}

.gani-cr-marquee-body {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gani-cr-arrow {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	color: #555;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gani-cr-arrow:hover {
	background: var(--gani-cr-accent);
	border-color: var(--gani-cr-accent);
	color: #fff;
}
.gani-cr-arrow:disabled {
	opacity: 0.35;
	cursor: default;
	background: #fff;
	color: #555;
	border-color: #ddd;
}

.gani-cr-marquee-track-wrap {
	flex: 1;
	overflow: hidden;
}

.gani-cr-marquee-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 2px;
}
.gani-cr-marquee-track::-webkit-scrollbar {
	display: none;
}

.gani-cr-rate-card {
	flex: 0 0 auto;
	min-width: 190px;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 16px 18px;
	background: #fbfafc;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.gani-cr-rate-card:hover {
	transform: translateY(-3px);
	border-color: var(--gani-cr-accent-2);
	box-shadow: 0 10px 22px -14px rgba(30, 10, 35, 0.35);
}

.gani-cr-rate-card-name {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #7a6a7c;
	margin-bottom: 8px;
}
.gani-cr-rate-card-value {
	font-size: 17px;
	font-weight: 800;
	color: #241226;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
	.gani-cr-converter-inner {
		grid-template-columns: 1fr;
	}
	.gani-cr-converter-card {
		padding: 30px 22px;
	}
	.gani-cr-heading {
		font-size: 26px;
	}
	.gani-cr-marquee-card {
		margin-top: -22px;
		padding: 20px 16px;
	}
	.gani-cr-rate-card {
		min-width: 160px;
	}
}
