/**
 * Omacro dealer locator.
 *
 * Two parts: the panel omacro-triggers.js shows while the vendor's loader is
 * on its way, and phone overrides for the vendor's own modal. That markup is
 * rendered into our page, not an iframe, so it can be styled, but its own
 * stylesheet is injected after ours and scopes everything under .oma-omacro.
 * The overrides repeat that scope plus .oma-buynow to win on specificity
 * rather than reaching for !important.
 */

.gatorco-omacro-status {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.5);
}

.gatorco-omacro-status__box {
	width: 100%;
	max-width: 320px;
	padding: 24px;
	background: #fff;
	color: var(--color-ink, #221f20);
	text-align: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gatorco-omacro-status__spinner {
	display: block;
	width: 32px;
	height: 32px;
	margin: 0 auto 12px;
	border: 3px solid rgba(0, 0, 0, 0.15);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: gatorco-omacro-spin 0.8s linear infinite;
}

.gatorco-omacro-status.is-error .gatorco-omacro-status__spinner {
	display: none;
}

.gatorco-omacro-status__message {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
}

.gatorco-omacro-status__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.gatorco-omacro-status__actions[hidden] {
	display: none;
}

.gatorco-omacro-status__actions button {
	min-width: 44px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 16px;
	cursor: pointer;
}

.gatorco-omacro-status__actions .gatorco-omacro-status__retry {
	background: var(--color-ink, #221f20);
	border-color: var(--color-ink, #221f20);
	color: #fff;
}

@keyframes gatorco-omacro-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Still visible as a ring, just not moving. */
@media (prefers-reduced-motion: reduce) {
	.gatorco-omacro-status__spinner {
		animation: none;
	}
}

@media (max-width: 767px) {
	.oma-omacro .oma-buynow .oma-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: -8px -6px 0 8px;
	}

	.oma-omacro .oma-buynow .oma-tabs > li > a {
		display: flex;
		align-items: center;
		min-height: 44px;
		margin-right: 8px;
	}

	.oma-omacro .oma-buynow .oma-pager .oma-pager > li > a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		margin-left: 8px;
		border-radius: 2px;
	}

	.oma-omacro .oma-buynow .oma-pager .oma-pager > li:first-child > a {
		margin-left: 0;
	}

	/* Under 16px, iOS zooms the page when the field takes focus. The vendor
	   sets 14px through a six class selector, hence the length of this one. */
	.oma-omacro .oma-buynow .oma-local-market .oma-map .oma-google-map .oma-map-control.oma-control-text {
		height: 40px;
		font-size: 16px;
	}
}
