/* GorillaGear Rentals: collection and return at checkout and on orders.
   Uses the same --ggr-* colours as the booking page (the theme re-points them). */

.ggr-handover {
	/* The theme's own colours first, so this reads properly in dark and light
	   on every page (checkout, thank-you, My account). */
	--ggr-h-purple: var(--gg-purple, var(--ggr-purple, #4834e1));
	--ggr-h-pale: var(--gg-purple-pale, var(--ggr-purple-pale, #f1effe));
	--ggr-h-ink: var(--gg-ink, var(--ggr-ink, #14141a));
	--ggr-h-soft: var(--gg-soft, var(--ggr-soft, #5d5d6b));
	--ggr-h-line: var(--gg-line-strong, var(--ggr-line, #e3e3ea));
	--ggr-h-yellow: var(--gg-yellow, var(--ggr-yellow, #FFD93D));
	--ggr-h-surface: var(--gg-surface, #fff);
	--ggr-h-bad: var(--gg-bad, #b32d2e);
	margin: 1.25em 0;
	padding: 1.1em 1.2em 1.2em;
	border: 1px solid var(--ggr-h-line);
	border-radius: 8px;
	background: var(--ggr-h-surface);
	color: var(--ggr-h-ink);
}

.ggr-handover strong,
.ggr-handover legend,
.ggr-handover label,
.ggr-handover h2,
.ggr-handover h3,
.ggr-handover h4 { color: var(--ggr-h-ink) !important; }

.ggr-handover .ggr-handover__sub {
	margin: 1.1em 0 0.5em;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ggr-h-soft) !important;
}
.ggr-handover__part:first-of-type .ggr-handover__sub { margin-top: 0.2em; }

.ggr-handover .ggr-handover__title {
	margin: 0 0 0.8em;
	font-size: 1.15em;
	font-weight: 700;
}

/* ---------- locker or in person ---------- */

.ggr-handover__places {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.6em;
	margin-bottom: 1em;
}

.ggr-place {
	display: flex;
	gap: 0.65em;
	align-items: flex-start;
	margin: 0 !important;
	padding: 0.8em 0.9em;
	border: 1.5px solid var(--ggr-h-line);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ggr-place.is-on,
.ggr-place:has(input:checked) {
	border-color: var(--ggr-h-purple);
	background: var(--ggr-h-pale);
}

.ggr-place input { margin-top: 0.25em; accent-color: var(--ggr-h-purple); }

.ggr-place__body { display: flex; flex-direction: column; gap: 0.15em; line-height: 1.35; }
.ggr-place__body span { font-size: 0.9em; color: var(--ggr-h-soft) !important; }
.ggr-place__price { font-style: normal; font-weight: 700; font-size: 0.9em; color: var(--ggr-h-ink); }

/* ---------- one day ---------- */

.ggr-handover__where { margin: 0 0 0.8em; font-size: 0.95em; }

.ggr-slot {
	margin: 0 0 0.9em !important;
	padding: 0.75em 0.8em 0.85em !important;
	border: 1px solid var(--ggr-h-line) !important;
	border-radius: 8px;
	min-width: 0;
}

.ggr-slot.is-missing { border-color: #d6455d !important; box-shadow: 0 0 0 2px rgba(214, 69, 93, 0.2); }

.ggr-slot__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25em 0.6em;
	padding: 0 0.3em !important;
	font-size: 0.95em;
}

.ggr-slot__kind {
	display: inline-block;
	padding: 0.1em 0.5em;
	border-radius: 4px;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--ggr-h-purple);
	color: #fff;
}

.ggr-slot__kind--return { background: var(--ggr-h-yellow); color: #111; }

.ggr-slot__items {
	flex-basis: 100%;
	font-size: 0.85em;
	color: var(--ggr-h-soft) !important;
}

.ggr-slot__hours {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
	gap: 0.35em;
	margin-top: 0.55em;
}

.ggr-hour { margin: 0 !important; cursor: pointer; }
.ggr-hour input { position: absolute; opacity: 0; pointer-events: none; }

.ggr-hour span {
	display: block;
	padding: 0.45em 0;
	border: 1px solid var(--ggr-h-line);
	border-radius: 6px;
	text-align: center;
	font-size: 0.88em;
	font-weight: 600;
	color: var(--ggr-h-ink);
	background: transparent;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

.ggr-hour:hover span { border-color: var(--ggr-h-purple); }
.ggr-hour input:focus-visible + span { outline: 2px solid var(--ggr-h-purple); outline-offset: 2px; }

.ggr-hour.is-on span,
.ggr-hour input:checked + span {
	background: var(--ggr-h-purple);
	border-color: var(--ggr-h-purple);
	color: #fff;
}

.ggr-slot__none { margin: 0.5em 0 0; font-size: 0.9em; color: var(--ggr-h-soft); }

.ggr-handover__note { margin: 0.4em 0 0; font-size: 0.85em; color: var(--ggr-h-soft); }

.ggr-handover__box label { display: block; font-weight: 600; margin-bottom: 0.25em; }

/* ---------- on the order and in My account ---------- */

.ggr-handover--order { margin-top: 2em; }

.ggr-handover__list { list-style: none; margin: 0 0 0.8em; padding: 0; }

.ggr-handover__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em 0.6em;
	padding: 0.75em 0;
	border-top: 1px solid var(--ggr-h-line);
}

.ggr-pin {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em;
}

.ggr-pin__label { font-size: 0.8em; font-weight: 700; letter-spacing: 0.08em; color: var(--ggr-h-soft); }
.ggr-pin__digits { color: var(--ggr-h-ink); font-family: "Courier New", Courier, monospace; font-size: 1.5em; font-weight: 700; letter-spacing: 0.18em; }
.ggr-pin__when { font-size: 0.85em; color: var(--ggr-h-soft); }
.ggr-slot__visit { flex-basis: 100%; font-size: 0.85em; font-weight: 600; color: var(--ggr-h-ink); }

.ggr-move { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.5em; align-items: center; margin: 0.2em 0 0; }
.ggr-move label { display: flex; gap: 0.4em; align-items: center; margin: 0; font-size: 0.9em; }
.ggr-move select { padding: 0.3em 0.5em; }

@media (max-width: 560px) {
	.ggr-handover { padding: 0.9em 0.9em 1em; }
	.ggr-slot__hours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* An hour that would clash with the customer's own other time that day. */
.ggr-hour.is-clash { cursor: not-allowed; }
.ggr-hour.is-clash span {
	opacity: 0.35;
	text-decoration: line-through;
	border-style: dashed;
}
.ggr-hour.is-clash:hover span { border-color: var(--ggr-h-line); }

/* ---------- delivery ---------- */

.ggr-slot__pref { margin: 0.5em 0 0; font-size: 0.85em; font-weight: 700; color: var(--ggr-h-ink); }
.ggr-slot__pref span { color: var(--ggr-h-yellow); }

.ggr-handover__delivery {
	margin: 0.4em 0 0.9em;
	padding: 0.1em 0.9em 0.9em;
	border: 1px dashed var(--ggr-h-line);
	border-radius: 8px;
}
.ggr-del-row { margin: 0 0 0.7em !important; }
.ggr-del-row label { display: block; margin-bottom: 0.25em; font-size: 0.9em; font-weight: 600; }
.ggr-del-pc { display: flex; gap: 0.5em; flex-wrap: wrap; }
.ggr-del-pc input { max-width: 11em; text-transform: uppercase; }
.ggr-handover__delivery input[type="text"],
.ggr-handover__delivery textarea {
	width: 100%;
	padding: 0.55em 0.7em;
	border: 1px solid var(--ggr-h-line);
	border-radius: 6px;
	background: transparent;
	color: var(--ggr-h-ink);
}
.ggr-del-msg { margin: 0 0 0.8em !important; font-size: 0.9em; font-weight: 600; color: var(--ggr-h-ink); }
.ggr-del-msg.is-bad { color: var(--ggr-h-bad); }
.ggr-handover__note--strong { color: var(--ggr-h-ink); font-weight: 600; }
.ggr-handover__at { font-size: 0.9em; color: var(--ggr-h-soft); }
.ggr-move select { background: var(--ggr-h-surface); color: var(--ggr-h-ink); border: 1px solid var(--ggr-h-line); border-radius: 6px; }

/* 0.14.1: delivery uses the billing address unless the customer ticks for another */
.ggr-del-where { margin: 0 0 0.5em !important; font-size: 0.9em; color: var(--ggr-h-soft, inherit); }
.ggr-del-toggle label { display: inline-flex !important; align-items: center; gap: 0.5em; font-weight: 600; cursor: pointer; }
.ggr-del-toggle input { width: auto !important; margin: 0; accent-color: var(--gg-purple, #4834e1); }
.ggr-del-other { margin-top: 0.4em; }

/* ---------- choosing a box (0.15) ---------- */

.ggr-boxpick { margin: 0.2em 0 0.9em; }
.ggr-boxpick__label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1em;
	margin: 0 0 0.4em !important;
	font-size: 0.85em;
	font-weight: 700;
	color: var(--ggr-h-ink);
}
.ggr-boxpick__label a { font-weight: 600; }
.ggr-boxpick__list { display: flex; flex-direction: column; gap: 0.4em; }
.ggr-boxpick__list.is-long {
	max-height: 15.5em;
	overflow-y: auto;
	padding-right: 0.35em;
	scrollbar-width: thin;
}
.ggr-boxopt {
	display: flex !important;
	gap: 0.7em;
	align-items: flex-start;
	margin: 0 !important;
	padding: 0.6em 0.8em;
	border: 1px solid var(--ggr-h-line);
	border-radius: 8px;
	cursor: pointer;
	flex: 0 0 auto;
}
.ggr-boxopt input { margin: 0.3em 0 0; flex: 0 0 auto; accent-color: var(--gg-purple, #4834e1); }
.ggr-boxopt__body { display: flex; flex-direction: column; gap: 0.1em; min-width: 0; flex: 1; }
.ggr-boxopt__top { display: flex; justify-content: space-between; gap: 0.8em; align-items: baseline; }
.ggr-boxopt__top strong { color: var(--ggr-h-ink); }
.ggr-boxopt__miles { font-style: normal; font-size: 0.85em; font-weight: 600; white-space: nowrap; color: var(--ggr-h-soft); }
.ggr-boxopt__meta, .ggr-boxopt__more { font-size: 0.88em; font-weight: 400; color: var(--ggr-h-soft); }
.ggr-boxopt__more { display: none; margin-top: 0.2em; }
.ggr-boxopt__full { font-size: 0.85em; font-weight: 700; color: var(--ggr-h-bad); }
.ggr-boxopt:hover { border-color: var(--gg-purple, #4834e1); }
.ggr-boxopt.is-on {
	border-color: var(--gg-purple, #4834e1);
	background: var(--gg-purple-pale, #f1effe);
	box-shadow: inset 0 0 0 1px var(--gg-purple, #4834e1);
}
.ggr-boxopt.is-on .ggr-boxopt__more { display: block; }
.ggr-boxopt.is-full:not(.is-on) { opacity: 0.6; }
/* The chosen box always sits at the top of its list. */
.ggr-boxpick__list .ggr-boxopt.is-on { order: -1 !important; }

/* ---------- changing a slot after booking (0.16) ---------- */

.ggr-change { flex-basis: 100%; margin: 0.3em 0 0; }
.ggr-change > summary {
	display: inline-block;
	padding: 0.25em 0.8em;
	border: 1px solid var(--gg-purple, #4834e1);
	border-radius: 6px;
	color: var(--gg-purple, #4834e1);
	font-size: 0.88em;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.ggr-change > summary::-webkit-details-marker { display: none; }
.ggr-change[open] > summary { margin-bottom: 0.6em; }
.ggr-change__form {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	align-items: flex-start;
	padding: 0.8em 0.9em;
	border: 1px solid var(--ggr-h-line);
	border-radius: 8px;
}
.ggr-change__field { display: flex; flex-direction: column; gap: 0.2em; margin: 0; font-size: 0.9em; font-weight: 600; }
.ggr-change__field select {
	min-width: min(22em, 100%);
	max-width: 100%;
	padding: 0.45em 0.6em;
	background: var(--ggr-h-surface);
	color: var(--ggr-h-ink);
	border: 1px solid var(--ggr-h-line);
	border-radius: 6px;
}
.ggr-change__when { display: flex; flex-direction: column; gap: 0.4em; }
.ggr-change__when[hidden] { display: none; }
.ggr-change__cost, .ggr-change__note { font-size: 0.88em; color: var(--ggr-h-soft); }
.ggr-change__note { margin: 0.5em 0 0 !important; }
.ggr-change__wait { flex-basis: 100%; margin: 0.3em 0 0 !important; font-size: 0.9em; font-weight: 600; color: var(--ggr-h-ink); }

/* 0.17: locker or delivery as two buttons, and the payment pop-up */
.ggr-change__form { align-items: stretch; }
.ggr-change__form > .button { align-self: flex-start; }
.ggr-change__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11em, 1fr)); gap: 0.5em; }
.ggr-change__tab { position: relative; display: flex !important; margin: 0 !important; cursor: pointer; }
.ggr-change__tab input { position: absolute; opacity: 0; pointer-events: none; }
.ggr-change__tab > span {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	flex: 1;
	padding: 0.6em 0.8em;
	border: 1px solid var(--ggr-h-line);
	border-radius: 8px;
}
.ggr-change__tab strong { color: var(--ggr-h-ink); }
.ggr-change__tab em { font-style: normal; font-size: 0.82em; font-weight: 400; color: var(--ggr-h-soft); }
.ggr-change__tab:hover > span { border-color: var(--gg-purple, #4834e1); }
.ggr-change__tab input:checked + span {
	border-color: var(--gg-purple, #4834e1);
	background: var(--gg-purple-pale, #f1effe);
	box-shadow: inset 0 0 0 1px var(--gg-purple, #4834e1);
}
.ggr-change__tab input:focus-visible + span { outline: 2px solid var(--gg-purple, #4834e1); outline-offset: 2px; }
.ggr-change__pane { display: flex; flex-direction: column; gap: 0.6em; }
.ggr-change__pane[hidden], .ggr-change__field[hidden] { display: none; }
.ggr-change__field select { width: 100%; min-width: 0; }
.ggr-handover__manage { margin: 0.9em 0 0 !important; }

html.ggr-pay-open { overflow: hidden; }
.ggr-paybox {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gg-scrim, rgba(15, 15, 25, 0.6));
}
.ggr-paybox__box {
	display: flex;
	flex-direction: column;
	width: min(640px, calc(100% - 2rem));
	height: min(640px, calc(100% - 2rem));
	border: 1px solid var(--gg-line, #e3e3ea);
	border-radius: 14px;
	background: var(--gg-bg, #fff);
	color: var(--gg-ink, #14141a);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ggr-paybox__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.8rem 1.1rem;
	border-bottom: 1px solid var(--gg-line, #e3e3ea);
	background: var(--gg-surface, #fff);
	font-size: 1.1rem;
}
.ggr-paybox__body { position: relative; flex: 1; min-height: 0; }
.ggr-paybox__body iframe { width: 100%; height: 100%; border: 0; display: block; }
.ggr-paybox__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gg-soft, #5d5d6b); }
.ggr-paybox__loading[hidden] { display: none; }
@media (max-width: 700px) {
	.ggr-paybox__box { width: 100%; height: 100%; border-radius: 0; border: 0; }
}

.ggr-change__wait .button { margin-left: 0.4em; text-decoration: none !important; }
.ggr-paybox__box { height: min(540px, calc(100% - 2rem)); }
.ggr-paybox__head .button {
	padding: 0.4em 0.9em;
	border: 2px solid var(--gg-purple, #4834e1);
	border-radius: 7px;
	background: transparent;
	color: var(--gg-purple, #4834e1);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}

/* 0.18: choosing the day */
.ggr-slot__days { display: flex; flex-wrap: wrap; gap: 0.4em; margin: 0.5em 0 0.2em; }
.ggr-day { position: relative; margin: 0 !important; cursor: pointer; }
.ggr-day input { position: absolute; opacity: 0; pointer-events: none; }
.ggr-day > span {
	display: inline-flex;
	gap: 0.45em;
	align-items: baseline;
	padding: 0.4em 0.8em;
	border: 1px solid var(--ggr-h-line);
	border-radius: 99px;
	font-size: 0.92em;
}
.ggr-day strong { color: var(--ggr-h-ink); }
.ggr-day em { font-style: normal; font-size: 0.88em; color: var(--ggr-h-soft); }
.ggr-day:hover > span { border-color: var(--gg-purple, #4834e1); }
.ggr-day.is-on > span, .ggr-day input:checked + span {
	border-color: var(--gg-purple, #4834e1);
	background: var(--gg-purple-pale, #f1effe);
	box-shadow: inset 0 0 0 1px var(--gg-purple, #4834e1);
}
.ggr-day input:focus-visible + span { outline: 2px solid var(--gg-purple, #4834e1); outline-offset: 2px; }
.ggr-change__days { display: flex; flex-wrap: wrap; gap: 0.4em; }
.ggr-change__addr { display: flex; flex-direction: column; gap: 0.6em; }
.ggr-change__addr input, .ggr-change__addr textarea {
	width: 100%;
	padding: 0.45em 0.6em;
	background: var(--ggr-h-surface);
	color: var(--ggr-h-ink);
	border: 1px solid var(--ggr-h-line);
	border-radius: 6px;
	font: inherit;
}
.ggr-change__addr input { max-width: 11em; text-transform: uppercase; }
.ggr-change__none { font-size: 0.9em; font-weight: 600; color: var(--ggr-h-bad); }
.ggr-change__none[hidden] { display: none; }
.ggr-change__addr input, .ggr-change__addr textarea, .ggr-change__field select { box-sizing: border-box; }
.ggr-change__addr textarea { min-height: 4.5em; height: 4.5em; resize: vertical; }

/* 0.19: more room for the change form on wide screens */
@media (min-width: 900px) {
	.ggr-change__pane { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0.7em 1em; align-items: end; }
	.ggr-change__pane > .ggr-change__cost, .ggr-change__pane > .ggr-change__none { grid-column: 1 / -1; }
	.ggr-change__pane[data-ggr-change-how="delivery"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; }
	.ggr-change__pane[data-ggr-change-how="delivery"] > .ggr-change__addr { grid-column: 2; grid-row: 1 / span 2; }
	.ggr-change__pane[hidden] { display: none; }
	.ggr-handover--order .ggr-handover__note { max-width: 60em; }
}

/* ---------- Good to know: the hire rules, at checkout and on a booking (0.20) ---------- */
.ggr-policy {
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border: 1px solid var(--gg-line, #e3e3ea);
	border-left: 4px solid var(--gg-yellow, #FFD93D);
	border-radius: 8px;
	background: var(--gg-surface-2, #f7f7fb);
	color: var(--gg-ink, #14141a);
	font-size: 0.88rem;
	line-height: 1.45;
	text-align: left;
}
.ggr-policy__title { display: block; margin-bottom: 0.3rem; font-size: 0.95rem; }
.ggr-policy ul { margin: 0 0 0.4rem; padding-left: 1.1rem; list-style: disc; }
.ggr-policy li { margin: 0 0 0.25rem; color: var(--gg-soft, #5d5d6b); }
.ggr-policy a { font-weight: 600; color: var(--gg-purple, #4834e1); }
.ggr-handover--order + .ggr-policy, .woocommerce-order .ggr-policy { margin-top: 1rem; }
.ggr-terms h2 { margin: 1.6rem 0 0.4rem; font-size: 1.3rem; }
.ggr-terms p { margin: 0 0 0.8rem; }

/* ---------- Extending a hire, or starting it earlier (My account) ---------- */
.ggr-extend__when { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 1em 1.4em; }
.ggr-extend__when > .ggr-change__field { flex: 0 0 auto; max-width: 100%; }
.ggr-extend__side { flex: 1 1 14em; display: flex; flex-direction: column; align-items: flex-start; gap: 0.8em; padding-top: 1.7em; }
.ggr-extend__side .button[disabled] { opacity: 0.5; cursor: not-allowed; }
/* The calendar: the same look as the one on the booking page. */
.ggr-extcal .ggr-cal__input { display: none !important; }
.ggr-extcal input[type="date"] {
	box-sizing: border-box; padding: 0.55em 0.7em; font: inherit; font-weight: 400;
	color: var(--ggr-h-ink); background: transparent;
	border: 1px solid var(--ggr-h-line); border-radius: 8px;
}
.ggr-extcal .flatpickr-calendar { width: 308px; max-width: 100%; box-shadow: none; border: 1px solid var(--ggr-h-line); border-radius: 8px; font-weight: 400; }
.ggr-extcal .flatpickr-calendar::before, .ggr-extcal .flatpickr-calendar::after { display: none; }
.ggr-extcal .flatpickr-day { font-size: 15px; }
.ggr-extcal .flatpickr-day.selected, .ggr-extcal .flatpickr-day.selected:hover {
	background: var(--ggr-h-purple); border-color: var(--ggr-h-purple); color: #fff;
}
.ggr-extcal .flatpickr-day.today { border-color: var(--ggr-h-yellow); }
.ggr-extcal .flatpickr-day.flatpickr-disabled, .ggr-extcal .flatpickr-day.flatpickr-disabled:hover { color: #b9b9c6; text-decoration: line-through; }
.ggr-extend__ask { margin-top: 0.8em; padding-top: 0.8em; border-top: 1px solid var(--ggr-h-line); }
.ggr-extend__items { display: flex; flex-direction: column; gap: 0.35em; }
.ggr-extend__item { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 0.2em 0.6em; margin: 0 !important; font-size: 0.92em; cursor: pointer; }
.ggr-extend__item input { margin: 0; }
.ggr-extend__item span { font-weight: 600; color: var(--ggr-h-ink); }
.ggr-extend__item em { font-style: normal; font-size: 0.92em; color: var(--ggr-h-soft); }
.ggr-extend__item.is-off { cursor: default; opacity: 0.75; }
.ggr-extend__total { margin: 0 !important; font-size: 0.9em; font-weight: 600; color: var(--ggr-h-ink); }

/* ---------- used kit: post, or by GorillaBox or delivery (0.26.0) ---------- */

.ggr-handover.is-reloading {
	opacity: 0.6;
	pointer-events: none;
	transition: opacity 150ms ease;
}

/* ---------- postage choices at checkout (0.26.3, full width 0.26.4) ----------
   WooCommerce puts the postage list in the narrow right-hand cell of the order
   summary, right aligned, so each service wrapped over two lines. handover.js
   moves the "Shipment" heading into the cell and spans it across the table, and
   each service is a card: logo, name and speed, price. */

body.woocommerce-checkout tr.woocommerce-shipping-totals {
	--ggr-h-purple: var(--gg-purple, var(--ggr-purple, #4834e1));
	--ggr-h-pale: var(--gg-purple-pale, var(--ggr-purple-pale, #f1effe));
	--ggr-h-ink: var(--gg-ink, var(--ggr-ink, #14141a));
	--ggr-h-soft: var(--gg-soft, var(--ggr-soft, #5d5d6b));
	--ggr-h-line: var(--gg-line-strong, var(--ggr-line, #e3e3ea));
}

body.woocommerce-checkout tr.woocommerce-shipping-totals > td {
	text-align: left !important;
}

body.woocommerce-checkout tr.woocommerce-shipping-totals > td[colspan] {
	width: auto !important;
}

.ggr-ship__head {
	margin: 0 0 0.6em;
	font-weight: 700;
	color: var(--ggr-h-ink);
}

body.woocommerce-checkout ul#shipping_method {
	display: grid;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	text-align: left;
}

body.woocommerce-checkout ul#shipping_method li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.7em;
	margin: 0 !important;
	padding: 0.7em 0.85em !important;
	border: 1.5px solid var(--ggr-h-line);
	border-radius: 8px;
	line-height: 1.3;
	text-indent: 0 !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.woocommerce-checkout ul#shipping_method li:hover {
	border-color: var(--ggr-h-purple);
}

body.woocommerce-checkout ul#shipping_method li:has(input:checked) {
	border-color: var(--ggr-h-purple);
	background: var(--ggr-h-pale);
}

body.woocommerce-checkout ul#shipping_method li input.shipping_method {
	flex: 0 0 auto;
	margin: 0 !important;
	accent-color: var(--ggr-h-purple);
}

body.woocommerce-checkout ul#shipping_method li label {
	display: flex !important;
	flex: 1 1 auto;
	align-items: center;
	gap: 0.75em;
	min-width: 0;
	margin: 0 !important;
	font-weight: 400 !important;
	cursor: pointer;
}

/* The whole card picks the service, not just the radio and the words. */
body.woocommerce-checkout ul#shipping_method li label::after {
	content: "";
	position: absolute;
	inset: 0;
}

body.woocommerce-checkout ul#shipping_method img.pl-checkout-carrier-image {
	flex: 0 0 auto;
	width: 46px !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 3px;
	border-radius: 5px;
	background: #fff;
	object-fit: contain;
}

.ggr-ship__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ggr-ship__name {
	font-weight: 700;
	color: var(--ggr-h-ink);
}

.ggr-ship__speed {
	font-size: 0.85em;
	color: var(--ggr-h-soft);
}

.ggr-ship__price {
	margin-left: auto;
	padding-left: 0.5em;
	font-weight: 700;
	white-space: nowrap;
	color: var(--ggr-h-ink);
}

/* Packlink's own drop-off point button (on drop-off services) sits above the card's click area. */
body.woocommerce-checkout ul#shipping_method li button,
body.woocommerce-checkout ul#shipping_method li a {
	position: relative;
	z-index: 1;
}

/* ---------- express (0.27.0) ---------- */

.ggr-express-note {
	margin: 1.2em 0;
	padding: 0.9em 1.1em;
	border-left: 4px solid var(--ggr-yellow, #ffd23f);
	background: rgba(255, 210, 63, 0.12);
	border-radius: 6px;
	line-height: 1.55;
}

.ggr-express-note p {
	margin: 0 0 0.5em;
}

.ggr-express-note p:last-child {
	margin-bottom: 0;
}

.ggr-express-note strong {
	margin-right: 0.3em;
}

.ggr-express-note__warn {
	font-weight: 700;
}

.ggr-slot__express {
	margin: 0.3em 0 0.6em;
	font-size: 0.88em;
	padding-left: 0.6em;
	border-left: 3px solid var(--ggr-yellow, #ffd23f);
}

/* The express box on the "order received" page and the booking in My account. Tints, so it
   reads on the dark and the light theme. */
.ggr-express-box {
	margin: 0 0 1.2em;
	padding: 0.8em 1em;
	border: 0;
	border-left: 5px solid var(--ggr-yellow, #ffd23f);
	border-radius: 8px;
	background: rgba(255, 210, 63, 0.12);
	color: inherit;
}

.ggr-express-box.ggr-verify--yes {
	border-left-color: #2d7a3e;
	background: rgba(45, 122, 62, 0.12);
}

.ggr-express-box.ggr-verify--no {
	border-left-color: #b32d2e;
	background: rgba(179, 45, 46, 0.1);
}
