/* Order page. Every rule is scoped under .rlp so it neither leaks into the merchant's
   theme nor loses to it; colours derive from the theme's own text colour. */

.rlp {
	--rlp-muted: currentColor;
	--rlp-red-text: #d0453f;
	--rlp-line: rgba(128, 128, 128, 0.28);
	--rlp-soft: rgba(128, 128, 128, 0.08);
	--rlp-radius: 10px;
	--rlp-green: #1d9e75;
	--rlp-blue: #378add;
	--rlp-amber: #ba7517;
	--rlp-red: #d0453f;
	--rlp-purple: #7f77dd;
	--rlp-gray: #888780;
	--rlp-pad-x: 16px;
	/* P3: the theme's text colour, which the script measures (until then a dark ink). */
	--rlp-ink: #1f1f1f;
	container-type: inline-size;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	font-size: 15px;
	line-height: 1.5;
	text-align: start;
}
.rlp.rlp--theme { --rlp-pad-x: 0px; padding-left: 0; padding-right: 0; }
/* UX8 (#151): on phones the page keeps a 16px side margin in theme mode too, so no box touches the screen's edge (a
   theme's app proxy page often has none there). A media query: the page's container queries can't restyle the page itself. */
@media (max-width: 749px) {
	.rlp.rlp--theme { --rlp-pad-x: 16px; padding-left: 16px; padding-right: 16px; }
}
/* P3: a button colour still on Relocate's untouched blue gives way to the theme's text colour,
   with the page's own background as the button text. */
.rlp.rlp--ink { --rlp-accent: var(--rlp-ink); --rlp-on-accent: var(--rlp-page-bg, #ffffff); }
@supports (color: color-mix(in srgb, red 50%, transparent)) {
	.rlp {
		--rlp-muted: color-mix(in srgb, currentColor 80%, transparent);
		--rlp-red-text: color-mix(in srgb, #d0453f 72%, currentColor);
		--rlp-line: color-mix(in srgb, currentColor 15%, transparent);
		--rlp-soft: color-mix(in srgb, currentColor 4.5%, transparent);
	}
}
.rlp, .rlp *, .rlp *::before, .rlp *::after { box-sizing: border-box; }
.rlp :where(h1, h2, h3, p, ol, ul, li, dl, dt, dd, figure, form) { margin: 0; padding: 0; }
.rlp :where(h1, h2, h3, p, li, dt, dd, span, a, label) { line-height: inherit; letter-spacing: normal; text-transform: none; float: none; }
.rlp :where(ol, ul) { list-style: none; }
.rlp :where(dt, dd) { font-weight: inherit; }
.rlp :where(img) { max-width: 100%; height: auto; display: block; border: 0; }
.rlp [hidden] { display: none !important; }
.rlp .rlp-b:has(> [hidden]:only-child) { display: none; }

/* layout */
.rlp .rlp-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.rlp .rlp-main, .rlp .rlp-rail, .rlp .rlp-wide, .rlp .rlp-cards { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rlp .rlp-wide { margin-top: 28px; }
@container (min-width: 760px) {
	.rlp .rlp-layout:not(.rlp-layout--single) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}

/* type */
.rlp .rlp-h2 { margin: 0 0 10px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; }
.rlp .rlp-muted { color: var(--rlp-muted); font-size: 13px; }
.rlp .rlp-link { color: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }

/* status */
.rlp .rlp-meta { font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-headline { margin: 2px 0 10px; font-family: inherit; font-size: 26px; font-size: clamp(22px, 4.2cqi, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-transform: none; color: inherit; }
.rlp .rlp-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rlp .rlp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--rlp-line); border-radius: 999px; background: var(--rlp-soft); font-size: 12.5px; font-weight: 500; line-height: 1.4; max-width: 100%; }
.rlp .rlp-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rlp-gray); }
/* UX4 (#50): Preparing and In production are normal states: the neutral grey dot (the default); amber stays for attention. */
.rlp .rlp-pill--attention .rlp-pill-dot { background: var(--rlp-amber); }
.rlp .rlp-pill--shipped .rlp-pill-dot, .rlp .rlp-pill--in_transit .rlp-pill-dot, .rlp .rlp-pill--out_for_delivery .rlp-pill-dot { background: var(--rlp-blue); }
.rlp .rlp-pill--delivered .rlp-pill-dot { background: var(--rlp-green); }
.rlp .rlp-pill--failed .rlp-pill-dot { background: var(--rlp-red); }
/* UX4 (#30, #31): the line under the status ("No action is needed from you.") and the Contact button where the customer must act */
.rlp .rlp-status-note { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--rlp-muted); }
.rlp .rlp-status-action { margin: 12px 0 0; }
.rlp .rlp-status-action .rlp-btn { min-height: 44px; }
/* M6: an order tax method 2 replaced: a neutral pill (the default grey dot) and its items muted */
.rlp .rlp-card--replaced .rlp-item { opacity: 0.62; }

/* spine */
.rlp .rlp-spine { display: flex; margin: 4px 0 0; }
.rlp .rlp-step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; line-height: 1.3; color: var(--rlp-muted); }
.rlp .rlp-step::before { content: ""; position: absolute; top: 5px; inset-inline-end: calc(50% + 10px); width: calc(100% - 20px); height: 2px; border-radius: 2px; background: var(--rlp-line); }
.rlp .rlp-step:first-child::before { display: none; }
.rlp .rlp-step.is-done::before, .rlp .rlp-step.is-current::before { background: var(--rlp-green); }
.rlp .rlp-step.is-attention::before { background: var(--rlp-amber); }
.rlp .rlp-step.is-failed::before { background: var(--rlp-red); }
.rlp .rlp-step-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--rlp-line); }
.rlp .rlp-step.is-done .rlp-step-dot, .rlp .rlp-step.is-current .rlp-step-dot { border-color: var(--rlp-green); background: var(--rlp-green); }
.rlp .rlp-step.is-current .rlp-step-dot { box-shadow: 0 0 0 4px rgba(29, 158, 117, 0.2); }
.rlp .rlp-step.is-attention .rlp-step-dot { border-color: var(--rlp-amber); background: var(--rlp-amber); box-shadow: 0 0 0 4px rgba(186, 117, 23, 0.2); }
.rlp .rlp-step.is-failed .rlp-step-dot { border-color: var(--rlp-red); background: var(--rlp-red); box-shadow: 0 0 0 4px rgba(208, 69, 63, 0.2); }
.rlp .rlp-step.is-done, .rlp .rlp-step.is-current { color: inherit; }
.rlp .rlp-step.is-current .rlp-step-label { font-weight: 600; }
.rlp .rlp-step-label { max-width: 100%; overflow-wrap: break-word; hyphens: auto; }
@container (max-width: 480px) {
	.rlp .rlp-step { font-size: 11.5px; }
	.rlp .rlp-spine--long .rlp-step:not(.is-current) .rlp-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* cards */
.rlp .rlp-card { display: flex; flex-direction: column; gap: 14px; }
.rlp .rlp-cards--multi .rlp-card { padding: 16px; border: 1px solid var(--rlp-line); border-radius: 12px; }
.rlp .rlp-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
/* UX4 (#51): the card's title is a heading; the theme's h2 styles stay out of it. */
.rlp h2.rlp-card-title { margin: 0; font-family: inherit; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; }
.rlp .rlp-card-title { font-size: 14px; font-weight: 600; }

/* edit mode's banner (the item editor) */
.rlp .rlp-edit { padding: 14px 16px; border: 1px solid rgba(55, 138, 221, 0.3); border-radius: var(--rlp-radius); background: rgba(55, 138, 221, 0.08); }
.rlp .rlp-edit-intro { font-size: 14px; }
.rlp .rlp-edit .rlp-countdown { margin-top: 2px; font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-countdown:empty { display: none; }

/* P3: the edit banner, styled by the app block's settings (template/opage/banner.php). The
   Default theme with a Basic title is the quiet line; Informational and Warning titles a tinted
   box with their icon; the Warning and Critical themes tint the whole banner, icon in the margin. */
/* UX8 (#145): the admin's checkout UI icons, filled in the text colour (opage_icon()). */
.rlp .rlp-i { display: block; flex: none; width: 16px; height: 16px; fill: currentColor; stroke: none; }
.rlp .rlp-banner { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid transparent; border-radius: var(--rlp-radius); }
.rlp .rlp-banner-side { flex: none; padding-top: 1px; }
.rlp .rlp-banner-side .rlp-i { width: 20px; height: 20px; }
.rlp .rlp-banner-main { flex: 1; min-width: 0; }
.rlp .rlp-banner-head { display: flex; align-items: center; gap: 8px; }
.rlp .rlp-banner-head .rlp-i { width: 18px; height: 18px; }
.rlp .rlp-banner-title { margin: 0; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; overflow-wrap: anywhere; }
/* M5 step 0 (owner decision after P3): the order title and the edit banner's title take the theme's
   heading font when the theme publishes one (Dawn and its family: --font-heading-family, -style and
   -weight; some other themes --heading-font-family), the banner title at 19 px as in the mockup. The
   script marks the root rlp--heading when it finds one. Every other heading, the buttons and the forms
   keep the body font; a theme without a heading font, and standalone mode, look as before. */
.rlp.rlp--theme.rlp--heading .rlp-headline, .rlp.rlp--theme.rlp--heading .rlp-banner-title, .rlp.rlp--theme.rlp--heading .rlp-cardbox-title { font-family: var(--font-heading-family, var(--heading-font-family, inherit)); font-style: var(--font-heading-style, var(--heading-font-style, normal)); font-weight: var(--font-heading-weight, var(--heading-font-weight, 600)); }
.rlp.rlp--theme.rlp--heading .rlp-banner-title { font-size: 19px; }
.rlp .rlp-banner-body { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--rlp-muted); overflow-wrap: anywhere; }
.rlp .rlp-banner-head + .rlp-banner-body { margin-top: 4px; }
.rlp .rlp-banner-main > .rlp-banner-body:first-child { margin-top: 0; }
.rlp .rlp-banner--basic { padding: 2px 0; border: 0; border-radius: 0; background: none; }
.rlp .rlp-banner--info { border-color: rgba(55, 138, 221, 0.32); background: var(--rlp-banner-bg, rgba(55, 138, 221, 0.07)); }
.rlp .rlp-banner--info .rlp-banner-head .rlp-i { color: var(--rlp-blue); }
.rlp .rlp-banner--titlewarn { border-color: rgba(186, 117, 23, 0.38); background: rgba(186, 117, 23, 0.07); }
.rlp .rlp-banner--titlewarn .rlp-banner-head .rlp-i { color: var(--rlp-amber); }
.rlp .rlp-banner--warning { border-color: rgba(186, 117, 23, 0.6); background: rgba(186, 117, 23, 0.11); }
.rlp .rlp-banner--warning .rlp-banner-side { color: var(--rlp-amber); }
.rlp .rlp-banner--critical { border-color: rgba(208, 69, 63, 0.55); background: rgba(208, 69, 63, 0.08); }
.rlp .rlp-banner--critical .rlp-banner-side { color: var(--rlp-red); }
/* UX8 (#148): the merchant's Banner background, its text black or white by contrast (opage_page_colors()), the basic look
   boxed like the others. A critical button keeps its red (the review). FX5 (decision 3, owner): on every look, warning,
   critical and the warning title included; their icons keep their amber or red, or take the text colour where that would
   fall under 3:1 on the merchant's colour (rlp--banner-amber-low, rlp--banner-red-low). */
.rlp.rlp--banner-bg .rlp-banner { padding: 16px 18px; border-color: transparent; border-radius: var(--rlp-radius); background: var(--rlp-banner-bg); color: var(--rlp-banner-ink); --rlp-muted: var(--rlp-banner-ink); }
.rlp.rlp--banner-bg .rlp-banner--info .rlp-banner-head .rlp-i { color: inherit; }
.rlp.rlp--banner-bg.rlp--banner-amber-low .rlp-banner--titlewarn .rlp-banner-head .rlp-i, .rlp.rlp--banner-bg.rlp--banner-amber-low .rlp-banner--warning .rlp-banner-side, .rlp.rlp--banner-bg.rlp--banner-red-low .rlp-banner--critical .rlp-banner-side { color: inherit; }
.rlp.rlp--banner-bg.rlp--banner-accent-low .rlp-banner :is(.rlp-btn--secondary, .rlp-btn--plain):not(.rlp-btn--critical) { color: inherit; }
.rlp.rlp--banner-bg.rlp--banner-accent-low .rlp-banner .rlp-btn--secondary:not(.rlp-btn--critical) { border-color: currentColor; }
/* UX5 (#17, #57): the countdown, one line ("2 h 15 min left"), no label and no bar (the item editor's) */
.rlp .rlp-banner .rlp-countdown { margin-top: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.rlp .rlp-countdown.is-ended { display: block; color: var(--rlp-muted); }
/* FX5 (decision 4, owner): the banner's countdown as the app blocks': "Time remaining", the time in a chip (H:MM:SS) and a
   bar that empties at the deadline shown. Plain elements (a theme styles <progress>); the track the theme's text at 15 %,
   the fill the accent (the theme's ink by default), or the banner's text where the accent is too faint on it or on the
   page. No animation: the script moves it once a second. */
.rlp .rlp-banner .rlp-countdown--bar { display: grid; gap: 8px; margin-top: 12px; font-weight: 400; }
.rlp .rlp-cd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rlp .rlp-cd-label { font-size: 14px; line-height: 1.4; }
.rlp .rlp-cd-time { display: inline-flex; align-items: center; padding: 1px 8px; border: 1px solid var(--rlp-line); border-radius: 999px; background: var(--rlp-soft); font-size: 13px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rlp .rlp-cd-bar { position: relative; display: block; width: 100%; height: 6px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--rlp-line); overflow: hidden; }
.rlp .rlp-cd-fill { display: block; width: 100%; height: 100%; margin: 0; border-radius: inherit; background: var(--rlp-accent); }
.rlp.rlp--accent-low .rlp-cd-fill, .rlp.rlp--banner-bg .rlp-banner .rlp-cd-fill { background: currentColor; } /* FX5 (review): on a merchant Banner background the banner's own text colour (4.5:1 on it), whatever the accent or the theme's ink */
.rlp .rlp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rlp .rlp-actions--stacked { flex-direction: column; align-items: stretch; }
.rlp .rlp-actions .rlp-btn { gap: 7px; min-height: 38px; padding: 8px 16px; font-size: 14.5px; font-weight: 600; }
.rlp .rlp-actions .rlp-btn--plain { min-height: 36px; padding: 8px 4px; }
/* Phones: the buttons always stack, full width, 44 px tall (after the rules above: a container
   query adds no specificity). */
@container (max-width: 480px) {
	.rlp .rlp-banner { padding: 14px; }
	.rlp .rlp-banner--basic { padding: 2px 0; }
	.rlp.rlp--banner-bg .rlp-banner { padding: 14px; }
	.rlp .rlp-actions { flex-direction: column; align-items: stretch; }
	.rlp .rlp-actions .rlp-btn { width: 100%; min-height: 44px; }
	/* UX5 (#55): Cancel order as a plain link under the other buttons, not a full-width button beside harmless edits */
	/* UX5 (#55): a.rlp-btn, to outrank the colour rules below (the Secondary / critical border, the Secondary hover) */
	.rlp .rlp-actions a.rlp-btn[data-rlp-action="cancel"] { order: 9; align-self: center; width: auto; padding: 8px 4px; border-color: transparent; background: none; color: var(--rlp-accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
	.rlp .rlp-actions a.rlp-btn[data-rlp-action="cancel"]:hover { background: none; filter: none; }
	.rlp.rlp--ink .rlp-actions a.rlp-btn[data-rlp-action="cancel"], .rlp.rlp--accent-low .rlp-actions a.rlp-btn[data-rlp-action="cancel"], .rlp .rlp-actions a.rlp-btn--neutral[data-rlp-action="cancel"] { color: inherit; }
	.rlp.rlp--banner-bg.rlp--banner-accent-low .rlp-banner .rlp-actions a.rlp-btn:not(.rlp-btn--critical)[data-rlp-action="cancel"] { color: inherit; }
	.rlp .rlp-actions a.rlp-btn--critical[data-rlp-action="cancel"], .rlp.rlp--ink .rlp-actions a.rlp-btn--critical[data-rlp-action="cancel"], .rlp.rlp--accent-low .rlp-actions a.rlp-btn--critical[data-rlp-action="cancel"] { color: var(--rlp-red-text); }
}

/* buttons and inputs */
.rlp .rlp-btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 36px; margin: 0; padding: 7px 14px; border: 1px solid var(--rlp-accent); border-radius: 8px; background: var(--rlp-accent); color: var(--rlp-on-accent); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: normal; text-align: center; text-decoration: none; text-transform: none; box-shadow: none; cursor: pointer; }
.rlp .rlp-btn:hover { filter: brightness(1.1); }
.rlp .rlp-btn--quiet { border-color: var(--rlp-line); background: transparent; color: inherit; }
.rlp .rlp-btn--quiet:hover { background: var(--rlp-soft); filter: none; }
.rlp .rlp-btn--subtle { border-color: transparent; background: transparent; color: var(--rlp-muted); }
.rlp .rlp-btn--subtle:hover { color: inherit; filter: none; }
/* P3: the app block's button types and per-button colours. Primary is the base button. Neutral
   takes the theme's text colour; Critical the red; Plain is a link. */
/* FX5 (decision 2): a Secondary button's border is its button colour (Button border color stays with the classic editor). */
.rlp .rlp-btn--secondary { border-color: var(--rlp-accent); background: transparent; color: var(--rlp-accent); }
/* The ink's text uses the theme's own colour, so it reads before the script measures it; an accent
   the script finds too close to the page colour (rlp--accent-low) gives Secondary and Plain text the
   theme's colour too. Before the tones, which keep their own. */
.rlp.rlp--ink .rlp-btn--secondary, .rlp.rlp--ink .rlp-btn--plain, .rlp.rlp--accent-low .rlp-btn--secondary, .rlp.rlp--accent-low .rlp-btn--plain { color: inherit; }
.rlp.rlp--ink .rlp-btn--secondary { border-color: currentColor; }
.rlp.rlp--accent-low .rlp-btn--secondary { border-color: var(--rlp-line); }
.rlp .rlp-btn--secondary:hover { background: var(--rlp-soft); filter: none; }
.rlp .rlp-btn--plain { min-height: 36px; padding: 7px 4px; border-color: transparent; background: none; color: var(--rlp-accent); text-decoration: underline; text-underline-offset: 3px; }
.rlp .rlp-btn--plain:hover { filter: none; text-decoration-thickness: 2px; }
.rlp .rlp-btn--neutral { border-color: var(--rlp-ink); background: var(--rlp-ink); color: var(--rlp-page-bg, #ffffff); }
.rlp .rlp-btn--secondary.rlp-btn--neutral { border-color: var(--rlp-line); background: transparent; color: inherit; }
.rlp .rlp-btn--plain.rlp-btn--neutral { border-color: transparent; background: none; color: inherit; }
.rlp .rlp-btn--critical { border-color: #c0352f; background: #c0352f; color: #ffffff; }
.rlp .rlp-btn--secondary.rlp-btn--critical { border-color: rgba(208, 69, 63, 0.55); background: transparent; color: var(--rlp-red-text); }
.rlp .rlp-btn--plain.rlp-btn--critical { border-color: transparent; background: none; color: var(--rlp-red-text); }
.rlp a:focus-visible, .rlp button:focus-visible { outline: 2px solid var(--rlp-blue); outline-offset: 2px; }
.rlp .rlp-input { flex: 1; min-width: 0; min-height: 36px; margin: 0; padding: 7px 10px; border: 1px solid var(--rlp-line); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 14px; letter-spacing: normal; text-transform: none; box-shadow: none; }
.rlp .rlp-input::placeholder { color: var(--rlp-muted); text-transform: none; opacity: 1; }
.rlp .rlp-input:focus { outline: 2px solid var(--rlp-blue); outline-offset: 1px; }

/* line items */
.rlp .rlp-items { padding: 2px 14px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); }
.rlp .rlp-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rlp .rlp-item + .rlp-item { border-top: 1px solid var(--rlp-line); }
.rlp .rlp-item-img { flex: none; width: 56px; height: 56px; border-radius: 8px; background: var(--rlp-soft); object-fit: cover; }
.rlp .rlp-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rlp .rlp-item-title { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.rlp .rlp-item-meta { color: var(--rlp-muted); font-size: 13px; }
.rlp .rlp-item-price { min-width: 64px; text-align: end; font-size: 14px; white-space: nowrap; }

/* tracking and updates timelines */
.rlp .rlp-track, .rlp .rlp-updates { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 14px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); }
.rlp .rlp-updates { gap: 0; }
.rlp .rlp-track-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.rlp .rlp-track-carrier { font-size: 14px; font-weight: 500; }
/* UX4 (#51): the shipment view's "Tracking history" is its heading. */
.rlp .rlp-track-head h2.rlp-track-carrier { margin: 0; font-size: 14px; font-weight: 600; }
.rlp .rlp-event, .rlp .rlp-feed-item { position: relative; display: flex; flex-direction: column; gap: 1px; padding-block: 0 12px; padding-inline: 22px 0; }
.rlp .rlp-event::before, .rlp .rlp-feed-item::before { content: ""; position: absolute; inset-inline-start: 3px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--rlp-line); }
.rlp .rlp-event::after, .rlp .rlp-feed-item::after { content: ""; position: absolute; inset-inline-start: 7px; top: 19px; bottom: 2px; width: 1px; background: var(--rlp-line); }
.rlp .rlp-event:last-child, .rlp .rlp-feed-item:last-child { padding-bottom: 0; }
.rlp .rlp-event:last-child::after, .rlp .rlp-feed-item:last-child::after { display: none; }
.rlp .rlp-event:first-child::before { background: var(--rlp-blue); }
.rlp .rlp-event--attempted_delivery:first-child::before, .rlp .rlp-event--delayed:first-child::before { background: var(--rlp-amber); }
.rlp .rlp-event--delivered:first-child::before { background: var(--rlp-green); }
.rlp .rlp-event--failure:first-child::before { background: var(--rlp-red); }
.rlp .rlp-feed-item--post::before { background: var(--rlp-purple); }
.rlp .rlp-event-title, .rlp .rlp-feed-title { font-size: 14px; }
.rlp .rlp-feed-item--post .rlp-feed-title { font-weight: 500; }
.rlp .rlp-feed-body { font-size: 14px; color: var(--rlp-muted); }

/* rail panels */
.rlp .rlp-panel { display: block; padding: 14px 16px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); }
.rlp .rlp-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rlp .rlp-panel-head .rlp-h2 { margin-bottom: 6px; }
.rlp .rlp-address-lines { font-size: 14px; line-height: 1.6; color: var(--rlp-muted); }
/* UX5 (#71): the shipping method with its Change, under the address */
.rlp .rlp-address-method { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--rlp-line); font-size: 14px; color: var(--rlp-muted); }
.rlp .rlp-hint { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rlp-line); font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-verify { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rlp-line); }
.rlp .rlp-verify-label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-verify-row { display: flex; gap: 8px; }
.rlp .rlp-verify-error { margin-top: 6px; font-size: 13px; color: var(--rlp-red-text); }
.rlp .rlp-verify-error a, .rlp .rlp-confirm-error a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* P2: the confirm component, at save (in the ledger and the phone bar) and before a mode that
   confirms first. Its field is highlighted: it is the next thing to do. */
.rlp .rlp-confirm { display: flex; flex-direction: column; gap: 8px; }
.rlp .rlp-ledger-actions .rlp-confirm { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rlp-line); }
.rlp .rlp-confirm-label { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.rlp .rlp-confirm-label.rlp-q { font-size: 16px; }
.rlp .rlp-confirm-text { font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-confirm-row { display: flex; gap: 8px; }
.rlp .rlp-confirm-row .rlp-input { min-height: 44px; font-size: 16px; }
.rlp .rlp-input.rlp-input--attn { border: 2px solid var(--rlp-blue); padding: 6px 9px; box-shadow: 0 0 0 4px rgba(55, 138, 221, 0.18); }
.rlp .rlp-input[aria-invalid="true"] { border-color: var(--rlp-red); box-shadow: 0 0 0 1px var(--rlp-red); }
.rlp .rlp-confirm-row .rlp-input.rlp-input--attn { padding: 8px 11px; }
.rlp .rlp-confirm-error { font-size: 13px; color: var(--rlp-red-text); }
.rlp .rlp-confirm .rlp-btn:disabled, .rlp .rlp-verify .rlp-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rlp .rlp-confirm-card { margin-bottom: 4px; padding: 20px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); }
/* SEC2: the code step (the emailed code before a change of where the order goes). */
.rlp .rlp-code-form { display: flex; flex-direction: column; gap: 8px; }
.rlp .rlp-code-form[hidden], .rlp .rlp-code-help[hidden] { display: none; }
.rlp .rlp-code-sent { font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-confirm-row .rlp-input.rlp-code-input { font-size: 20px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.rlp .rlp-code-help { font-size: 13px; color: var(--rlp-muted); line-height: 1.5; }
.rlp .rlp-code-resend { padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; font: inherit; text-transform: none; letter-spacing: normal; color: inherit; }
.rlp .rlp-code-resend:disabled { cursor: default; text-decoration: none; opacity: 0.8; }
/* SEC3: "Forget this device" under a page verified by the device's vt. */
.rlp .rlp-forget { margin: 24px 0 0; font-size: 13px; text-align: center; }
.rlp .rlp-forget .rlp-link { padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; font: inherit; text-transform: none; letter-spacing: normal; color: inherit; }
/* SEC3: the link-level page while its verified render (the device's vt, by POST) is on its way: not shown, not used. */
.rlp.rlp-verifying { visibility: hidden; }
@container (max-width: 480px) { .rlp .rlp-confirm-card { padding: 16px; } }
.rlp .rlp-btn.rlp-btn--block { display: flex; width: 100%; }
.rlp .rlp-costs { border-color: transparent; background: var(--rlp-soft); }
.rlp .rlp-rows { display: flex; flex-direction: column; gap: 4px; }
.rlp .rlp-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.rlp .rlp-row dt { color: var(--rlp-muted); }
.rlp .rlp-row--total { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--rlp-line); font-weight: 600; }
.rlp .rlp-row--total dt { color: inherit; }
.rlp .rlp-due { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.rlp .rlp-contact { color: inherit; font-size: 14px; text-decoration: none; }
.rlp .rlp-contact:hover { background: var(--rlp-soft); }
.rlp .rlp-contact--emphasis { border-color: rgba(186, 117, 23, 0.5); }

/* recommendations */
.rlp .rlp-recs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@container (min-width: 640px) {
	.rlp .rlp-recs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rlp .rlp-rec { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); }
.rlp .rlp-rec-img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 6px; background: var(--rlp-soft); object-fit: cover; }
.rlp .rlp-rec-title { color: inherit; font-size: 14px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.rlp .rlp-rec-price { font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-rec .rlp-btn { width: 100%; min-height: 32px; margin-top: auto; font-size: 13px; }

/* narrow containers: after the base rules, since a container query adds no specificity */
@container (max-width: 480px) {
	.rlp .rlp-cards--multi .rlp-card { padding: 12px; }
	.rlp .rlp-items, .rlp .rlp-track, .rlp .rlp-updates, .rlp .rlp-edit, .rlp .rlp-panel { padding-left: 12px; padding-right: 12px; }
	.rlp .rlp-item-img { width: 48px; height: 48px; }
}

/* standalone document */
.rlp-doc { margin: 0; background: #ffffff; color: #1f1f1f; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.rlp-doc-head { display: flex; justify-content: center; padding: 14px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.rlp-doc-brand { color: inherit; font-size: 18px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.rlp-doc-brand img { max-height: 40px; width: auto; }
.rlp-doc--colored .rlp-doc-head { border-bottom-color: rgba(128, 128, 128, 0.3); }
/* M11: the footer (screen "Standalone mode"): the shop's name and its Contact link. */
.rlp-doc-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 22px 16px; border-top: 1px solid rgba(0, 0, 0, 0.1); font-size: 13px; }
.rlp-doc-foot a { color: inherit; text-decoration: none; }
.rlp-doc-foot a:first-child { font-weight: 600; letter-spacing: 0.04em; }
.rlp-doc-foot a:hover { text-decoration: underline; text-underline-offset: 2px; }
.rlp-doc--colored .rlp-doc-foot { border-top-color: rgba(128, 128, 128, 0.3); }
@media (prefers-color-scheme: dark) {
	.rlp-doc:not(.rlp-doc--colored) { background: #161616; color: #ececec; }
	.rlp-doc:not(.rlp-doc--colored) .rlp-doc-head, .rlp-doc:not(.rlp-doc--colored) .rlp-doc-foot { border-color: rgba(255, 255, 255, 0.12); }
}

/* shipment mode and maps */
.rlp .rlp-back { margin: 0 0 4px; font-size: 13px; }
/* UX5 (#72): an editing screen's header, the way back and the order's number */
.rlp h1.rlp-mode-order { margin: 0 0 4px; font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; }
/* The box only takes its map height once the script is loading a map; without a script,
   or when the map cannot load, it is just the route in words. */
.rlp .rlp-map { position: relative; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); overflow: hidden; background: var(--rlp-soft); isolation: isolate; }
.rlp .rlp-map.is-loading, .rlp .rlp-map.is-ready { height: 200px; }
.rlp .rlp-map--tall.is-loading, .rlp .rlp-map--tall.is-ready { height: 300px; }
.rlp .rlp-map.leaflet-container { font: inherit; }
.rlp .rlp-map img { border-radius: 0; box-shadow: none; transition: none; }
.rlp .rlp-map-fallback { margin: 0; padding: 10px 12px; font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-map.is-ready .rlp-map-fallback { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rlp .rlp-map-label { padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.92); color: #1f1f1f; font-size: 11px; line-height: 1.3; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.rlp .rlp-map-label--current { color: #0c447c; font-weight: 600; }
/* UX4 (#38): where a delivery failed */
.rlp .rlp-map-label--failed { color: var(--rlp-red-text); font-weight: 600; }
.rlp .rlp-map .leaflet-control-attribution { font-size: 9px; background: rgba(255, 255, 255, 0.8); color: #444; }
.rlp .rlp-map .leaflet-control-attribution a { color: #444; }
.rlp .rlp-track-more { margin-top: 4px; font-size: 13px; }
.rlp .rlp-next-text { font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-shipment { display: flex; flex-direction: column; gap: 12px; }
@container (max-width: 480px) {
	.rlp .rlp-map.is-loading, .rlp .rlp-map.is-ready { height: 170px; }
	.rlp .rlp-map--tall.is-loading, .rlp .rlp-map--tall.is-ready { height: 220px; }
}

/* item editor: edit mode (&edit=items). The ledger panel and its phone bar take an opaque
   background from --rlp-page-bg, which the script copies from the theme's page. */
.rlp .rlp-pill--green .rlp-pill-dot { background: var(--rlp-green); }
.rlp .rlp-closed-line { font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-notice--saved { display: flex; }
.rlp .rlp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.rlp .rlp-item--edit { align-items: flex-start; }
.rlp .rlp-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.rlp .rlp-item--edit .rlp-item-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.rlp .rlp-was { font-size: 12.5px; color: var(--rlp-muted); }
.rlp .rlp-item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; }
.rlp .rlp-item-variant { margin-inline-end: 4px; }
.rlp .rlp-stepper { display: inline-flex; align-items: center; gap: 4px; }
.rlp .rlp-step-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--rlp-line); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 17px; line-height: 1; letter-spacing: normal; text-transform: none; box-shadow: none; cursor: pointer; }
.rlp .rlp-step-btn:hover { background: var(--rlp-soft); }
.rlp .rlp-step-val { min-width: 30px; text-align: center; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rlp .rlp-remove { min-height: 36px; padding: 7px 10px; font-size: 13px; }
.rlp .rlp-step-btn.is-disabled, .rlp .rlp-remove.is-disabled { opacity: 0.4; cursor: default; background: transparent; }
.rlp .rlp-item-note { margin-top: 4px; font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-item-removed { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.rlp .rlp-item-removed s { color: var(--rlp-muted); }
.rlp .rlp-undo { margin: 0 0 0 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; text-transform: none; box-shadow: none; cursor: pointer; }
.rlp .rlp-item--removed .rlp-item-img { opacity: 0.5; }
.rlp .rlp-item--removed .rlp-item-title, .rlp .rlp-item--removed .rlp-item-controls, .rlp .rlp-item--removed .rlp-item-text > .rlp-item-meta { display: none; }
.rlp .rlp-item--removed .rlp-item-price { color: var(--rlp-muted); }
.rlp .rlp-item--dim .rlp-item-controls, .rlp .rlp-item--dim .rlp-undo { opacity: 0.5; pointer-events: none; }
.rlp .rlp-need-added { display: block; margin-top: 10px; }
@keyframes rlp-shimmer { 50% { opacity: 0.45; } }
.rlp .rlp-shimmer { animation: rlp-shimmer 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
	.rlp .rlp-shimmer { animation: none; opacity: 0.6; }
}

/* the ledger */
.rlp .rlp-ledger { background: linear-gradient(var(--rlp-soft), var(--rlp-soft)), var(--rlp-page-bg, Canvas); }
.rlp .rlp-ledger .rlp-h2 { margin-bottom: 8px; }
.rlp .rlp-ledger-idle { font-size: 14px; color: var(--rlp-muted); }
.rlp .rlp-row--paid dt, .rlp .rlp-row--paid dd { color: var(--rlp-muted); }
.rlp .rlp-row--outcome { margin-top: 2px; font-size: 15px; font-weight: 600; }
.rlp .rlp-row--outcome dt { color: inherit; }
.rlp .rlp-row-note, .rlp .rlp-ledger-note { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--rlp-muted); }
.rlp .rlp-row-note { margin: 0 0 4px; font-size: 12.5px; }
.rlp .rlp-ledger-stop { font-size: 14px; }
.rlp .rlp-ledger-actions { position: relative; display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
/* UX8 (#149): while a change is being priced, a thin bar slides left to right just above Save changes (no overlay, no
   shift: it sits in the gap above the button). */
.rlp .rlp-pricing { position: absolute; top: -7px; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--rlp-soft); overflow: hidden; }
.rlp .rlp-pricing::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; border-radius: 2px; background: var(--rlp-accent); animation: rlp-pricing 1.1s ease-in-out infinite; }
@keyframes rlp-pricing { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) {
	.rlp .rlp-pricing::before { width: 100%; animation: none; opacity: 0.5; }
}
.rlp .rlp-ledger-actions .rlp-btn { width: 100%; }
.rlp .rlp-ledger-actions .rlp-btn--subtle { min-height: 32px; font-size: 13px; }
.rlp .rlp-btn.is-busy, .rlp .rlp-btn.is-busy:hover { opacity: 0.72; cursor: default; filter: none; }
.rlp .rlp-btn.is-off, .rlp .rlp-btn.is-off:hover { opacity: 0.4; cursor: default; filter: none; }
@keyframes rlp-spin { to { transform: rotate(360deg); } }
.rlp .rlp-spin { width: 16px; height: 16px; flex: none; animation: rlp-spin 1s linear infinite; }
.rlp .rlp-check { width: 16px; height: 16px; flex: none; }
.rlp .rlp-discard { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); font-size: 14px; }
.rlp .rlp-discard-q { margin-inline-end: auto; }
.rlp .rlp-discard-btns { display: flex; gap: 8px; }
.rlp .rlp-discard .rlp-btn { width: auto; min-height: 32px; padding: 5px 12px; font-size: 13px; }
.rlp .rlp-discard .rlp-btn--danger { color: var(--rlp-red-text); }
.rlp .rlp-ledger-actions .rlp-discard { margin-top: 4px; padding: 8px 10px; }

/* Wide pages: the ledger stays in view while a long list of items scrolls; a long ledger
   scrolls inside itself so its button stays reachable. --rlp-sticky-top makes room for a
   theme's own sticky header. */
.rlp .rlp-layout--edit .rlp-rail { align-self: stretch; }
.rlp .rlp-layout--edit .rlp-b--ledger { position: sticky; top: var(--rlp-sticky-top, 16px); z-index: 1; max-height: calc(100vh - var(--rlp-sticky-top, 16px) - 16px); overflow: auto; overscroll-behavior: contain; }

/* The phone bar: one line of money and the button, pinned to the bottom of the page; the
   line opens the rows over the bottom third. Single-column pages use it, not the panel. */
.rlp .rlp-ledger-bar { display: none; }
.rlp .rlp-bar-toggle { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 32px; margin: 0; padding: 2px 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; font-size: 14px; line-height: 1.3; letter-spacing: normal; text-align: start; text-transform: none; box-shadow: none; cursor: pointer; }
.rlp .rlp-bar-toggle:disabled { cursor: default; color: var(--rlp-muted); }
.rlp .rlp-bar-toggle:disabled .rlp-bar-chev { display: none; }
.rlp .rlp-bar-summary b { font-weight: 600; }
.rlp .rlp-bar-chev { width: 12px; height: 12px; flex: none; color: var(--rlp-muted); }
.rlp .rlp-bar-toggle[aria-expanded="true"] .rlp-bar-chev { transform: rotate(180deg); }
.rlp .rlp-bar-rows { max-height: 33vh; overflow: auto; margin: 6px 0 2px; overscroll-behavior: contain; }
.rlp .rlp-ledger-bar .rlp-ledger-actions { margin-top: 8px; }
.rlp .rlp-ledger-bar:not(.is-open) .rlp-ledger-actions .rlp-btn--subtle { display: none; }
/* UX5 (#65): the cancel bar always shows "Keep my order" under the red button */
.rlp .rlp-cancel-bar:not(.is-open) .rlp-ledger-actions .rlp-btn--subtle { display: flex; }
.rlp .rlp-ledger-bar .rlp-ledger-actions .rlp-btn:not(.rlp-btn--subtle) { min-height: 44px; }
@container (max-width: 759px) {
	.rlp .rlp-b--ledger { display: none; }
	.rlp .rlp-ledger-bar { display: block; position: sticky; bottom: 0; z-index: 3; margin: 16px calc(-1 * var(--rlp-pad-x)) -48px; padding: 10px var(--rlp-pad-x) 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rlp-line); background: var(--rlp-page-bg, Canvas); }
	.rlp.rlp--theme .rlp-ledger-bar { padding-inline: 12px; }
	.rlp .rlp-ledger-bar.is-open { border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14); }
	/* M4: where the theme keeps sticky from pinning the bar, the script moves it under the
	   items card as a plain panel, and the banner links to it. */
	.rlp .rlp-ledger-bar.is-static, .rlp.rlp--theme .rlp-ledger-bar.is-static { position: static; margin: 16px 0 0; padding: 12px 14px 14px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); box-shadow: none; }
	.rlp .rlp-ledger-bar.is-static .rlp-bar-rows { max-height: none; }
}
.rlp .rlp-edit-review { margin-top: 6px; }
/* Wide pages use the rail panel, so the link to the moved bar has nothing to point at. */
@container (min-width: 760px) {
	.rlp .rlp-edit-review { display: none; }
}
@container (max-width: 480px) {
	.rlp .rlp-step-btn { width: 44px; height: 44px; }
	.rlp .rlp-remove { min-height: 44px; margin-inline-start: auto; }
	.rlp .rlp-item-variant { flex-basis: 100%; }
}

/* M3: the variant chip, the swapped and added lines, "+ Add an item" */
.rlp .rlp-chip { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 28px; margin: 0; padding: 3px 10px; border: 1px solid var(--rlp-line); border-radius: 999px; background: var(--rlp-soft); color: inherit; font: inherit; font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: normal; text-align: start; text-transform: none; box-shadow: none; cursor: pointer; }
.rlp .rlp-chip:hover { border-color: currentColor; }
.rlp .rlp-chip svg { width: 10px; height: 10px; flex: none; }
.rlp .rlp-chip.is-disabled { opacity: 0.4; cursor: default; }
.rlp .rlp-was-variant { margin-inline-end: 4px; }
.rlp .rlp-qty-text { margin-inline-start: 2px; }
.rlp .rlp-swap-instead { display: inline; margin-inline-start: 10px; }
.rlp .rlp-pill--new { margin-inline-start: 4px; padding: 1px 8px; font-size: 11.5px; vertical-align: 1px; }
.rlp .rlp-pill--blue .rlp-pill-dot { background: var(--rlp-blue); }
.rlp .rlp-item--add { display: block; padding: 10px 0; }
.rlp .rlp-item--add .rlp-btn { width: 100%; }
@container (max-width: 480px) {
	.rlp .rlp-chip { min-height: 44px; padding: 8px 14px; }
	.rlp .rlp-item--add .rlp-btn { min-height: 44px; }
}

/* The task sheet: a <dialog> appended to body that carries .rlp itself (the theme's wrappers
   can't trap or restyle it), 560 px and centred on wide screens, a bottom sheet at 88 % of
   the height on phones. The variant picker takes its content's height. The colours come
   from the page (the script copies them onto the dialog). */
.rlp.rlp-sheet { position: fixed; inset: 0; z-index: 2147483000; box-sizing: border-box; width: min(560px, calc(100% - 32px)); max-width: none; height: min(680px, calc(100% - 64px)); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 14px; background: var(--rlp-page-bg, Canvas); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28); overflow: hidden; container-type: normal; font-size: 15px; line-height: 1.5; }
.rlp.rlp-sheet[open], .rlp.rlp-sheet.rlp-sheet--fixed { display: flex; flex-direction: column; }
.rlp.rlp-sheet.rlp-sheet--picker { height: auto; height: fit-content; max-height: min(680px, calc(100% - 64px)); }
.rlp.rlp-sheet::backdrop { background: rgba(20, 20, 20, 0.42); }
/* Without a modal <dialog>: a fixed layer with the same panel in it. */
.rlp.rlp-sheet-host { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; width: auto; max-width: none; margin: 0; padding: 0; background: rgba(20, 20, 20, 0.42); container-type: normal; }
.rlp.rlp-sheet-host[hidden] { display: none; }
.rlp.rlp-sheet-host > .rlp-sheet { position: relative; inset: auto; }
.rlp .rlp-sheet-handle { display: none; flex: none; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--rlp-line); }
.rlp .rlp-sheet-head { display: flex; flex: none; align-items: center; gap: 4px; padding: 10px 10px 8px 16px; }
.rlp .rlp-sheet-head:has(> .rlp-sheet-back:not([hidden])) { padding-inline-start: 6px; }
.rlp .rlp-sheet-title { flex: 1; min-width: 0; margin: 0; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; }
.rlp .rlp-icon-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 18px; line-height: 1; letter-spacing: normal; text-transform: none; box-shadow: none; cursor: pointer; }
.rlp .rlp-icon-btn:hover { background: var(--rlp-soft); }
.rlp .rlp-sheet-back { font-size: 24px; }
.rlp .rlp-sheet-search { position: relative; flex: none; padding: 0 16px 12px; }
.rlp .rlp-sheet-search svg { position: absolute; inset-inline-start: 28px; top: 14px; width: 16px; height: 16px; color: var(--rlp-muted); pointer-events: none; }
.rlp .rlp-sheet-search .rlp-input { display: block; width: 100%; min-height: 44px; padding-inline-start: 38px; font-size: 16px; }
.rlp .rlp-sheet-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 16px 12px; }
.rlp .rlp-sheet-status { margin: 12px 0; font-size: 14px; color: var(--rlp-muted); }
.rlp .rlp-sheet-refusal { margin: 2px 0 10px; color: var(--rlp-red-text); font-size: 13px; }
.rlp .rlp-sheet-foot { display: flex; flex: none; flex-direction: column; gap: 8px; padding: 10px 16px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rlp-line); }
.rlp .rlp-sheet-foot .rlp-btn { width: 100%; min-height: 44px; }
.rlp .rlp-sheet-ledger { margin: 0; font-size: 13px; text-align: center; color: var(--rlp-muted); }
.rlp .rlp-sheet-ledger b { color: inherit; font-weight: 600; }
.rlp .rlp-sheet--picker .rlp-sheet-foot { border-top: 0; }

/* catalogue results */
.rlp .rlp-added { display: flex; align-items: center; gap: 8px; padding: 2px 0 10px; font-size: 13px; }
.rlp .rlp-added .rlp-pill-dot { flex: none; background: var(--rlp-green); }
.rlp .rlp-results { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rlp .rlp-result { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 0; border-top: 1px solid var(--rlp-line); }
.rlp .rlp-result:first-child { border-top: 0; }
.rlp .rlp-result .rlp-item-img { width: 48px; height: 48px; }
.rlp .rlp-result .rlp-btn { flex: none; width: auto; min-height: 36px; padding: 5px 12px; font-size: 13px; }
.rlp .rlp-result--muted { color: var(--rlp-muted); }
/* UX5 (#59): a product already on the order; one added from its row ("Added", Undo beside it) */
.rlp .rlp-result-tag { display: block; font-size: 12.5px; color: var(--rlp-muted); }
.rlp .rlp-result .rlp-btn.is-added { border-color: var(--rlp-line); background: transparent; color: inherit; cursor: default; }
.rlp .rlp-result .rlp-undo { flex: none; margin: 0; }
.rlp .rlp-result--muted .rlp-item-img { opacity: 0.5; }
.rlp .rlp-show-more { display: inline-block; margin: 10px 0 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; text-transform: none; box-shadow: none; cursor: pointer; }

/* variant picker */
.rlp .rlp-vp-head { display: flex; align-items: flex-start; gap: 12px; padding: 0 0 4px; }
.rlp .rlp-vp-img { flex: none; width: 72px; height: 72px; border-radius: 8px; background: var(--rlp-soft); object-fit: cover; }
.rlp .rlp-vp-text { min-width: 0; }
.rlp .rlp-vp-title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.rlp .rlp-vp-price { margin-top: 2px; font-size: 14px; }
.rlp .rlp-opt-group { margin-top: 14px; }
.rlp .rlp-opt-label { margin-bottom: 8px; font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rlp .rlp-opt { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 40px; margin: 0; padding: 8px 14px; border: 1px solid var(--rlp-line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; line-height: 1.2; letter-spacing: normal; text-transform: none; box-shadow: none; cursor: pointer; }
.rlp .rlp-opt:hover { border-color: currentColor; }
.rlp .rlp-opt.is-selected { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; font-weight: 600; }
.rlp .rlp-opt.is-soldout { color: var(--rlp-muted); }
.rlp .rlp-opt.is-soldout .rlp-opt-name { text-decoration: line-through; }
.rlp .rlp-opt-tag { font-size: 11px; font-weight: 400; }
.rlp .rlp-vp-lines { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--rlp-muted); }

/* Phones: a bottom sheet with a handle. */
@media (max-width: 480px) {
	.rlp.rlp-sheet { width: 100%; height: 88vh; height: 88dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2); }
	.rlp.rlp-sheet.rlp-sheet--picker { height: auto; height: fit-content; max-height: 88vh; max-height: 88dvh; }
	.rlp.rlp-sheet-host { align-items: flex-end; }
	.rlp .rlp-sheet-handle { display: block; }
	.rlp .rlp-opt { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
	.rlp.rlp-sheet[open] { animation: rlp-sheet-in 0.18s ease-out; }
}
@keyframes rlp-sheet-in { from { opacity: 0; transform: translateY(12px); } }

/* P3: standalone mode only, the classic editor's Order summary background on the summary and the
   ledger (the phone bar too). Last, so it wins over their theme-derived tints. */
.rlp.rlp--summary .rlp-costs, .rlp.rlp--summary .rlp-ledger, .rlp.rlp--summary .rlp-ledger-bar { background: var(--rlp-summary-bg); }

/* Phase 2, M5: the address and shipping modes (screens "Change address" and "Address: confirm
   first"), their form, the rate list, the merchant's messages and the success box after a save. The
   controls are drawn here, not by the theme: every property a theme's form rules set is set again. */
.rlp .rlp-mode-banner { padding: 12px 16px; border: 1px solid rgba(55, 138, 221, 0.32); border-radius: var(--rlp-radius); background: rgba(55, 138, 221, 0.07); }
.rlp .rlp-mode-head { display: flex; align-items: center; gap: 8px; }
.rlp .rlp-mode-icon { flex: none; width: 18px; height: 18px; color: var(--rlp-blue); }
.rlp .rlp-mode-title { margin: 0; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; }
.rlp .rlp-mode-sub { margin: 2px 0 0; font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-card--edit > .rlp-mode-banner + .rlp-addr, .rlp .rlp-card--edit > .rlp-mode-banner + .rlp-confirm-card { margin-top: 14px; }
.rlp .rlp-addr { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.rlp .rlp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.rlp .rlp-field { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; }
.rlp .rlp-field[hidden] { display: none; }
.rlp .rlp-field--full { grid-column: 1 / -1; }
.rlp .rlp-label { display: block; margin: 0; font-size: 13px; font-weight: 400; line-height: 1.35; letter-spacing: normal; text-transform: none; color: var(--rlp-muted); }
/* The base rule's border, colour, font and shadow are repeated at this weight: a theme's input rules
   (0,2,x) beat .rlp .rlp-input but not this (review design-9). */
.rlp .rlp-form .rlp-input { display: block; flex: none; width: 100%; height: auto; min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid var(--rlp-line); border-radius: 8px; color: inherit; font: inherit; font-size: 15px; line-height: 1.3; letter-spacing: normal; text-transform: none; box-shadow: none; background-color: var(--rlp-page-bg, transparent); }
.rlp .rlp-form .rlp-input:focus { outline: none; border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.rlp .rlp-form .rlp-input[aria-invalid="true"] { border-color: var(--rlp-red); box-shadow: 0 0 0 1px var(--rlp-red); }
.rlp .rlp-select, .rlp .rlp-form .rlp-select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.rlp .rlp-select option { color: #1f1f1f; background: #ffffff; }
.rlp .rlp-locked { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; margin: 0; padding: 9px 0; font-size: 15px; }
.rlp .rlp-locked-note { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; font-size: 13px; }
.rlp .rlp-lock { width: 14px; height: 14px; }
.rlp .rlp-field-error { display: block; margin: 0; font-size: 13px; line-height: 1.4; color: var(--rlp-red-text); }
.rlp .rlp-field-error[hidden] { display: none; }
.rlp .rlp-q { display: block; margin: 0 0 10px; padding: 0; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; }
.rlp .rlp-rates, .rlp .rlp-subsc { min-width: 0; margin: 0; padding: 0; border: 0; }
.rlp .rlp-rates-note, .rlp .rlp-rates-fixed { margin: 0 0 10px; font-size: 14px; }
.rlp .rlp-rates-fixed { margin: 0; }
.rlp .rlp-radios { display: flex; flex-direction: column; }
.rlp .rlp-radios--boxed { border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); }
.rlp .rlp-radio { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; padding: 10px 14px; font-size: 15px; font-weight: 400; line-height: 1.35; letter-spacing: normal; text-transform: none; color: inherit; cursor: pointer; }
.rlp .rlp-radios--boxed .rlp-radio + .rlp-radio { border-top: 1px solid var(--rlp-line); }
.rlp .rlp-radio.is-on { background: var(--rlp-soft); }
.rlp .rlp-radio input[type="radio"] { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: currentColor; position: static; opacity: 1; -webkit-appearance: auto; appearance: auto; }
.rlp .rlp-radio-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rlp .rlp-radio-main small { font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-radio-price { font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rlp .rlp-pill--offer { padding: 1px 8px; font-size: 11.5px; vertical-align: 1px; }
.rlp .rlp-pill--offer .rlp-pill-dot { background: var(--rlp-green); }
.rlp .rlp-msg { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--rlp-radius); background: var(--rlp-soft); }
.rlp .rlp-msg-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.rlp .rlp-msg-title { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.rlp .rlp-msg-body { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--rlp-muted); overflow-wrap: anywhere; }
.rlp .rlp-msg-body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* UX5 (#54, #67): the success box's lines, the money the save moved, as plain sentences (no bullet) */
.rlp .rlp-msg-line { margin: 6px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.rlp .rlp-msg-line:first-child { margin-top: 0; }
.rlp .rlp-msg-line a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rlp .rlp-msg--success { border: 1px solid rgba(29, 158, 117, 0.35); background: rgba(29, 158, 117, 0.07); }
.rlp .rlp-msg--success .rlp-msg-icon { color: var(--rlp-green); }
.rlp .rlp-msg--merchant { border-left: 3px solid currentColor; border-radius: 0 var(--rlp-radius) var(--rlp-radius) 0; }
.rlp .rlp-cards > .rlp-msg--success { margin-bottom: 4px; }
.rlp .rlp-addr-error { margin-top: -6px; }
.rlp .rlp-addr-fixed { margin: 0; }
.rlp .rlp-addr-fixed .rlp-h2 { font-size: 15px; }
.rlp .rlp-ledger-offer { margin: 10px 0 0; font-size: 13.5px; }
.rlp .rlp-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: inherit; cursor: pointer; } /* review design-10: a 44px target */
.rlp .rlp-row-change { margin-inline-start: 6px; font-size: 13px; }
.rlp .rlp-next { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 12px 16px; border: 1px dashed var(--rlp-line); border-radius: var(--rlp-radius); font-size: 14px; color: var(--rlp-muted); }
@container (max-width: 480px) {
	.rlp .rlp-mode-banner { padding: 12px 14px; }
	.rlp .rlp-form .rlp-input { font-size: 16px; }
	.rlp .rlp-locked-note { margin-inline-start: 0; }
}
/* Google's suggestion list hangs off the page body, outside .rlp; it follows the page's type. */
.pac-container { z-index: 2147483000; border-radius: 8px; font-family: inherit; }

/* Phase 2, M7: the note and the custom field rows in the rail (screen "Note and gate code"): a row with a
   value, a one-line row (Add), the row open in place with its field, counter and buttons, and a value
   hidden until the visitor confirms. The controls are drawn here, as the address form's are: every
   property a theme's form rules set is set again. */
.rlp .rlp-panel--line .rlp-panel-head .rlp-h2 { margin-bottom: 0; }
.rlp .rlp-panel--open { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.rlp .rlp-value { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.rlp .rlp-value--hidden { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--rlp-muted); }
.rlp .rlp-eye { flex: none; width: 14px; height: 14px; }
.rlp .rlp-inline-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.rlp .rlp-inline-form .rlp-panel-head .rlp-h2 { margin-bottom: 0; }
.rlp .rlp-inline-form .rlp-h2 label { display: inline; margin: 0; font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.rlp .rlp-inline .rlp-input { display: block; flex: none; width: 100%; height: auto; min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid var(--rlp-line); border-radius: 8px; color: inherit; font: inherit; font-size: 15px; line-height: 1.4; letter-spacing: normal; text-transform: none; box-shadow: none; background-color: var(--rlp-page-bg, transparent); }
.rlp .rlp-inline .rlp-input:focus { outline: none; border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.rlp .rlp-inline .rlp-input[aria-invalid="true"] { border-color: var(--rlp-red); box-shadow: 0 0 0 1px var(--rlp-red); }
.rlp .rlp-inline .rlp-input[readonly] { opacity: 0.7; }
.rlp .rlp-inline .rlp-input--area { min-height: 96px; resize: vertical; }
.rlp .rlp-inline .rlp-input.rlp-input--attn { border: 2px solid var(--rlp-blue); padding: 8px 11px; box-shadow: 0 0 0 4px rgba(55, 138, 221, 0.18); }
.rlp .rlp-inline .rlp-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.rlp .rlp-inline .rlp-label b { font-weight: 600; color: inherit; }
.rlp .rlp-inline .rlp-label:has(b) { color: inherit; font-size: 14px; }
.rlp .rlp-help { margin: 0; font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-hints { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--rlp-muted); }
.rlp .rlp-counter { margin-inline-start: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rlp .rlp-counter.is-over { color: var(--rlp-red-text); font-weight: 600; }
.rlp .rlp-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rlp .rlp-btn.rlp-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.rlp .rlp-inline-confirm, .rlp .rlp-inline [data-rlp-inline-confirm] > .rlp-confirm { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--rlp-line); }
.rlp .rlp-inline [data-rlp-inline-confirm]:empty { display: none; }
.rlp .rlp-inline-host { margin: 0; }
@container (max-width: 480px) {
	.rlp .rlp-inline .rlp-input { font-size: 16px; }
	.rlp .rlp-form-actions .rlp-btn { flex: 1 1 auto; min-height: 44px; }
}

/* Phase 2, M8: the cancel mode (screen "Cancel"): the reasons with Other's field, the subscription choice,
   the lines it cancels; "If you cancel" in the rail and the phone bar. And "Buy these again" (screens
   "Delivered", "Cancelled"). The controls are drawn here, as the address form's are. */
.rlp .rlp-card--edit > .rlp-mode-banner + .rlp-cancel { margin-top: 14px; }
.rlp .rlp-cancel { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.rlp .rlp-cancel-why, .rlp .rlp-cancel-what { min-width: 0; margin: 0; padding: 0; border: 0; }
.rlp .rlp-cancel .rlp-radio-sub { margin: 0; padding: 0 14px 12px 46px; }
.rlp .rlp-cancel .rlp-radio-sub[hidden] { display: none; }
.rlp .rlp-cancel .rlp-radio-sub .rlp-input { display: block; width: 100%; height: auto; min-height: 88px; margin: 0; padding: 9px 12px; border: 1px solid var(--rlp-line); border-radius: 8px; color: inherit; font: inherit; font-size: 15px; line-height: 1.45; letter-spacing: normal; text-transform: none; box-shadow: none; background-color: var(--rlp-page-bg, transparent); resize: vertical; }
.rlp .rlp-cancel .rlp-radio-sub .rlp-input:focus { outline: none; border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.rlp .rlp-cancel .rlp-radio-sub .rlp-input[aria-invalid="true"] { border-color: var(--rlp-red); box-shadow: 0 0 0 1px var(--rlp-red); }
.rlp .rlp-cancel .rlp-radio-sub .rlp-counter { align-self: flex-end; font-size: 12.5px; color: var(--rlp-muted); }
.rlp .rlp-cancel-why .rlp-field-error { margin-top: 8px; }
.rlp .rlp-cancel-subsc { margin: 0; font-size: 14.5px; }
.rlp .rlp-card--edit > .rlp-cancel + .rlp-q { margin-top: 18px; }
.rlp .rlp-cancel-panel .rlp-row--change dt { overflow-wrap: anywhere; }
.rlp .rlp-cancel-confirm:empty { display: none; }
.rlp .rlp-cancel-confirm > .rlp-confirm { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rlp-line); }
.rlp .rlp-cancel-error { margin-top: 10px; }
.rlp .rlp-ledger-actions[hidden] { display: none; }
.rlp .rlp-reorder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); }
.rlp .rlp-reorder-text { flex: 1 1 200px; min-width: 0; }
.rlp .rlp-reorder-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.rlp .rlp-reorder-sub { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--rlp-muted); overflow-wrap: anywhere; }
.rlp .rlp-reorder-form { display: flex; margin: 0; }
.rlp .rlp-reorder-icon { width: 16px; height: 16px; flex: none; }
.rlp .rlp-reorder-note { flex-basis: 100%; margin: 0; font-size: 13.5px; line-height: 1.4; }
.rlp .rlp-reorder-note[hidden] { display: none; }
@container (max-width: 480px) {
	.rlp .rlp-cancel .rlp-radio-sub { padding-left: 14px; }
	.rlp .rlp-cancel .rlp-radio-sub .rlp-input { font-size: 16px; }
	.rlp .rlp-reorder-form, .rlp .rlp-reorder-form .rlp-btn { width: 100%; }
	.rlp .rlp-reorder-form .rlp-btn { min-height: 44px; }
}
/* Phase 2, M10: the shipment line with tracking off (screen "Shipped"), the Already shipped message, the pickup panel. */
.rlp .rlp-shipline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); font-size: 14px; line-height: 1.4; }
.rlp .rlp-shipline .rlp-i { width: 18px; height: 18px; color: var(--rlp-muted); }
.rlp .rlp-shipline-text { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.rlp .rlp-shipline-eta { font-size: 13px; }
.rlp .rlp-shipline-link { margin-inline-start: auto; }
.rlp .rlp-shipped-msg .rlp-banner-body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rlp .rlp-pickup-note { margin: 8px 0 0; font-size: 13px; line-height: 1.4; }
@container (max-width: 480px) {
	.rlp .rlp-shipline-link { margin-inline-start: 0; flex-basis: 100%; }
}
/* Phase 2, M11: the entry pages (screens "Find your order" and "Maintenance"): one card in the middle of the page. */
.rlp.rlp--entry { padding-top: 40px; padding-bottom: 56px; }
.rlp .rlp-center { width: 100%; max-width: 470px; margin: 0 auto; }
.rlp .rlp-cardbox { display: block; padding: 28px; border: 1px solid var(--rlp-line); border-radius: 14px; background: var(--rlp-page-bg, transparent); color: inherit; }
.rlp .rlp-icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 14px; border-radius: 50%; background: var(--rlp-soft); }
.rlp .rlp-icon-badge .rlp-i { width: 22px; height: 22px; }
.rlp .rlp-cardbox-title { margin: 0; font-family: inherit; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-transform: none; color: inherit; overflow-wrap: anywhere; }
.rlp .rlp-cardbox-note { margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
/* UX4 (#25): the dead link's line, as a small warning callout. */
.rlp .rlp-cardbox-note--warn { padding: 10px 12px; border: 1px solid rgba(186, 117, 23, 0.45); border-radius: 8px; background: rgba(186, 117, 23, 0.09); }
.rlp .rlp-cardbox-text { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--rlp-muted); }
.rlp .rlp-form.rlp-form--one { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
.rlp .rlp-form--one .rlp-btn { min-height: 44px; font-size: 15px; font-weight: 600; }
.rlp .rlp-form--one .rlp-field-error a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rlp .rlp-cardbox-foot { margin: 14px 0 0; }
.rlp .rlp-cardbox-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.rlp .rlp-cardbox-actions .rlp-btn { min-height: 44px; padding: 9px 18px; font-size: 15px; font-weight: 600; }
.rlp .rlp-cardbox-actions .rlp-muted { margin: 0; }
@media (max-width: 480px) {
	.rlp.rlp--entry { padding-top: 24px; padding-bottom: 40px; }
}
@container (max-width: 480px) {
	.rlp .rlp-cardbox { padding: 20px 16px; }
	.rlp .rlp-cardbox-title { font-size: 22px; }
	.rlp .rlp-cardbox-actions .rlp-btn { width: 100%; }
	.rlp .rlp-form--one .rlp-input { font-size: 16px; }
}
/* Phase 2, O2: the shelf (view mode) and the strip (under the item editor's card): "Add to order", one ribbon per tile
   (mockup "Unfulfilled order", "Items with the inline promo"); the offer on a line and in the ledger; a link's question. */
.rlp .rlp-rec { position: relative; }
.rlp .rlp-ribbon { position: absolute; top: 14px; left: 14px; z-index: 1; max-width: calc(100% - 28px); padding: 2px 8px; border-radius: 999px; background: var(--rlp-accent); color: var(--rlp-on-accent); font-size: 11.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.rlp .rlp-rec-price b { font-weight: 600; color: var(--rlp-ink, inherit); }
.rlp .rlp-rec-price s { margin-inline-start: 4px; }
.rlp .rlp-rec-added { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; margin-top: auto; font-size: 13px; font-weight: 600; }
.rlp .rlp-rec-added .rlp-pill-dot { flex: none; background: var(--rlp-green); }
.rlp .rlp-rec-note { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--rlp-muted); }
.rlp .rlp-strip { margin-top: 2px; padding: 14px 16px 16px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); }
.rlp .rlp-strip .rlp-recs-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 10px; }
/* O2 review: the offer pill on an added line only; M5's "Now available" pill (the same class) keeps its own spacing. */
.rlp .rlp-item-title .rlp-pill--offer { margin-inline-start: 4px; }
.rlp .rlp-row--offer dt { color: inherit; }
.rlp .rlp-row--offer dd s { color: var(--rlp-muted); font-size: 13px; }
.rlp .rlp-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); background: var(--rlp-soft); }
.rlp .rlp-ask-img { flex: none; width: 48px; height: 48px; border-radius: 8px; background: var(--rlp-soft); object-fit: cover; }
.rlp .rlp-ask-q { flex: 1 1 220px; min-width: 0; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.rlp .rlp-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rlp .rlp-ask-note { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--rlp-muted); }
.rlp .rlp-vp-price s { color: var(--rlp-muted); font-size: 13px; }
@container (max-width: 480px) {
	.rlp .rlp-strip { padding: 12px; }
	.rlp .rlp-strip .rlp-recs-grid { display: flex; overflow-x: auto; gap: 12px; margin-inline: -12px; padding: 0 12px 4px; scroll-snap-type: x mandatory; }
	.rlp .rlp-strip .rlp-rec { flex: 0 0 42%; scroll-snap-align: start; }
	.rlp .rlp-ask-btns { width: 100%; }
	.rlp .rlp-ask-btns .rlp-btn { flex: 1 1 auto; min-height: 44px; }
}

/* Phase 2, O3: the inline promo, the #1 pick as one more item row (mockups, the row under the items). Under the items it
   joins their box: a dashed rule, the box's lower corners; under the status it stands on its own. */
.rlp .rlp-promo { border: 1px solid var(--rlp-line); border-radius: var(--rlp-radius); background: var(--rlp-soft); }
.rlp .rlp-b--line_items + .rlp-b--promo { margin-top: -15px; }
.rlp .rlp-b--line_items + .rlp-b--promo .rlp-promo { border-top-style: dashed; border-top-left-radius: 0; border-top-right-radius: 0; }
.rlp .rlp-b--line_items:has(+ .rlp-b--promo) .rlp-items { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rlp .rlp-item.rlp-item--promo { align-items: flex-start; padding: 14px 16px 16px; }
.rlp .rlp-item--promo .rlp-item-img { border: 1px solid var(--rlp-line); }
.rlp .rlp-promo-head { margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.rlp .rlp-promo-tag { display: inline-flex; align-items: center; width: max-content; max-width: 100%; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; background: var(--rlp-accent); color: var(--rlp-on-accent); font-size: 11.5px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.rlp .rlp-promo-lines { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13.5px; color: var(--rlp-muted); }
.rlp .rlp-promo-lines b { font-weight: 600; color: var(--rlp-ink, inherit); }
.rlp .rlp-promo-save { display: flex; align-items: flex-start; gap: 6px; color: #11795a; color: color-mix(in srgb, #1d9e75 72%, currentColor); font-weight: 600; }
.rlp .rlp-promo-icon { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.rlp .rlp-promo-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.rlp .rlp-promo-side .rlp-item-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.rlp .rlp-promo-side .rlp-item-price b { font-weight: 600; }
.rlp .rlp-promo-side .rlp-item-price s { color: var(--rlp-muted); font-size: 12.5px; }
@container (max-width: 480px) {
	.rlp .rlp-item.rlp-item--promo { flex-wrap: wrap; padding: 14px 12px; }
	.rlp .rlp-promo-side { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; padding-inline-start: 60px; }
	.rlp .rlp-promo-side .rlp-item-price { align-items: flex-start; }
	.rlp .rlp-promo-side .rlp-btn { min-height: 44px; }
}
