.apollo-postcode-availability {
	box-sizing: border-box;
	color: #1f2937;
	font: inherit;
	max-width: 100%;
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
}

.apollo-postcode-availability [hidden] { display: none !important; }

.apollo-postcode-availability__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.85fr);
	gap: 2.5rem;
	align-items: start;
}

.apollo-postcode-availability__showroom-column {
	padding-left: 2rem;
	border-left: 1px solid #e5e7eb;
}

.apollo-postcode-availability__showroom-heading {
	margin-bottom: 0.45rem;
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.apollo-postcode-availability__address {
	color: #1f2937;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.55;
}

.apollo-postcode-availability__label {
	display: block;
	color: #111827;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 0.65rem;
}

.apollo-postcode-availability__controls {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.apollo-postcode-availability__input {
	box-sizing: border-box;
	min-height: 3.25rem;
	width: 12rem;
	max-width: 100%;
	padding: 0.8rem 0.95rem;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 0.65rem;
	color: #111827;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.apollo-postcode-availability__input::placeholder { color: #94a3b8; opacity: 1; }
.apollo-postcode-availability__input:hover { border-color: #94a3b8; }
.apollo-postcode-availability__input:focus {
	background: #ffffff;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
	outline: 0;
}

.apollo-postcode-availability__loading,
.apollo-postcode-availability__status {
	display: block;
	font-size: 0.95rem;
	line-height: 1.5;
	margin-top: 0.9rem;
}

.apollo-postcode-availability__loading { color: #64748b; }
.apollo-postcode-availability__status { min-height: 1.45em; color: #475569; }
.apollo-postcode-availability.is-available .apollo-postcode-availability__status { color: #15803d; }
.apollo-postcode-availability.is-unavailable .apollo-postcode-availability__status,
.apollo-postcode-availability.is-not-found .apollo-postcode-availability__status { color: #b91c1c; }
.apollo-postcode-availability.has-error .apollo-postcode-availability__status { color: #b45309; font-weight: 700; }

.apollo-postcode-availability__location-link,
.apollo-postcode-availability__franchise-cta,
.apollo-postcode-availability__free-measure {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	box-sizing: border-box;
	margin-top: 0.9rem;
	padding: 0.65rem 1rem;
	border-radius: 0.6rem;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.apollo-postcode-availability__location-link {
	color: #1d4ed8;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
}

.apollo-postcode-availability__free-measure {
	color: #ffffff;
	background: #15803d;
	border: 1px solid #15803d;
}

.apollo-postcode-availability__free-measure:hover,
.apollo-postcode-availability__free-measure:focus {
	color: #ffffff;
	background: #166534;
	border-color: #166534;
	transform: translateY(-1px);
}
.apollo-postcode-availability__location-link:hover,
.apollo-postcode-availability__location-link:focus { color: #1e3a8a; background: #dbeafe; }

.apollo-postcode-availability__franchise-cta {
	margin-left: 0.5rem;
	color: #ffffff;
	background: #1d4ed8;
	border: 1px solid #1d4ed8;
}
.apollo-postcode-availability__franchise-cta:hover,
.apollo-postcode-availability__franchise-cta:focus {
	color: #ffffff;
	background: #1e40af;
	border-color: #1e40af;
	transform: translateY(-1px);
}
.apollo-postcode-availability__location-link:focus,
.apollo-postcode-availability__franchise-cta:focus,
.apollo-postcode-availability__free-measure:focus {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
	outline: 0;
}

@media (max-width: 480px) {
	.apollo-postcode-availability { padding: 1.15rem; }
	.apollo-postcode-availability__columns { display: block; }
	.apollo-postcode-availability__showroom-column { margin-top: 1.5rem; padding: 1.25rem 0 0; border-top: 1px solid #e5e7eb; border-left: 0; }
	.apollo-postcode-availability__input { width: 100%; }
	.apollo-postcode-availability__location-link,
	.apollo-postcode-availability__franchise-cta,
	.apollo-postcode-availability__free-measure { width: 100%; }
	.apollo-postcode-availability__franchise-cta { margin-left: 0; }
}
