/**
 * "Meine Abholung" in My Account.
 *
 * Placeholder look, in the theme's black and red. The real style guide replaces it.
 *
 * The one thing here that is not decoration: the warning at the top has to be impossible to skim
 * past. Somebody who does not read it drives to Bad Bentheim twice on the 30th of December.
 */

.pyro-my {
	margin: 0 0 1.5rem;
}

/* You are coming more than once ------------------------------------------- */

.pyro-my__warning {
	padding: 1rem 1.25rem;
	border: 2px solid #d30107;
	border-radius: 4px;
	background: #fff6f6;

	strong {
		display: block;
		margin-bottom: 0.35rem;
		font-size: 1.1rem;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.02em;
		color: #d30107;
	}

	p {
		margin: 0 0 0.75rem;
	}
}

.pyro-my__trips {
	margin: 0;
	padding-left: 1.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* One trip to the counter -------------------------------------------------- */

.pyro-my__visit {
	padding: 1rem 1.25rem;
	border: 2px solid #131313;
	border-radius: 4px;
}

.pyro-my__when {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 800;
	text-transform: capitalize;
}

.pyro-my__order + .pyro-my__order {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eceaea;
}

.pyro-my__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;

	span {
		font-size: 0.85rem;
		color: #6a6a6a;
	}
}

.pyro-my__items {
	margin: 0.5rem 0 0.75rem;
	padding-left: 1.1rem;
	font-size: 0.9rem;
	color: #4a4a4a;
}

/* Moving it --------------------------------------------------------------- */

.pyro-my__move summary {
	font-weight: 700;
	color: #d30107;
	cursor: pointer;
}

.pyro-my__caution {
	margin: 0.75rem 0;
	padding: 0.6rem 0.75rem;
	font-size: 0.85rem;
	border-left: 4px solid #d30107;
	background: #fff6f6;
}

.pyro-my__date {
	margin: 1rem 0 0.4rem;
	font-size: 0.9rem;
	font-weight: 800;
	text-transform: capitalize;
}

.pyro-my__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
	gap: 0.4rem;
}

.pyro-my__slot {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.5rem 0.6rem;
	border: 2px solid #e2e0e0;
	border-radius: 3px;
	cursor: pointer;

	/* The radio itself is the label. Hiding it and keeping it focusable is the whole trick. */
	input {
		position: absolute;
		width: 1px;
		height: 1px;
		opacity: 0;
	}

	&:hover {
		border-color: #131313;
	}

	&:has( input:checked ) {
		color: #fff;
		background: #d30107;
		border-color: #d30107;
	}

	&:has( input:focus-visible ) {
		outline: 2px solid #131313;
		outline-offset: 2px;
	}

	&.is-current {
		border-color: #d30107;
	}

	&.is-full {
		color: #9a9a9a;
		background: repeating-linear-gradient(
			45deg,
			#fafafa,
			#fafafa 6px,
			#f2f2f2 6px,
			#f2f2f2 12px
		);
		cursor: not-allowed;
	}
}

.pyro-my__time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.pyro-my__left {
	font-size: 0.75rem;
	opacity: 0.85;
}

.pyro-my__move .button {
	margin-top: 1rem;
}

/* Guest access: ask for a link, then the same screen ---------------------- */

.pyro-guest__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;

	input[type="email"] {
		flex: 1 1 14rem;
		min-width: 0;
		padding: 0.6rem 0.75rem;
		font: inherit;
		border: 2px solid #131313;
		border-radius: 3px;
	}
}

.pyro-guest__ok,
.pyro-guest__bad {
	padding: 0.85rem 1.1rem;
	margin-bottom: 1rem;
	border-radius: 4px;
	font-weight: 700;
}

.pyro-guest__ok {
	color: #0a5b12;
	border: 2px solid #0a5b12;
	background: #f2fbf3;
}

.pyro-guest__bad {
	color: #d30107;
	border: 2px solid #d30107;
	background: #fff6f6;
}

/* The pickup card: when, where, and the QR for the counter ----------------------- */

/*
 * The QR sits on its own white tile whatever the page around it looks like: scanners need the light
 * quiet zone around the code, and on the theme's dark pages the card would otherwise have none.
 */
.pyro-code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	margin: 0 0 1.5rem;
	padding: 1.25rem;
	border: 2px solid currentColor;
	border-radius: 4px;
}

.pyro-code__qr {
	flex: 0 0 auto;
	line-height: 0;
	padding: 6px;
	background: #fff;
	border-radius: 4px;
}

.pyro-code__qr svg {
	display: block;
	max-width: 100%;
	height: auto;
}

.pyro-code__text {
	flex: 1 1 240px;
	min-width: 0;
}

.pyro-code__text p {
	margin: 0 0 0.5rem;
}

.pyro-code__title {
	margin: 0 0 0.35rem;
}

.pyro-code__when {
	font-size: 1.15rem;
	font-weight: 800;
	text-transform: capitalize;
}

.pyro-code__code code {
	margin-left: 0.35rem;
	font-size: 1rem;
	letter-spacing: 0.06em;
}

.pyro-code--compact {
	margin: 0 0 1rem;
	padding: 0.9rem;
	border-width: 1px;
}
