/*
 * CRM Exchange Rates — Widget Stylesheet
 * File: unitedpayremit-rates.css
 * Version: 2.0.0
 */

/* ----------------------------------------------------------------
   Wrapper & Card
---------------------------------------------------------------- */
.uprm-wrapper {
	padding: 1rem 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.uprm-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	max-width: 500px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
	margin: 0 auto 0 auto;
}

/* ----------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.uprm-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 1.25rem 1.5rem;
	background: #f9fafb;
	border-bottom: 1px solid #f0f0f0;
}

.uprm-flags {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 26px;
	line-height: 1;
	flex-shrink: 0;
}

.uprm-arrow {
	font-size: 13px;
	color: #9ca3af;
}

.uprm-header-text {
	flex: 1;
	min-width: 0;
}

.uprm-header-text h3 {
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uprm-header-text p {
	margin: 0;
	font-size: 11px;
	color: #6b7280;
}

.uprm-live {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #dcfce7;
	color: #15803d;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Main Rate Display
---------------------------------------------------------------- */
.uprm-rate-main {
	text-align: center;
	padding: 2rem 1.5rem 1.5rem;
	border-bottom: 1px solid #f0f0f0;
}

.uprm-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: #9ca3af;
	margin: 0 0 10px;
	font-weight: 500;
}

.uprm-rate-value {
	font-size: 52px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px;
	line-height: 1;
	letter-spacing: -1px;
}

.uprm-rate-note {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
}

/* ----------------------------------------------------------------
   Meta Grid (Min Send / Destination)
---------------------------------------------------------------- */
.uprm-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: #f0f0f0;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
}

.uprm-meta-item {
	background: #ffffff;
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.uprm-meta-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #9ca3af;
	font-weight: 500;
}

.uprm-meta-item strong {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

/* ----------------------------------------------------------------
   Provinces
---------------------------------------------------------------- */
.uprm-provinces {
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #f0f0f0;
}

.uprm-provinces-label {
	font-size: 11px;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 8px;
}

.uprm-provinces-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.uprm-tag {
	display: inline-block;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 20px;
}

/* ----------------------------------------------------------------
   CTA Button
---------------------------------------------------------------- */
.uprm-cta {
	padding: 1.25rem 1.5rem;
	text-align: center;
}

.uprm-cta-btn {
	display: block;
	background: #da267a;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	padding: 13px 28px;
	border-radius: 10px;
	transition: background 0.18s ease, transform 0.12s ease;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.uprm-cta-btn:hover,
.uprm-cta-btn:focus {
	background: #329bca;
	color: #ffffff !important;
	outline: 3px solid #93c5fd;
	outline-offset: 2px;
}

.uprm-cta-btn:active {
	transform: scale(0.98);
}

.uprm-disclaimer {
	font-size: 11px;
	color: #9ca3af;
	margin: 10px 0 0;
	line-height: 1.5;
}

/* ----------------------------------------------------------------
   Error State
---------------------------------------------------------------- */
.uprm-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ----------------------------------------------------------------
   Accessibility: Focus visible
---------------------------------------------------------------- */
.uprm-cta-btn:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

/* ----------------------------------------------------------------
   Mobile Responsive
---------------------------------------------------------------- */
@media (max-width: 520px) {
	.uprm-card {
		border-radius: 12px;
	}

	.uprm-header {
		padding: 1rem 1.1rem;
		gap: 8px;
	}

	.uprm-header-text h3 {
		font-size: 13px;
	}

	.uprm-rate-main {
		padding: 1.5rem 1rem;
	}

	.uprm-rate-value {
		font-size: 40px;
	}

	.uprm-meta-item {
		padding: 0.8rem 1rem;
	}

	.uprm-provinces {
		padding: 0.8rem 1rem;
	}

	.uprm-cta {
		padding: 1rem;
	}
}

@media (max-width: 360px) {
	.uprm-rate-value {
		font-size: 34px;
	}

	.uprm-meta-grid {
		grid-template-columns: 1fr;
	}
}
