/* Checkout Header + Checkout Footer — the minimal chrome of the checkout and
   order-received pages (design.md §Cart & checkout). One stylesheet for the
   pair: they are one visual system. */

/* ---- Header --------------------------------------------------------------- */
.tt-checkout-header {
	padding-inline: calc(50px + var(--tt-bleed));
	background: var(--wp--preset--color--ink, #141412);
	border-bottom: 1px solid #30302e;
	color: #fff;
}

.tt-checkout-header__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	height: 88px;
}

.tt-checkout-header__logo {
	display: block;
	flex-shrink: 0;
}

.tt-checkout-header__logo-img {
	display: block;
}

.tt-checkout-header__logo-img--full {
	width: 280px;
	height: 48px;
}

.tt-checkout-header__logo-img--mark {
	display: none;
	width: 41px;
	height: 48px;
}

.tt-checkout-header__meta {
	display: flex;
	align-items: center;
	gap: 32px;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	white-space: nowrap;
}

.tt-checkout-header__secure {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
}

.tt-checkout-header__lock {
	display: block;
	width: 16px;
	height: 16px;
	color: var(--wp--preset--color--red, #cf2026);
}

.tt-checkout-header__help {
	color: var(--wp--preset--color--grey-light, #adadad);
}

.tt-checkout-header__phone {
	color: #fff !important;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s ease;
}

.tt-checkout-header__phone:hover {
	text-decoration-color: currentColor;
}

/* ---- Footer --------------------------------------------------------------- */
.tt-checkout-footer {
	padding: 32px calc(50px + var(--tt-bleed));
	background: var(--wp--preset--color--ink, #141412);
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-size: 14px;
	color: var(--wp--preset--color--grey-light, #adadad);
}

.tt-checkout-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.tt-checkout-footer__copyright,
.tt-checkout-footer__links {
	margin: 0;
}

.tt-checkout-footer__nav,
.tt-checkout-footer__links {
	display: flex;
	align-items: center;
	gap: 28px;
}

.tt-checkout-footer__link {
	text-transform: none;
}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width: 1099px) {
	.tt-checkout-header {
		padding-inline: 22px 16px;
	}

	.tt-checkout-header__inner {
		height: 72px;
	}

	.tt-checkout-header__logo-img--full {
		display: none;
	}

	.tt-checkout-header__logo-img--mark {
		display: block;
	}

	.tt-checkout-header__meta {
		font-size: 12px;
		letter-spacing: 0.6px;
	}

	/* The phone moves out of the bar; the footer's support email stays. */
	.tt-checkout-header__help {
		display: none;
	}

	/* Links → email → copyright, centred (checkout mobile export). */
	.tt-checkout-footer {
		padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
	}

	.tt-checkout-footer__inner {
		flex-direction: column-reverse;
		gap: 14px;
		text-align: center;
	}

	.tt-checkout-footer__nav {
		flex-direction: column;
		gap: 14px;
	}

	.tt-checkout-footer__links {
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 22px;
	}

	.tt-checkout-footer__links .tt-checkout-footer__link {
		display: flex;
		align-items: center;
		min-height: 40px;
	}

	.tt-checkout-footer__link--email {
		color: var(--wp--preset--color--red-bright, #ff4349) !important;
	}
}
