/*
 * The front end: the shop page, and the customer's estimate.
 *
 * The estimate page is the one that matters. A customer approves work from
 * it, so the amount is stated in the button's own sentence rather than only
 * in a table above it - "Approve" on its own is a word people click without
 * reading and then dispute.
 *
 * The inspection shows measurements. "3mm" is a number somebody can put
 * next to a limit and decide for themselves; "worn" is whatever they are
 * afraid it means, which is why so many inspections do not sell the work
 * they found.
 */

.tas {
	--tas-accent: #1f4e79;
	max-width: 46rem;
	margin: 0 auto;
	line-height: 1.55;
}

.tas h2 {
	margin: 0 0 .5rem;
}

.tas-strapline {
	font-size: 1.1rem;
	color: #444;
	margin: .2rem 0;
}

.tas-none {
	color: #666;
	font-style: italic;
}

.tas-note,
.tas-terms {
	color: #555;
	font-size: .95rem;
	border-left: 3px solid #ddd;
	padding-left: .9rem;
}

.tas-flash {
	padding: .75rem 1rem;
	border-radius: 4px;
	border-left: 4px solid var(--tas-accent);
	background: #f2f5f9;
	margin: 1rem 0;
}

.tas-flash-error {
	border-left-color: #b32d2e;
	background: #fcf0f1;
}

.tas-flash-success {
	border-left-color: #007017;
	background: #f0f7f1;
}

/* The labour rate, printed. Most shops hide it and every customer rings up
   and asks anyway. */
.tas-ratebig {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--tas-accent);
	margin: 0;
}

/* ── the inspection ──────────────────────────────────────────────────── */

.tas-state {
	margin: 1rem 0 .3rem;
}

.tas-items {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.tas-items li {
	padding: .4rem 0;
	border-bottom: 1px solid #eee;
}

/* A dot AND a heading AND the wording. Never colour on its own - and this
   is a page somebody spends money from. */
.tas-dot {
	display: inline-block;
	width: .75rem;
	height: .75rem;
	border-radius: 50%;
	vertical-align: middle;
	margin-right: .35rem;
}

.tas-dot-red {
	background: #b32d2e;
}

.tas-dot-amber {
	background: #b26200;
}

.tas-dot-green {
	background: #007017;
}

.tas-state-red {
	color: #8a2424;
}

.tas-state-amber {
	color: #8a5700;
}

.tas-state-green {
	color: #005c12;
}

/* ── the estimate ────────────────────────────────────────────────────── */

.tas-lines {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.tas-lines td {
	padding: .55rem .4rem;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.tas-amount {
	text-align: right;
	white-space: nowrap;
}

.tas-total td {
	font-weight: 700;
	border-top: 2px solid #333;
	border-bottom: 0;
	font-size: 1.1rem;
}

.tas-linedesc {
	color: #555;
	font-size: .92rem;
}

.tas-authstate,
.tas-authok {
	padding: .7rem .9rem;
	border-radius: 4px;
	background: #f2f5f9;
	border-left: 4px solid var(--tas-accent);
}

.tas-authok {
	border-left-color: #007017;
	background: #f0f7f1;
}

/* ── forms ───────────────────────────────────────────────────────────── */

.tas-button {
	display: block;
	width: 100%;
	padding: .9rem 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	background: var(--tas-accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	margin: .75rem 0;
}

.tas-button:hover,
.tas-button:focus {
	filter: brightness(1.12);
}

.tas-field {
	display: block;
	margin: .75rem 0;
	flex: 1 1 12rem;
}

.tas-field span {
	display: block;
	font-weight: 600;
	margin-bottom: .2rem;
}

.tas-field input,
.tas-field select,
.tas-field textarea {
	width: 100%;
	padding: .6rem .7rem;
	font-size: 1rem;
	border: 1px solid #bbb;
	border-radius: 4px;
	box-sizing: border-box;
}

.tas-check {
	display: flex;
	align-items: center;
	gap: .4rem;
}

.tas-check input {
	width: auto;
}

.tas-slotform {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
}

.tas-slots {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: .75rem;
	margin: 1rem 0;
}

.tas-slot {
	display: inline-block;
	margin: .2rem .5rem .2rem 0;
	padding: .45rem .7rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
}

/* The honeypot: hidden from people, left in the DOM for the machines. */
.tas-hp {
	position: absolute;
	left: -9999px;
	height: 1px;
	overflow: hidden;
}

.tas-list {
	list-style: none;
	margin: .5rem 0 1rem;
	padding: 0;
}

.tas-list li {
	padding: .45rem 0;
	border-bottom: 1px solid #eee;
}

.tas-techlist {
	list-style: none;
	padding: 0;
}

@media screen and (max-width: 600px) {
	.tas {
		padding: 0 .75rem;
	}

	.tas-slotform {
		flex-direction: column;
		align-items: stretch;
	}
}
