/* Gravipack Control Center — customer page of an order change (G21b, G21d): the choice page reached from the signed
   e-mail link (/?gp_modif=…) and the « Modifications de la commande » block of the account's order view.
   Paper view (light in both schemes), site tokens only. Each proposition is a card with a real radio button: the chosen
   card gets a thick border and a tinted surface (and the radio itself shows the choice: never colour alone).
   Targets 44 px, visible focus ring, no animation when reduced motion is asked, nothing wider than 320 px. */

.gpcc-oc {
	--gpcc-oc-line: var(--paper-line, rgba(18, 19, 22, .16));
	--gpcc-oc-strong: var(--paper-field-line, rgba(18, 19, 22, .5));
	--gpcc-oc-muted: var(--paper-muted, #575a61);
	--gpcc-oc-ink: var(--paper-ink, #121316);
	--gpcc-oc-card: #fff;
	--gpcc-oc-soft: var(--paper-2, #e9e7e0);
	--gpcc-oc-tint: color-mix(in srgb, var(--accent, #d4ff3a) 22%, #fff);
	--gpcc-oc-edge: var(--accent-ink, #121316);
	display: grid;
	gap: 1.25rem;
	max-width: 52rem;
	min-width: 0;
	margin: 0 auto;
	padding-block: calc(var(--header-total, 76px) + clamp(24px, 4vw, 56px)) clamp(48px, 8vw, 96px); /* under the fixed header (bar + phone world row) */
	color: var(--gpcc-oc-ink);
}
.gpcc-oc--short { max-width: 40rem; }
.gpcc-oc * { min-width: 0; }
.gpcc-oc h1, .gpcc-oc h2, .gpcc-oc h3, .gpcc-oc p { margin: 0; }

.gpcc-oc__head { display: grid; gap: .6rem; }
.gpcc-oc__eyebrow { color: var(--gpcc-oc-muted); font-size: .95rem; font-weight: 600; }
.gpcc-oc__title { font-family: var(--font-display, inherit); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); line-height: 1.08; text-wrap: balance; overflow-wrap: anywhere; }
.gpcc-oc__lead { max-width: 62ch; font-size: 1.05rem; line-height: 1.5; }
.gpcc-oc__meta { color: var(--gpcc-oc-muted); font-size: .95rem; }

.gpcc-oc__error { padding: .85rem 1rem; border: 2px solid var(--danger, #b3261e); border-radius: var(--radius-s, 12px); background: #fff; font-weight: 600; }
.gpcc-oc__note { display: grid; gap: .4rem; padding: 1rem 1.25rem; border: 1px solid var(--gpcc-oc-edge); border-radius: var(--radius-s, 12px); background: var(--gpcc-oc-soft); }
.gpcc-oc__sign { color: var(--gpcc-oc-muted); font-size: .9rem; }

.gpcc-oc__card { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--gpcc-oc-line); border-radius: var(--radius, 22px); background: var(--gpcc-oc-card); }
.gpcc-oc__h2 { padding: 0; font-family: var(--font-display, inherit); font-size: 1.3rem; line-height: 1.2; }
.gpcc-oc__h3 { font-size: 1.1rem; }

.gpcc-oc__items { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.gpcc-oc__item { display: grid; grid-template-columns: 72px 1fr; gap: .9rem; align-items: center; }
.gpcc-oc__img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-s, 12px); background: var(--gpcc-oc-soft); }
.gpcc-oc__img--none { border: 1px solid var(--gpcc-oc-line); }
.gpcc-oc__item-text { display: grid; gap: .15rem; }
.gpcc-oc__name { font-weight: 700; overflow-wrap: anywhere; }
.gpcc-oc__qty, .gpcc-oc__price { color: var(--gpcc-oc-muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.gpcc-oc__price { color: var(--gpcc-oc-ink); }

.gpcc-oc__form, .gpcc-oc__refuse { display: grid; gap: 1rem; }
.gpcc-oc__choices { display: grid; gap: .9rem; margin: 0; padding: 0; border: 0; }
.gpcc-oc__choices > legend { margin-bottom: .9rem; font-weight: 700; color: var(--gpcc-oc-ink); }

/* A proposition: radio + label as the head, products below. The whole card is not a label (it holds a list), the
   head is: 44 px high at least, the radio drawn by the browser at 22 px. */
.gpcc-oc__alt { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--gpcc-oc-strong); border-radius: var(--radius, 22px); background: var(--gpcc-oc-card); transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.gpcc-oc__alt:has(.gpcc-oc__radio:checked) { border-color: var(--gpcc-oc-edge); box-shadow: inset 0 0 0 2px var(--gpcc-oc-edge); background: var(--gpcc-oc-tint); }
.gpcc-oc__alt:has(.gpcc-oc__radio:focus-visible) { outline: 2px solid var(--gpcc-oc-edge); outline-offset: 3px; }
.gpcc-oc__radio { width: 22px; height: 22px; margin: 11px 0 0; accent-color: var(--gpcc-oc-ink); cursor: pointer; }
.gpcc-oc__alt-head { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; min-height: 44px; cursor: pointer; }
.gpcc-oc__alt-key { font-family: var(--font-display, inherit); font-size: 1.15rem; font-weight: 700; }
.gpcc-oc__effect { font-weight: 600; font-variant-numeric: tabular-nums; }
.gpcc-oc__alt--pay .gpcc-oc__effect::before { content: "+ "; }
.gpcc-oc__alt--refund .gpcc-oc__effect::before { content: "− "; }
.gpcc-oc__alt-body { grid-column: 2; display: grid; gap: .75rem; }
.gpcc-oc__change { color: var(--gpcc-oc-muted); font-size: .95rem; }
.gpcc-oc__k { font-weight: 600; color: var(--gpcc-oc-ink); }

.gpcc-oc__hint { max-width: 62ch; color: var(--gpcc-oc-muted); }
.gpcc-oc__confirm { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 1rem; border: 1px solid var(--gpcc-oc-line); border-radius: var(--radius-s, 12px); background: var(--gpcc-oc-card); }
.gpcc-oc__confirm input { flex: none; width: 22px; height: 22px; margin: 11px 0; accent-color: var(--gpcc-oc-ink); cursor: pointer; }
.gpcc-oc__confirm label { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.gpcc-oc__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.gpcc-oc .gp-btn { min-height: 48px; }

.gpcc-oc__refuse { padding: 1.1rem 1.25rem; border: 1px dashed var(--gpcc-oc-strong); border-radius: var(--radius, 22px); }

.gpcc-oc__history { border-top: 1px solid var(--gpcc-oc-line); padding-top: 1rem; }
.gpcc-oc__history summary, .gpcc-oc-acc .gpcc-oc__history summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.gpcc-oc__history ol { display: grid; gap: .6rem; margin: .5rem 0 0; padding-left: 1.25rem; }
.gpcc-oc__history time { font-variant-numeric: tabular-nums; font-weight: 600; }
.gpcc-oc__who, .gpcc-oc__detail { color: var(--gpcc-oc-muted, var(--paper-muted, #575a61)); }

/* Account block (inside account.css's .gpcc-acc cards). */
.gpcc-oc-acc { margin-top: 2rem; }
.gpcc-oc-acc__status { font-weight: 500; color: var(--gpcc-muted, inherit); }
.gpcc-oc-acc .gpcc-oc__history { padding-top: .5rem; }
.gpcc-oc-acc .gpcc-oc__history ol { padding-left: 1.25rem; }

@media (max-width: 480px) {
	.gpcc-oc__item { grid-template-columns: 56px 1fr; }
	.gpcc-oc__img { width: 56px; height: 56px; }
	.gpcc-oc__alt { grid-template-columns: auto 1fr; padding: .9rem; }
	.gpcc-oc__alt-body { grid-column: 1 / -1; }
	.gpcc-oc .gp-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.gpcc-oc__alt { transition: none; }
}
