/* Tent Hire Booking wizard. Everything is scoped under .tth-wizard so it cannot clash with your theme. */
.tth-wizard {
	--tth-primary: #0b2545;
	--tth-accent: #ff7a1a;
	--tth-text: #1d2733;
	--tth-muted: #5b6776;
	--tth-line: #e2e7ee;
	--tth-soft: #f5f7fa;
	--tth-danger: #b42318;
	--tth-ok: #0b6b3a;
	--tth-radius: 16px;
	--tth-bg: #fff;
	--tth-surface: #fff;
	--tth-btn-text: #fff;
	--tth-btn-radius: 999px;
	--tth-input-radius: 12px;
	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px 16px 96px;
	color: var(--tth-text);
	background: var(--tth-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}
.tth-wizard *, .tth-wizard *::before, .tth-wizard *::after { box-sizing: border-box; }
.tth-wizard [hidden] { display: none !important; }
.tth-wizard :where(button, input, select, textarea) { font: inherit; }
.tth-loading { padding: 48px 0; text-align: center; color: var(--tth-muted); }

/* ---------- Progress ---------- */
.tth-progress { margin: 0 0 24px; }
.tth-progress__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 8px; }
.tth-progress__item { flex: 1; min-width: 0; text-align: center; position: relative; }
.tth-progress__item::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--tth-line); z-index: 0; }
.tth-progress__item:first-child::before { display: none; }
.tth-progress__item.is-done::before, .tth-progress__item.is-current::before { background: var(--tth-primary); }
.tth-progress__btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--tth-muted); font-size: 13px; cursor: default; position: relative; z-index: 1; width: 100%; }
button.tth-progress__btn { cursor: pointer; }
.tth-progress__dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--tth-line); font-weight: 700; color: var(--tth-muted); }
.tth-progress__item.is-done .tth-progress__dot { background: var(--tth-primary); border-color: var(--tth-primary); color: #fff; }
.tth-progress__item.is-current .tth-progress__dot { background: var(--tth-accent); border-color: var(--tth-accent); color: var(--tth-primary); }
.tth-progress__item.is-current .tth-progress__label { color: var(--tth-primary); font-weight: 700; }
.tth-progress__mobile { display: none; }

/* ---------- Layout ---------- */
.tth-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.tth-main { min-width: 0; }
.tth-step { min-height: 320px; }
.tth-h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; color: var(--tth-primary); outline: none; }
.tth-h3 { margin: 28px 0 12px; font-size: 19px; color: var(--tth-primary); }
.tth-lead { margin: 0 0 22px; color: var(--tth-muted); }
.tth-hint { margin: 4px 0 0; font-size: 13px; color: var(--tth-muted); }
.tth-notice { margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: #fff6ec; border: 1px solid #ffd9b3; }
.tth-error { margin: 6px 0 0; color: var(--tth-danger); font-size: 14px; font-weight: 600; }
.tth-link { background: none; border: 0; padding: 4px 0; color: var(--tth-primary); text-decoration: underline; cursor: pointer; }

/* ---------- Buttons ---------- */
.tth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--tth-btn-radius); border: 2px solid transparent; font-weight: 700; cursor: pointer; transition: transform .1s, box-shadow .15s, background .15s; }
.tth-btn:focus-visible, .tth-input:focus-visible, .tth-qty__btn:focus-visible, .tth-link:focus-visible, .tth-progress__btn:focus-visible { outline: 3px solid var(--tth-accent); outline-offset: 2px; }
.tth-btn:active { transform: translateY(1px); }
.tth-btn[disabled] { opacity: .5; cursor: not-allowed; }
.tth-btn--primary { background: var(--tth-primary); color: var(--tth-btn-text); }
.tth-btn--primary:hover:not([disabled]) { box-shadow: 0 6px 18px rgba(11, 37, 69, .28); }
.tth-btn--accent { background: var(--tth-accent); color: var(--tth-primary); }
.tth-btn--accent:hover:not([disabled]) { box-shadow: 0 6px 18px rgba(255, 122, 26, .4); }
.tth-btn--ghost { background: var(--tth-surface); color: var(--tth-primary); border-color: var(--tth-line); }
.tth-btn--ghost:hover { border-color: var(--tth-primary); }
.tth-btn--book { min-height: 58px; padding: 0 44px; font-size: 18px; letter-spacing: .06em; }

/* ---------- Nav ---------- */
.tth-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--tth-line); }

/* ---------- Form ---------- */
.tth-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.tth-field { min-width: 0; }
.tth-field--wide { grid-column: 1 / -1; }
.tth-label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--tth-primary); font-size: 15px; }
.tth-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--tth-line); border-radius: var(--tth-input-radius); background: var(--tth-surface); color: var(--tth-text); font: inherit; }
textarea.tth-input { min-height: 96px; resize: vertical; }
.tth-input:focus { border-color: var(--tth-primary); outline: none; }
.tth-input[aria-invalid="true"] { border-color: var(--tth-danger); }
.tth-check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 4px; cursor: pointer; }
.tth-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--tth-primary); flex: none; }
.tth-check .tth-hint { display: block; }
.tth-consents { margin-top: 20px; }
.tth-consents a { color: var(--tth-primary); font-weight: 600; }
.tth-dates { margin: 14px 0 0; font-weight: 600; color: var(--tth-primary); }

/* ---------- Period choices ---------- */
.tth-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tth-choice { position: relative; display: block; cursor: pointer; }
.tth-choice__input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tth-choice__body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 2px solid var(--tth-line); border-radius: var(--tth-radius); transition: border-color .15s, box-shadow .15s; }
.tth-choice__name { font-weight: 700; font-size: 17px; color: var(--tth-primary); }
.tth-choice__sub { font-size: 14px; color: var(--tth-muted); }
.tth-choice:hover .tth-choice__body { border-color: #b8c2d0; }
.tth-choice__input:checked + .tth-choice__body { border-color: var(--tth-accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, .25); background: #fffaf5; }
.tth-choice__input:focus-visible + .tth-choice__body { outline: 3px solid var(--tth-primary); outline-offset: 2px; }

/* ---------- Product cards ---------- */
.tth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 20px; }
.tth-card { display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--tth-line); border-radius: var(--tth-radius); background: var(--tth-surface); transition: box-shadow .2s, border-color .2s; }
.tth-card:hover { box-shadow: 0 10px 28px rgba(11, 37, 69, .1); }
.tth-card.is-selected { border-color: var(--tth-accent); }
.tth-card.is-disabled { opacity: .65; }
.tth-card__media { aspect-ratio: 4 / 3; background: var(--tth-soft); }
.tth-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tth-card__ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 56px; background: linear-gradient(135deg, #eef2f7, #dfe6ef); }
.tth-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.tth-card__title { margin: 0; font-size: 18px; color: var(--tth-primary); line-height: 1.25; }
.tth-card__dim { margin: 0; font-size: 14px; font-weight: 700; color: var(--tth-accent); filter: brightness(.8); }
.tth-card__desc { margin: 4px 0; font-size: 14px; color: var(--tth-muted); }
.tth-card__price { margin: 6px 0 0; font-weight: 800; font-size: 17px; color: var(--tth-primary); }
.tth-card__actions { margin-top: auto; padding-top: 12px; }
.tth-card__actions .tth-btn { width: 100%; }
.tth-card__added { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tth-card__line { font-weight: 700; color: var(--tth-primary); }
.tth-card__na { margin: auto 0 0; padding-top: 12px; color: var(--tth-muted); font-weight: 600; }
.tth-qty { display: inline-flex; align-items: center; border: 2px solid var(--tth-line); border-radius: 999px; overflow: hidden; }
.tth-qty__btn { width: 44px; height: 44px; border: 0; background: var(--tth-soft); color: var(--tth-primary); font-size: 22px; font-weight: 700; cursor: pointer; }
.tth-qty__btn:hover:not([disabled]) { background: #e8edf4; }
.tth-qty__btn[disabled] { opacity: .35; cursor: not-allowed; }
.tth-qty__input { width: 64px; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; color: var(--tth-primary); -moz-appearance: textfield; }
.tth-qty__input::-webkit-outer-spin-button, .tth-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Delivery result ---------- */
.tth-delivery { margin-top: 24px; padding: 18px 20px; border-radius: var(--tth-radius); background: var(--tth-soft); border: 2px solid var(--tth-line); }
.tth-delivery.is-priced { background: #f1faf5; border-color: #bfe3cf; }
.tth-delivery.is-manual { background: #fff6ec; border-color: #ffd9b3; }
.tth-delivery.is-error { background: #fff1f0; border-color: #f5c2bd; color: var(--tth-danger); }
.tth-delivery .tth-h3 { margin-top: 0; }
.tth-delivery p:last-child { margin-bottom: 0; }

/* ---------- Summary ---------- */
.tth-summary { position: sticky; top: 24px; padding: 22px; border: 2px solid var(--tth-line); border-radius: var(--tth-radius); background: var(--tth-surface); box-shadow: 0 8px 28px rgba(11, 37, 69, .08); max-height: calc(100vh - 48px); overflow: auto; }
.tth-summary__title { margin: 0 0 12px; font-size: 20px; color: var(--tth-primary); }
.tth-sum__period { display: flex; flex-direction: column; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: var(--tth-soft); font-size: 14px; }
.tth-sum__period strong { color: var(--tth-primary); font-size: 16px; }
.tth-sum__h { margin: 16px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tth-muted); }
.tth-lines { list-style: none; margin: 0; padding: 0; }
.tth-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--tth-line); font-size: 15px; }
.tth-lines li > span:last-child { white-space: nowrap; font-weight: 600; }
.tth-lines small { display: block; color: var(--tth-muted); font-size: 12px; }
.tth-lines--discount li { color: var(--tth-ok); font-weight: 600; }
.tth-lines__note { color: var(--tth-ok); font-weight: 600; }
.tth-total { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--tth-primary); }
.tth-total__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--tth-muted); }
.tth-total__row--main { font-size: 22px; color: var(--tth-primary); align-items: baseline; margin-bottom: 4px; }
.tth-discount { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tth-line); }
.tth-discount__row { display: flex; gap: 8px; }
.tth-discount__row .tth-btn { min-height: 48px; padding: 0 18px; }
.tth-summary__inline { padding: 18px; border: 2px solid var(--tth-line); border-radius: var(--tth-radius); background: var(--tth-surface); }

/* ---------- Anti-spam field + confirmation ---------- */
.tth-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.tth-confirm { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.tth-confirm__tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--tth-ok); color: #fff; font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.tth-confirm__ref { display: inline-flex; flex-direction: column; gap: 2px; margin: 8px 0 16px; padding: 14px 22px; border-radius: var(--tth-radius); background: #fff6ec; border: 2px solid var(--tth-accent); }
.tth-confirm__ref span { font-size: 13px; color: var(--tth-muted); }
.tth-confirm__ref strong { font-size: 26px; letter-spacing: .04em; color: var(--tth-primary); }
.tth-pay { margin: 18px 0 8px; padding: 16px 18px; border: 2px solid var(--tth-accent); border-radius: var(--tth-radius); background: #fff; }
.tth-pay .tth-h3 { margin-top: 0; }
.tth-pay__amount { font-size: 18px; }
.tth-pay__note { color: var(--tth-muted); font-size: 14px; }
.tth-pay__title { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--tth-text); margin: 16px 0 8px; padding: 0; font-weight: 700; }
.tth-pay__express { display: block; width: 100%; margin: 0 0 8px; text-align: center; box-sizing: border-box; text-decoration: none; padding: 14px 22px; line-height: 1.3; }
.tth-pay__list { border: 0; padding: 0; margin: 0; min-width: 0; }
.tth-pay__opt { border: 1px solid var(--tth-text); margin: 0 0 -1px; }
.tth-pay__opt > label { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; min-height: 48px; }
.tth-pay__opt > label input { width: 18px; height: 18px; accent-color: var(--tth-accent); flex: 0 0 auto; }
.tth-pay__detail { padding: 2px 16px 14px 48px; border-top: 1px dashed var(--tth-line); }
.tth-pay__detail[hidden] { display: none; }
.tth-pay__fields { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; }
.tth-pay__fields dt { color: var(--tth-muted); }
.tth-pay__fields dd { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 600; word-break: break-all; }
.tth-pay__copy { border: 1px solid var(--tth-line); background: var(--tth-soft); border-radius: 999px; padding: 3px 12px; font-size: 13px; cursor: pointer; color: var(--tth-text); font-weight: 400; }
.tth-pay__text { white-space: pre-line; margin: 8px 0 0; }
.tth-pay__ref { margin: 8px 0 0; font-size: 14px; color: var(--tth-muted); }
@media print { .tth-confirm .tth-nav, .tth-mobilebar { display: none !important; } }

/* ---------- Mobile bar ---------- */
.tth-mobilebar { display: none; }

@media (max-width: 959px) {
	.tth-layout { grid-template-columns: 1fr; gap: 0; }
	.tth-summary { position: fixed; left: 0; right: 0; bottom: 64px; top: auto; max-height: 70vh; border-radius: 20px 20px 0 0; border-bottom: 0; transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility .25s; z-index: 99998; box-shadow: 0 -10px 40px rgba(11, 37, 69, .25); }
	.tth-sheet-open .tth-summary { transform: none; visibility: visible; }
	.tth-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 16px; background: var(--tth-primary); color: #fff; box-shadow: 0 -4px 20px rgba(0, 0, 0, .2); }
	.tth-mobilebar__label { opacity: .8; }
	.tth-mobilebar__total { font-size: 20px; font-weight: 800; }
	.tth-mobilebar .tth-link { color: #fff; font-weight: 700; padding: 10px 4px; }
}
@media (max-width: 640px) {
	.tth-wizard { padding: 12px 12px 96px; }
	.tth-h2 { font-size: 23px; }
	.tth-progress__list { display: none; }
	.tth-progress__mobile { display: block; font-weight: 700; color: var(--tth-primary); }
	.tth-progress__bar { display: block; height: 8px; margin-top: 8px; border-radius: 99px; background: var(--tth-line); overflow: hidden; }
	.tth-progress__fill { display: block; height: 100%; background: var(--tth-accent); border-radius: 99px; transition: width .3s; }
	.tth-fields { grid-template-columns: 1fr; }
	.tth-grid { grid-template-columns: 1fr; }
	.tth-choices { grid-template-columns: 1fr 1fr; }
	.tth-nav { position: sticky; bottom: 64px; background: #fff; padding: 12px 0; margin-top: 24px; z-index: 5; }
	.tth-nav .tth-btn { flex: 1; padding: 0 14px; }
	.tth-btn--book { padding: 0 14px; }
	.tth-input, .tth-qty__input { font-size: 16px; } /* stops iOS zooming into fields */
}
@media (min-width: 641px) { .tth-progress__mobile { display: none; } }
@media (prefers-reduced-motion: reduce) { .tth-wizard * { transition: none !important; } }

/* Address helper (postcode lookup) */
.tth-addr { margin: -4px 0 4px; }
.tth-addr .tth-hint { margin: 0 0 6px; }
.tth-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tth-chip { font: inherit; font-size: 14px; line-height: 1.2; padding: 8px 14px; min-height: 44px; border-radius: var(--tth-btn-radius); border: 1.5px solid var(--tth-line); background: var(--tth-surface); color: var(--tth-primary); cursor: pointer; }
.tth-chip:hover { border-color: var(--tth-accent); }
.tth-chip:focus-visible { outline: 3px solid var(--tth-accent); outline-offset: 2px; }
