/* ATS Coverage Checker. Uses Astra's global colours where available. */
.atscc {
	--atscc-accent: var(--ast-global-color-0, #0170b9);
	--atscc-card: #eee;
	--atscc-l4: #1e7d32;
	--atscc-l3: #648000;
	--atscc-l2: #a36a00;
	--atscc-l1: #e04800;
	--atscc-l0: #c62828;
	max-width: 1000px;
	margin: 1rem auto;
}
.atscc__form { text-align: center; }
.atscc__postcode,
.atscc__address {
	border: 2px solid var(--atscc-accent);
	border-radius: 40px;
	padding: 1rem;
	background: #fff;
	color: #000;
	max-width: 100%;
}
.atscc__postcode { width: 300px; text-align: center; text-transform: uppercase; }
.atscc__postcode::placeholder { text-transform: none; }
.atscc__address { display: block; width: 100%; margin-top: 1rem; }
.atscc__address[hidden] { display: none; }
.atscc__buttons { display: flex; justify-content: center; gap: .5rem; margin-top: .75rem; }
.atscc.is-loading .atscc__result { opacity: .5; }
.atscc__error { margin-top: 1rem; padding: .75rem 1rem; border-radius: 6px; background: #fdecea; color: #8a1c1c; text-align: center; }
.atscc__error[hidden] { display: none; }
.atscc__result { margin-top: 2rem; }

.atscc__card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
	margin-bottom: .25rem;
	padding: 1.5rem 2rem;
	border-radius: 6px;
	background: var(--atscc-card);
	animation: atscc-in .4s ease both;
}
.atscc__card:nth-child(2) { animation-delay: .08s; }
.atscc__card:nth-child(3) { animation-delay: .16s; }
.atscc__card:nth-child(4) { animation-delay: .24s; }
@keyframes atscc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .atscc__card { animation: none; } }

.atscc__card h4 { margin: 0; font-size: large; }
.atscc__card .button { margin-left: auto; }

/* Mobile */
.atscc__network-name { flex: 0 0 9rem; font-size: xx-large; font-weight: bold; }
.atscc__rating { flex: 1 1 16rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem 1rem; }
.atscc__bar { grid-row: span 2; display: flex; gap: 3px; align-items: flex-end; height: 28px; }
.atscc__bar span { width: 8px; background: #ccc; border-radius: 2px; }
.atscc__bar span:nth-child(1) { height: 25%; }
.atscc__bar span:nth-child(2) { height: 50%; }
.atscc__bar span:nth-child(3) { height: 75%; }
.atscc__bar span:nth-child(4) { height: 100%; }
.atscc__bar--l4 span.on { background: var(--atscc-l4); }
.atscc__bar--l3 span.on { background: var(--atscc-l3); }
.atscc__bar--l2 span.on { background: var(--atscc-l2); }
.atscc__bar--l1 span.on { background: var(--atscc-l1); }
.atscc__level { font-size: x-large; font-weight: bold; }
.atscc__level--l4 { color: var(--atscc-l4); }
.atscc__level--l3 { color: var(--atscc-l3); }
.atscc__level--l2 { color: var(--atscc-l2); }
.atscc__level--l1 { color: var(--atscc-l1); }
.atscc__level--l0 { color: var(--atscc-l0); }
.atscc__detail { font-size: .9em; opacity: .8; }
.atscc__note { margin: .5rem 0 1rem; font-size: .85em; opacity: .7; text-align: center; }

/* Broadband */
.atscc__tier h4 { flex: 1 1 14rem; }
.atscc__speeds { flex: 1 1 14rem; }
.atscc__speed-value { font-weight: bold; font-size: x-large; }
.atscc__yes { color: var(--atscc-l4); }
.atscc__no { color: var(--atscc-l0); }

.atscc__upsell { display: block; background: #fff; border: 2px solid var(--atscc-accent); }
.atscc__upsell p { margin: .5rem 0; }
.atscc__upsell ul { margin: 0 0 0 1.2rem; }
.atscc__upsell .button { margin: .5rem 0 0; }

@media (max-width: 600px) {
	.atscc__card { padding: 1.25rem; }
	.atscc__network-name { flex-basis: 100%; font-size: x-large; }
	.atscc__card .button { margin-left: 0; }
}
