/**
 * FlyReturn portal styles.
 *
 * Scoped under .flyreturn-portal so a theme's own rules stay untouched — and
 * every text colour is set explicitly, because inheriting a theme's muted grey
 * made the form unreadable.
 */

.flyreturn-portal {
	/* Text: near-black, not the theme's grey. */
	--fr-text: #16181d;
	--fr-text-soft: #4b5563;
	/* Darkened from #6b7280: hint text also sits on the grey --fr-bg-subtle
	   tiles, where the lighter tone fell to 4.39:1 and missed WCAG AA. */
	--fr-text-faint: #62697a;

	/* Cards stay white; the surrounding tone is the shop's light grey. */
	--fr-bg: #ffffff;
	--fr-bg-subtle: #f2f4f7;
	--fr-border: #d8dce3;
	--fr-border-strong: #b6bcc7;

	--fr-accent: #1f5eff;
	--fr-accent-dark: #1547cc;
	--fr-accent-soft: #eef3ff;

	--fr-success: #0f7b3d;
	--fr-success-soft: #eaf7ef;
	--fr-warning: #92600a;
	--fr-warning-soft: #fdf6e3;
	--fr-error: #b3261e;
	--fr-error-soft: #fdeceb;

	--fr-radius: 14px;
	--fr-radius-sm: 10px;
	--fr-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
	--fr-shadow-lift: 0 2px 4px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.10);

	max-width: 820px;
	margin: 0 auto;
	color: var(--fr-text);
	font-size: 16px;
	line-height: 1.55;
	/*
	 * Centred by request. Set explicitly rather than inherited from the theme,
	 * so the layout stays the same if the page's own alignment ever changes.
	 */
	text-align: center;
	-webkit-font-smoothing: antialiased;
}

.flyreturn-portal *,
.flyreturn-portal *::before,
.flyreturn-portal *::after {
	box-sizing: border-box;
}

/*
 * A [hidden] element must stay hidden even when a later rule sets a display
 * value. Without this, .flyreturn-item__fields { display: grid } re-showed the
 * quantity/reason/note block of every unselected item.
 */
.flyreturn-portal [hidden] {
	display: none !important;
}

/*
 * Exceptions to the centred alignment above. Each of these sits next to
 * something else (an image, an icon, a remove button), where centred text
 * detaches visually from the element it belongs to.
 */
.flyreturn-item__text,
.flyreturn-media__item,
.flyreturn-order__header {
	text-align: left;
}

/*
 * Multi-line free text is the one place where centring genuinely hurts: every
 * line starts somewhere different and the customer loses their place while
 * typing. The placeholder is centred to match the rest of the form, the text
 * they actually write is not.
 */
.flyreturn-item__note {
	text-align: left;
}

.flyreturn-item__note::placeholder {
	text-align: center;
}

/* --- Search card ------------------------------------------------------- */

.flyreturn-search-card {
	background: var(--fr-bg);
	border: 1px solid var(--fr-border);
	border-radius: var(--fr-radius);
	box-shadow: var(--fr-shadow);
	padding: 28px;
}

.flyreturn-search-card__title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--fr-text);
}

.flyreturn-search-card__intro {
	margin: 0 0 20px;
	color: var(--fr-text-soft);
	font-size: 15px;
}

.flyreturn-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fr-text);
}

.flyreturn-input {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--fr-border-strong);
	border-radius: var(--fr-radius-sm);
	background: var(--fr-bg);
	color: var(--fr-text);
	font-size: 16px;
	font-family: inherit;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flyreturn-input::placeholder {
	color: var(--fr-text-faint);
	opacity: 1;
}

.flyreturn-input:focus {
	border-color: var(--fr-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--fr-accent-soft);
}

.flyreturn-field-group + .flyreturn-field-group {
	margin-top: 16px;
}

.flyreturn-search-card__actions {
	margin-top: 22px;
}

/* --- Buttons ----------------------------------------------------------- */

.flyreturn-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid var(--fr-border-strong);
	border-radius: var(--fr-radius-sm);
	background: var(--fr-bg);
	color: var(--fr-text);
	font-size: 16px;
	font-family: inherit;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.flyreturn-button:hover {
	border-color: var(--fr-text-faint);
	background: var(--fr-bg-subtle);
}

.flyreturn-button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--fr-accent-soft);
}

.flyreturn-button:active {
	transform: translateY(1px);
}

.flyreturn-button--primary {
	border-color: var(--fr-accent);
	background: var(--fr-accent);
	color: #fff;
}

.flyreturn-button--primary:hover {
	border-color: var(--fr-accent-dark);
	background: var(--fr-accent-dark);
}

.flyreturn-button--block {
	width: 100%;
}

.flyreturn-button[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.flyreturn-button__spinner {
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: flyreturn-spin 0.7s linear infinite;
}

@keyframes flyreturn-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.flyreturn-button__spinner {
		animation-duration: 2s;
	}
}

/* Honeypot: invisible to humans, reachable for bots. */
.flyreturn-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Messages ---------------------------------------------------------- */

.flyreturn-message {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	justify-content: center;
	margin: 20px 0;
	padding: 14px 16px;
	border: 1px solid var(--fr-border);
	border-left: 4px solid var(--fr-accent);
	border-radius: var(--fr-radius-sm);
	background: var(--fr-accent-soft);
	color: var(--fr-text);
	font-size: 15px;
}

.flyreturn-message--error {
	border-left-color: var(--fr-error);
	background: var(--fr-error-soft);
	color: #7f1d18;
}

/* --- Order card -------------------------------------------------------- */

.flyreturn-order {
	margin: 24px 0;
	border: 1px solid var(--fr-border);
	border-radius: var(--fr-radius);
	background: var(--fr-bg);
	box-shadow: var(--fr-shadow);
	overflow: hidden;
}

.flyreturn-order--expired {
	background: var(--fr-bg-subtle);
}

.flyreturn-order__header {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	justify-content: space-between;
	align-items: baseline;
	padding: 20px 24px;
	border-bottom: 1px solid var(--fr-border);
	background: var(--fr-bg-subtle);
}

.flyreturn-order__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--fr-text);
}

.flyreturn-order__date {
	color: var(--fr-text-soft);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.flyreturn-order__body {
	padding: 8px 24px 24px;
}

.flyreturn-notice {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 16px 0 0;
	padding: 14px 16px;
	border: 1px solid #f0e0b0;
	border-left: 4px solid #d9a441;
	border-radius: var(--fr-radius-sm);
	background: var(--fr-warning-soft);
	color: var(--fr-warning);
	font-size: 15px;
}

/* --- Items ------------------------------------------------------------- */

.flyreturn-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.flyreturn-item {
	margin-top: 16px;
	border: 1px solid var(--fr-border);
	border-radius: var(--fr-radius-sm);
	background: var(--fr-bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flyreturn-item--selected {
	border-color: var(--fr-accent);
	box-shadow: 0 0 0 3px var(--fr-accent-soft);
}

.flyreturn-item--disabled {
	background: var(--fr-bg-subtle);
	border-style: dashed;
}

.flyreturn-item__select {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	cursor: pointer;
}

.flyreturn-item--disabled .flyreturn-item__select {
	cursor: not-allowed;
}

.flyreturn-item__checkbox {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--fr-accent);
	cursor: inherit;
}

.flyreturn-item__image {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border: 1px solid var(--fr-border);
	border-radius: 8px;
	background: var(--fr-bg-subtle);
}

.flyreturn-item--disabled .flyreturn-item__image {
	filter: grayscale(1);
	opacity: 0.7;
}

.flyreturn-item__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.flyreturn-item__name {
	font-size: 16px;
	font-weight: 600;
	color: var(--fr-text);
}

.flyreturn-item__variation {
	font-size: 14px;
	color: var(--fr-text-soft);
}

.flyreturn-item__meta {
	font-size: 13px;
	color: var(--fr-text-faint);
	font-variant-numeric: tabular-nums;
}

.flyreturn-item__blocked {
	font-size: 13px;
	font-weight: 600;
	color: var(--fr-warning);
}

/*
 * Full card width, same 16px gutter left and right. The old 116px left indent
 * lined the fields up with the product title, which left a large empty column
 * and squeezed the inputs.
 */
.flyreturn-item__fields {
	display: grid;
	gap: 16px;
	padding: 14px 16px 18px;
	border-top: 1px solid var(--fr-border);
	margin-top: 2px;
}

.flyreturn-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.flyreturn-field > span,
.flyreturn-field > legend {
	font-size: 14px;
	font-weight: 600;
	color: var(--fr-text);
}

/* A fieldset carries browser chrome that has no place in the card. */
.flyreturn-field--reasons {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.flyreturn-field--reasons > legend {
	padding: 0;
	margin-bottom: 6px;
	/*
	 * A legend is not a normal flex child — it is placed by the fieldset
	 * itself and ignores the container's alignment, so it needs its own
	 * full width to centre inside.
	 */
	width: 100%;
	text-align: center;
}

/*
 * Quantity limit hint. Warning tone rather than error red: nothing went wrong,
 * the customer simply reached a boundary the shop already knew about.
 */
.flyreturn-item__qty-hint {
	display: block;
	margin-top: 8px;
	/*
	 * The parent is a flex column, so a max-width alone leaves the box
	 * hugging the start edge — "margin: 0 auto" does nothing there. Centring
	 * the box itself is what keeps the sentence under the field.
	 */
	margin-left: auto;
	margin-right: auto;
	max-width: 320px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--fr-warning);
	text-align: center;
}

/*
 * Keep-it offer. Framed rather than tinted: it appears under a confirmed
 * return, and a coloured banner there reads like an error the customer caused.
 */
.flyreturn-offer {
	margin-top: 20px;
	padding: 24px 20px;
	border: 2px solid var(--fr-accent);
	border-radius: 12px;
	background: #fff;
	text-align: center;
}

.flyreturn-offer__title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
	color: var(--fr-text);
}

.flyreturn-offer__text {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--fr-text-soft);
}

.flyreturn-offer__amount {
	margin-bottom: 18px;
	font-size: 30px;
	font-weight: 700;
	color: var(--fr-accent);
}

.flyreturn-offer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.flyreturn-offer__accept {
	padding: 13px 26px;
	border: 0;
	border-radius: 8px;
	background: var(--fr-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.flyreturn-offer__accept:hover {
	background: var(--fr-accent-dark);
}

.flyreturn-offer--done {
	border-color: var(--fr-border-strong);
}

.flyreturn-offer__used {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--fr-bg-subtle);
	font-size: 14px;
	line-height: 1.5;
	color: var(--fr-text-soft);
	text-align: center;
}

/*
 * Matches the variation swatches on the shop's product pages (Bricks
 * "bricks-swatch-label"): gap 8px, 1px #999 border, 10px radius, and a black
 * 3px border on the selected one. Values taken from the live stylesheet, not
 * eyeballed from a screenshot.
 */
.flyreturn-reasons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.flyreturn-reason {
	position: relative;
	display: block;
}

/*
 * The radio stays in the DOM for keyboard and screenreader users, it is only
 * visually replaced by the button. display:none would remove it from the
 * accessibility tree and from arrow-key navigation.
 */
.flyreturn-reason__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}

.flyreturn-reason__label {
	display: block;
	/*
	 * The selected state grows the border from 1px to 3px. Padding drops by
	 * the same 2px so the button keeps its size — the shop's own swatches jump
	 * a little on selection, and copying that jump would be copying a flaw.
	 */
	padding: 9px 17px;
	min-height: 44px;
	line-height: 24px;
	/* #999 from the shop reads 2.85:1 on white and misses the 3:1 minimum for
	   interactive borders; #949494 is the nearest tone that clears it and is
	   visually indistinguishable. */
	border: 1px solid #949494;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	color: var(--fr-text);
	cursor: pointer;
	transition: border-color 0.05s linear;
}

.flyreturn-reason__label:hover {
	border-color: #16181d;
}

.flyreturn-reason__input:checked + .flyreturn-reason__label {
	padding: 7px 15px;
	border: 3px solid #000;
	font-weight: 600;
}

/* Focus must stay visible even though the input itself is invisible. */
.flyreturn-reason__input:focus-visible + .flyreturn-reason__label {
	outline: 2px solid var(--fr-accent);
	outline-offset: 2px;
}

@media (max-width: 782px) {
	/*
	 * Wrapping, not stacking — same as the shop's swatches. Reason labels are
	 * short, so two fit per row and the block stays compact. 16px prevents
	 * iOS from zooming the page on tap.
	 */
	.flyreturn-reason__label {
		min-height: 48px;
		font-size: 16px;
	}

	.flyreturn-reason__input:checked + .flyreturn-reason__label {
		min-height: 48px;
	}
}

.flyreturn-field input,
.flyreturn-field select,
.flyreturn-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--fr-border-strong);
	border-radius: var(--fr-radius-sm);
	background: var(--fr-bg);
	color: var(--fr-text);
	font-size: 15px;
	font-family: inherit;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* A select's own dropdown arrow sits right; keep some room from the value. */
.flyreturn-field select {
	padding-right: 32px;
}

.flyreturn-field textarea {
	min-height: 96px;
	resize: vertical;
}

.flyreturn-field input:focus,
.flyreturn-field select:focus,
.flyreturn-field textarea:focus {
	border-color: var(--fr-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--fr-accent-soft);
}

.flyreturn-field__hint {
	font-size: 13px;
	color: var(--fr-text-faint);
}

.flyreturn-field--qty input {
	max-width: 110px;
	/* Centred inside its own box, but the box stays with the label above it. */
	margin: 0 auto;
}

/* --- Per-item media upload --------------------------------------------- */

/*
 * Sits inside the item's own field block, right below the note — several
 * products of one order can require evidence, so the upload must be visibly
 * attached to the product it belongs to.
 */
.flyreturn-media {
	padding: 16px;
	border: 2px dashed var(--fr-border-strong);
	border-radius: var(--fr-radius-sm);
	background: var(--fr-bg-subtle);
}

/* The trigger is the block's main action — full width reads as a drop zone. */
.flyreturn-media__trigger {
	justify-content: center;
}

/*
 * A flex container ignores text-align, so the centring has to come from
 * justify-content — the accent bar and the label move as one group.
 */
.flyreturn-media__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--fr-text);
}

.flyreturn-media__title::before {
	content: "";
	width: 4px;
	height: 16px;
	border-radius: 2px;
	background: var(--fr-accent);
}

.flyreturn-media__intro {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--fr-text-soft);
}

/*
 * The native file input is unstylable and renders differently on every
 * platform ("Datei auswählen | Keine ausgewählt"). It stays in the DOM for
 * accessibility and is triggered by our own button.
 */
.flyreturn-media__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.flyreturn-media__trigger {
	width: 100%;
	border-color: var(--fr-accent);
	background: var(--fr-bg);
	color: var(--fr-accent);
}

.flyreturn-media__trigger:hover {
	background: var(--fr-accent-soft);
	border-color: var(--fr-accent-dark);
}

/* Keyboard focus lands on the hidden input; mirror the ring onto the button. */
.flyreturn-media__input:focus-visible + .flyreturn-media__trigger {
	box-shadow: 0 0 0 3px var(--fr-accent-soft);
}

.flyreturn-media__icon {
	font-size: 17px;
	line-height: 1;
}

.flyreturn-media__hint {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--fr-text-faint);
}

.flyreturn-media__list {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.flyreturn-media__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #b9e2c8;
	border-radius: 8px;
	background: var(--fr-success-soft);
	color: var(--fr-success);
	font-size: 14px;
	font-weight: 600;
}

.flyreturn-media__check {
	flex: 0 0 auto;
}

.flyreturn-media__filename {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.flyreturn-media__remove {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--fr-text-soft);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.flyreturn-media__remove:hover {
	border-color: var(--fr-error);
	background: var(--fr-error-soft);
	color: var(--fr-error);
}

.flyreturn-media__remove[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* --- Refund summary ---------------------------------------------------- */

.flyreturn-refund {
	margin-top: 22px;
	padding: 18px 20px;
	border: 1px solid var(--fr-border);
	border-radius: var(--fr-radius-sm);
	background: var(--fr-bg-subtle);
}

.flyreturn-refund__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: var(--fr-text);
}

.flyreturn-refund__rows {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 16px;
	margin: 0;
}

/* Group heading spanning the whole row of the definition list. */
.flyreturn-refund__group {
	grid-column: 1 / -1;
	/* Air after the rule that closes the block above. */
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #62697a;
}

.flyreturn-refund__rows > .flyreturn-refund__group:first-child {
	margin-top: 0;
}

/* The empty <dd> that keeps the grid aligned after a group heading. */
.flyreturn-refund__group-value {
	display: none;
}

.flyreturn-refund__shipping-term,
.flyreturn-refund__shipping,
.flyreturn-refund__donation-term,
.flyreturn-refund__donation {
	font-size: 14px;
	color: #62697a;
}

/* The return block heading needs air after the paid line above it. */
.flyreturn-refund__rows > .flyreturn-refund__group + .flyreturn-refund__group-value {
	display: none;
}

/* The paid amount closes the order block: it is the sum of the lines above,
   and the rule sits BELOW it to separate the two blocks from each other. */
.flyreturn-refund__paid-term,
.flyreturn-refund__paid {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--fr-border);
	font-weight: 700;
	color: var(--fr-text);
}

.flyreturn-refund__order-items-term,
.flyreturn-refund__order-items,
.flyreturn-refund__order-discount-term,
.flyreturn-refund__order-discount {
	font-size: 14px;
	color: #62697a;
}

.flyreturn-refund__order-discount {
	color: var(--fr-warning);
}

.flyreturn-refund__shipping-note {
	margin: 4px 0 0;
	font-size: 13px;
	color: #62697a;
}

.flyreturn-refund__rows dt {
	margin: 0;
	text-align: left;
	color: var(--fr-text-soft);
	font-size: 15px;
}

.flyreturn-refund__rows dd {
	margin: 0;
	text-align: right;
	color: var(--fr-text);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.flyreturn-refund__discount-term,
.flyreturn-refund__discount {
	color: var(--fr-warning);
}

.flyreturn-refund__total-term,
.flyreturn-refund__total {
	padding-top: 10px;
	border-top: 1px solid var(--fr-border);
	font-size: 18px;
	font-weight: 700;
	color: var(--fr-text);
}

.flyreturn-refund__hint,
.flyreturn-refund__discount-hint {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--fr-text-faint);
}

.flyreturn-refund__discount-hint {
	color: var(--fr-warning);
}

.flyreturn-item__price {
	font-size: 14px;
	font-weight: 600;
	color: var(--fr-text-soft);
	font-variant-numeric: tabular-nums;
}

/* --- Footer / actions -------------------------------------------------- */

.flyreturn-order__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--fr-border);
}

.flyreturn-order__summary {
	font-size: 14px;
	color: var(--fr-text-soft);
}

.flyreturn-more {
	width: 100%;
	margin-top: 4px;
}

/* --- Success ----------------------------------------------------------- */

.flyreturn-success {
	padding: 32px 28px;
	border: 1px solid #b9e2c8;
	border-radius: var(--fr-radius);
	background: var(--fr-success-soft);
	box-shadow: var(--fr-shadow);
	text-align: center;
}

.flyreturn-success__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--fr-success);
	color: #fff;
	font-size: 28px;
	line-height: 1;
}

.flyreturn-success__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--fr-text);
}

.flyreturn-success__text {
	margin: 0;
	color: var(--fr-text-soft);
	font-size: 16px;
}

.flyreturn-success__id {
	display: inline-block;
	margin-top: 16px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--fr-bg);
	border: 1px solid #b9e2c8;
	color: var(--fr-text);
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 640px) {
	.flyreturn-portal {
		--fr-radius: 12px;
	}

	.flyreturn-search-card,
	.flyreturn-order__header {
		padding: 18px 16px;
	}

	.flyreturn-search-card__title {
		font-size: 20px;
	}

	.flyreturn-order__body {
		padding: 4px 12px 18px;
	}

	.flyreturn-item__select {
		gap: 12px;
		padding: 12px;
	}

	.flyreturn-item__image {
		width: 52px;
		height: 52px;
	}

	.flyreturn-item__name {
		font-size: 15px;
	}

	.flyreturn-item__fields {
		padding: 12px 12px 16px;
	}

	.flyreturn-media {
		padding: 14px;
	}

	.flyreturn-media__intro {
		font-size: 13px;
	}

	.flyreturn-order__footer {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 10px;
		text-align: center;
	}

	.flyreturn-order__footer .flyreturn-button {
		width: 100%;
	}

	.flyreturn-success {
		padding: 26px 18px;
	}
}

/*
 * iOS zooms the whole page when a focused control has a font-size below 16px.
 * Every input therefore stays at 16px on touch screens, whatever the desktop
 * sizing above says.
 */
@media (max-width: 640px) {
	.flyreturn-input,
	.flyreturn-field input,
	.flyreturn-field select,
	.flyreturn-field textarea {
		font-size: 16px;
	}
}

/* Touch targets: 44px minimum, per Apple's and Google's guidance. */
@media (hover: none) and (pointer: coarse) {
	.flyreturn-button {
		min-height: 52px;
	}

	.flyreturn-item__checkbox {
		width: 26px;
		height: 26px;
	}

	.flyreturn-item__select {
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.flyreturn-media__remove {
		width: 44px;
		height: 44px;
	}

	.flyreturn-field input,
	.flyreturn-field select,
	.flyreturn-field textarea {
		min-height: 48px;
	}
}

/*
 * No dark scheme by design: the shop is light grey, and a portal that flips to
 * dark on the customer's OS setting would not match it. The palette above is
 * the only one, and colour-scheme pins form controls (selects, file inputs,
 * scrollbars) to their light rendering so the browser cannot darken them.
 */
.flyreturn-portal {
	color-scheme: light;
}
