/**
 * COA Centers - Nearest Center Card Styles
 *
 * Styles for the [coa_nearest_center] shortcode
 * Displays a card showing the nearest center based on user's location
 */

.nearestCenterCard {
	max-width: 420px;
	width: 100%;
}

.nearestCenterSubtitle {
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 400;
	margin-bottom: 12px;
}

.nearestCenterDistance {
	font-weight: 600;
}

.nearestCenterTitle {
	color: #FFFFFF;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 16px;
}

.nearestCenterInfo {
	color: #FFFFFF;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.nearestCenterPhone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #F2D1E6;
	border-radius: 50px;
	padding: 8px 20px;
	margin-bottom: 32px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.nearestCenterPhone:hover {
	background-color: #F9E4F1;
}

.nearestCenterPhoneIcon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nearestCenterPhoneIcon svg {
	width: 18px;
	height: 18px;
}

.nearestCenterPhoneText {
	color: #1A1A1A;
	font-size: 14px;
	font-weight: 500;
}

.nearestCenterPhoneLabel {
	font-weight: 700;
}

.nearestCenterButtons {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
	width: 100%;
}

.nearestCenterBtn,
a.nearestCenterBtn,
a.nearestCenterBtn:visited,
a.nearestCenterBtn:hover,
a.nearestCenterBtn:active {
	padding: 12px 24px;
	border-radius: 50px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: all 0.2s ease;
	flex: 1;
}

.nearestCenterBtnPrimary {
	background-color: #FFFFFF;
	color: #1A1A1A;
	border: 2px solid #FFFFFF;
}

.nearestCenterBtnPrimary:hover {
	background-color: #F0F0F0;
	border-color: #F0F0F0;
}

.nearestCenterBtnSecondary,
a.nearestCenterBtnSecondary,
a.nearestCenterBtnSecondary:visited,
a.nearestCenterBtnSecondary:active {
	background-color: transparent;
	color: #FFFFFF;
	border: 2px solid #FFFFFF;
}

.nearestCenterBtnSecondary:hover,
a.nearestCenterBtnSecondary:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
}

.nearestCenterSeeAll,
a.nearestCenterSeeAll,
a.nearestCenterSeeAll:visited,
a.nearestCenterSeeAll:hover,
a.nearestCenterSeeAll:active {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	margin-top: 8px;
}

.nearestCenterSeeAll:hover,
a.nearestCenterSeeAll:hover {
	text-decoration: underline;
	color: #FFFFFF;
}

.nearestCenterSeeAll svg {
	width: 16px;
	height: 16px;
}

/* Loading state */
.nearestCenterCardLoading .nearestCenterSubtitle,
.nearestCenterCardLoading .nearestCenterTitle,
.nearestCenterCardLoading .nearestCenterInfo {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	color: transparent;
	animation: nearestCenterPulse 1.5s ease-in-out infinite;
}

@keyframes nearestCenterPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Fallback content styles */
.nearestCenterFallbackTitle {
	color: #FFFFFF;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 16px;
}

.nearestCenterFallbackSubtitle {
	color: #FFFFFF;
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 24px;
}

.nearestCenterFallbackForm {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.nearestCenterFallbackInput {
	flex: 1;
	min-width: 120px;
	padding: 14px 20px;
	border: none;
	border-radius: 50px;
	background-color: #F2D1E6;
	color: #1A1A1A;
	font-family: inherit;
	font-size: 15px;
}

.nearestCenterFallbackInput::placeholder {
	color: #C41E8A;
}

.nearestCenterFallbackInput:focus {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

.nearestCenterError {
	color: #FFD700;
	font-size: 14px;
	margin-top: 8px;
}

.nearestCenterSrOnly {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Mobile - stack buttons vertically */
@media (max-width: 767px) {
	.nearestCenterButtons {
		flex-direction: column;
	}
}
