/* The « My account » page (spec 054): the sign-in card and the quotes. Tokens from cart.css. */
/* One column, never wider than the screen: the area's tabs, side by side, made it grow (spec 108) */
.pm-account { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 1.5rem 0 3rem; }
.pm-account__card { width: 100%; max-width: 26rem; box-sizing: border-box; padding: 1.75rem 1.5rem; background: #fff;
  border: 1px solid var(--pmc-line); border-radius: 16px; box-shadow: 0 10px 30px rgba(17, 19, 24, .06); }
.pm-account__card--wide { max-width: 52rem; }
.pm-account__card h2 { margin: 0 0 .5rem; font-size: 1.35rem; letter-spacing: -.01em; color: var(--pmc-ink); }
.pm-account__lead { margin: 0 0 1.1rem; color: var(--pmc-muted); line-height: 1.5; }
.pm-account .pm-form { display: grid; gap: .9rem; }
.pm-account__code { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.pm-account__links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 0; flex-wrap: wrap; }
.pm-link { padding: 0; border: 0; background: none; color: var(--pmc-blue); font: inherit; font-size: .88rem; cursor: pointer; }
.pm-link:hover { text-decoration: underline; }
.pm-state { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--pmc-soft); color: var(--pmc-muted); }
.pm-state--valid { background: #e8f5ec; color: #1e7b3c; }
.pm-state--accepted { background: #e9e6fd; color: var(--pmc-blue); }
.pm-state--expired { background: #fdf0e2; color: #9a5a00; }
.pm-account__switch { margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--pmc-line); text-align: center; }
.pm-account__switch p { margin: 0 0 .7rem; color: var(--pmc-muted); font-size: .9rem; }
.pm-account .pm-summary { margin: 0 0 1rem; }
.pm-account__accept { margin-top: 1.2rem; }
.pm-sign { display: grid; gap: .35rem; }
.pm-sign__head { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; font-weight: 550; color: #3c4043; }
.pm-sign__pad { width: 100%; height: 11rem; box-sizing: border-box; border: 1px dashed #b9bfcc; border-radius: 12px;
  background: #fff; touch-action: none; cursor: crosshair; }
.pm-sign__pad:hover { border-color: var(--pmc-blue); }
.pm-account__accept .pm-foot-note[hidden] { display: none; }
.pm-account__state { margin: 1.2rem 0 0; padding: .9rem 1rem; border-radius: 12px; background: var(--pmc-soft); line-height: 1.5; }
.pm-account__state--accepted { background: #e8f5ec; color: #1e7b3c; font-weight: 550; }
.pm-account__state--expired { background: #fdf0e2; color: #9a5a00; }
/* THE CUSTOMER AREA, « My garage » (spec 108): open on the page, no card around it; what waits for
   the customer, their vehicles as number plates (the one bold thing), documents as lines */
.pm-area { width: 100%; max-width: 60rem; --area-sidewall: var(--pm-font-sidewall, inherit); --area-concrete: var(--pm-concrete, #eef1f4); }
.pm-area__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.pm-area__hello { margin: 0; font-family: var(--area-sidewall); font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1; color: var(--pmc-ink); }
.pm-area__email { margin: .35rem 0 0; color: var(--pmc-muted); overflow-wrap: anywhere; }
.pm-area__nav { display: flex; gap: .25rem; margin: 0 0 2.2rem; padding: .3rem; border-radius: 999px; background: var(--area-concrete);
  overflow-x: auto; scrollbar-width: none; }
.pm-area__nav::-webkit-scrollbar { display: none; }
.pm-area__tab { flex: none; display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1rem; border-radius: 999px;
  color: var(--pmc-muted); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.pm-area__tab:hover { color: var(--pmc-ink); }
.pm-area__tab.is-active { background: #fff; color: var(--pm-navy, #0b2545); box-shadow: 0 1px 2px rgba(17, 19, 24, .1); }
.pm-area__panel { min-height: 8rem; }
.pm-area__block + .pm-area__block { margin-top: 2.6rem; }
.pm-area__block h3 { margin: 0 0 .8rem; font-family: var(--area-sidewall); font-size: 1.5rem; color: var(--pmc-ink); }
.pm-area__calm { margin: 0; padding: 1rem 0; border-top: 1px solid var(--pmc-line); border-bottom: 1px solid var(--pmc-line); color: var(--pmc-muted); }
.pm-area__more { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: .9rem 0 0; }
.pm-area__more a { color: var(--pmc-blue); font-weight: 600; text-decoration: none; }
.pm-area__more a:hover { text-decoration: underline; }

/* A document: number and date, state, amount, actions on one line; two on a phone */
.pm-docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pmc-line); }
/* The same columns on every line: the amounts and the states one under the other */
.pm-doc { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem 10rem 13.5rem; gap: .5rem 1.4rem;
  align-items: center; padding: 1rem .2rem; border-bottom: 1px solid var(--pmc-line); }
.pm-doc__id b { display: block; font-family: var(--area-sidewall); font-size: 1.15rem; letter-spacing: .02em; color: var(--pmc-ink); }
.pm-doc__id small, .pm-doc__amount small { display: block; margin-top: .1rem; font-size: .85rem; color: var(--pmc-muted); }
.pm-doc .pm-state { justify-self: start; }
.pm-doc__amount { text-align: right; }
.pm-doc__amount b { font-family: var(--area-sidewall); font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--pmc-ink); }
.pm-doc__actions { display: flex; gap: .45rem; justify-content: flex-end; }
.pm-doc__actions .pm-btn { min-height: 2.6rem; padding: .45rem 1rem; font-size: .9rem; }

/* A vehicle: its number plate as the road knows it, white, the European band, black characters */
.pm-cars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1rem; }
.pm-car { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.5rem 1.4rem;
  border-radius: 18px; background: var(--area-concrete); }
.pm-car__plate { display: inline-flex; align-items: stretch; height: 3.4rem; border: 2.5px solid #1c1f24; border-radius: 7px;
  background: #fff; overflow: hidden; box-shadow: 0 2px 0 rgba(17, 19, 24, .12); }
.pm-car__eu { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 1.9rem;
  padding: .3rem 0 .2rem; background: #039; color: #fff; }
.pm-car__eu svg { width: 1.3rem; height: 1.3rem; fill: #fc0; }
.pm-car__eu b { font-family: var(--area-sidewall); font-size: 1rem; line-height: 1; }
.pm-car__number { display: flex; align-items: center; padding: 0 .9rem 0 .8rem; font-family: var(--area-sidewall); font-weight: 700;
  font-size: 2rem; letter-spacing: .06em; color: #111; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-car__model { margin: .2rem 0 0; font-weight: 600; font-size: 1.05rem; color: var(--pmc-ink); }
.pm-car__size { margin: 0; }
.pm-car__size small { display: block; font-size: .85rem; color: var(--pmc-muted); }
.pm-car__size b { font-family: var(--area-sidewall); font-size: 1.7rem; letter-spacing: .04em; color: var(--pmc-ink); }
.pm-car__unknown, .pm-car--none p { margin: 0; color: var(--pmc-muted); line-height: 1.5; }
.pm-car .pm-btn { margin-top: .2rem; }

.pm-account__narrow { max-width: 30rem; }
.pm-account__notice { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 10px; background: #e8f5ec; color: #1e7b3c; }
.pm-addresses { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.pm-address { display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; padding: 1rem 1.1rem;
  border: 1px solid var(--pmc-line); border-radius: 12px; background: #fff; }
.pm-address p { margin: .35rem 0 0; color: #3c4043; line-height: 1.45; overflow-wrap: anywhere; }
.pm-address__tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.pm-address__actions { display: flex; gap: 1rem; }
.pm-address--edit { grid-column: 1 / -1; }
.pm-address__buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 640px) {
  .pm-account__card { padding: 1.4rem 1.1rem; }
  /* The document's line in two: number and amount, then state and actions */
  .pm-doc { grid-template-columns: minmax(0, 1fr) auto; gap: .55rem 1rem; }
  .pm-doc__id { grid-column: 1; grid-row: 1; }
  .pm-doc__amount { grid-column: 2; grid-row: 1; }
  .pm-doc .pm-state { grid-column: 1; grid-row: 2; justify-self: start; }
  .pm-doc__actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
  .pm-car__number { font-size: 1.75rem; }
}

/* A PDF read in a floating window (spec 054) */
.pm-pdf { width: min(56rem, 96vw); height: min(92vh, 72rem); padding: 0; border: 0; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(17, 19, 24, .3); }
.pm-pdf::backdrop { background: rgba(17, 19, 24, .55); }
.pm-pdf[open] { display: flex; flex-direction: column; }
.pm-pdf__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem;
  border-bottom: 1px solid #e5e7eb; }
.pm-pdf__pages { flex: 1; overflow: auto; background: #525659; padding: 8px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; }
.pm-pdf__pages canvas { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); max-width: 100%; }
.pm-pdf__pages .pm-account__lead { color: #fff; }
@media (max-width: 560px) { .pm-pdf { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border-radius: 0; } }

/* What the site keeps of the assistant, and the account deleted (spec 114) */
.pm-summary { margin: .9rem 0 .6rem; padding: .8rem 1rem; border-left: 3px solid var(--pmc-blue); border-radius: 0 10px 10px 0;
  background: var(--pmc-soft); color: var(--pmc-ink); font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.pm-area__block .pm-field__hint { margin: 0 0 .8rem; }
.pm-danger-zone { padding-top: 1.6rem; border-top: 1px solid var(--pmc-line); }
.pm-danger-zone__ask { margin: 0 0 .8rem; color: #a3261d; }
.pm-btn--danger { background: #c5221f; color: #fff; border-color: #c5221f; }
.pm-btn--danger:hover:not(:disabled) { background: #a3261d; border-color: #a3261d; }
.pm-btn--danger-ghost { color: #c5221f; }
.pm-btn--danger-ghost:hover:not(:disabled) { border-color: #c5221f; }

/* A quote signed here, then paid; a paid quote's appointment (spec 115) */
.pm-sign, .pm-book { margin-top: 1.4rem; padding: 1.2rem; border: 1px solid var(--pmc-line); border-radius: 14px; background: #fff; }
.pm-sign h3, .pm-book h3 { margin: 0 0 .6rem; }
.pm-sign__pad { margin: .8rem 0 .4rem; }
.pm-sign__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; font-size: .85rem; color: var(--pmc-muted); }
.pm-sign__pad canvas { display: block; width: 100%; height: 160px; border: 1px dashed #b9bfcc; border-radius: 10px;
  background: var(--pmc-soft); touch-action: none; cursor: crosshair; }
.pm-slots { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: .5rem; }
.pm-slot { width: 100%; padding: .7rem .9rem; border: 1px solid var(--pmc-line); border-radius: 10px; background: #fff;
  color: var(--pmc-ink); font: inherit; text-align: left; cursor: pointer; }
.pm-slot::first-letter { text-transform: uppercase; }
.pm-slot:hover { border-color: #cfd3de; }
.pm-slot.is-chosen { border-color: var(--pmc-blue); background: #eef4fe; box-shadow: 0 0 0 1px var(--pmc-blue) inset; }

/* A vehicle added, the sizes advised for its plate (spec 116): each rim diameter drawn as a wheel,
   its sizes written as on a tyre's sidewall; the original one filled, the chosen one ringed in yellow */
.pm-add-car { margin-top: 1rem; }
.pm-car-form { margin-top: 1.4rem; padding: 1.2rem; border: 1px solid var(--pmc-line); border-radius: 14px; background: #fff; }
.pm-car-form .pm-form__row { align-items: flex-end; }

.pm-size-wait { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 1rem; padding: .9rem 1rem;
  border-radius: 12px; background: var(--area-concrete, #eef1f4); color: var(--pmc-ink); }
.pm-size-wait p { margin: 0; line-height: 1.45; }
.pm-size-wait small { color: var(--pmc-muted); }
.pm-size-wait [data-wait-seconds] { font-variant-numeric: tabular-nums; color: var(--pmc-muted); }
/* A tyre seen from the side, turning: tread blocks on a dark ring */
.pm-size-wait__tyre { flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 34%, #c9ced8 35% 44%, transparent 45%),
              repeating-conic-gradient(#2b2f38 0 14deg, #4a505c 14deg 22deg);
  animation: pm-tyre-turn 1.1s linear infinite; }
@keyframes pm-tyre-turn { to { transform: rotate(360deg); } }

.pm-size-none { margin: .4rem 0 1rem; padding: .8rem 1rem; border-left: 3px solid var(--pmc-yellow); border-radius: 0 10px 10px 0;
  background: #fff8e1; color: var(--pmc-ink); }
.pm-size-advice { margin: .4rem 0 1rem; }
.pm-size-advice__car { margin: 0; font-family: var(--area-sidewall); font-size: 1.25rem; line-height: 1.2; color: var(--pmc-ink); }
.pm-size-advice > .pm-field__hint { margin: .2rem 0 .8rem; }

.pm-rim { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--pmc-line); }
.pm-rim__wheel { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #fff 0 46%, #d5dae3 47% 58%, #fff 59% 62%, #2b2f38 63%); }
.pm-rim__wheel span { font-family: var(--area-sidewall); font-size: 1.05rem; font-weight: 700; color: var(--pmc-ink); }
.pm-rim__title { margin: 0 0 .35rem; font-weight: 600; color: var(--pmc-ink); }
.pm-rim__group + .pm-rim__group { margin-top: .55rem; }
.pm-rim__label { margin: 0 0 .3rem; font-size: .8rem; color: var(--pmc-muted); }
.pm-rim__tyres { display: flex; flex-wrap: wrap; gap: .4rem; }

.pm-tyre { display: inline-flex; align-items: center; gap: .9rem; padding: .42rem .8rem; border: 1px solid #c9ced8; border-radius: 8px;
  background: #fff; color: var(--pmc-ink); font-family: var(--area-sidewall); font-size: 1rem; letter-spacing: .02em; cursor: pointer;
  transition: border-color .15s, box-shadow .15s; }
.pm-tyre:hover { border-color: var(--pmc-blue); }
.pm-tyre:focus-visible { outline: 3px solid var(--pmc-blue); outline-offset: 2px; }
.pm-tyre--original { padding: .55rem 1rem; border-color: #0b2545; background: #0b2545; color: #fff; font-size: 1.15rem; }
.pm-tyre--original:hover { border-color: #0b2545; background: #13315c; }
.pm-tyre__axle { display: inline-flex; flex-direction: column; line-height: 1.15; }
.pm-tyre__axle small { font-family: inherit; font-size: .68rem; letter-spacing: 0; color: var(--pmc-muted); }
.pm-tyre__axle + .pm-tyre__axle { padding-left: .9rem; border-left: 1px solid #c9ced8; }
.pm-tyre.is-chosen { box-shadow: 0 0 0 3px var(--pmc-yellow); border-color: var(--pmc-yellow); }
@media (max-width: 520px) {
  .pm-rim { grid-template-columns: 48px 1fr; gap: .75rem; }
  .pm-rim__wheel { width: 48px; height: 48px; }
  .pm-rim__wheel span { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .pm-size-wait__tyre { animation-duration: 4s; } }
.pm-car__tools { display: flex; gap: 1rem; margin: .6rem 0 0; }
.pm-car__ask { margin: .6rem 0 0; font-size: .88rem; color: #a3261d; }
.pm-link--danger { color: #c5221f; }

/* Online booking, on the workshop's approval (spec 117) */
.pm-book-ask p { max-width: 38rem; color: var(--pmc-muted); }
.pm-bk-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem 1.4rem; margin: .4rem 0 1rem; }
.pm-bk-family { margin: 0; padding: 0; border: 0; min-width: 0; }
.pm-bk-family legend { margin-bottom: .3rem; font-weight: 600; font-size: .9rem; color: var(--pmc-ink); }
.pm-bk-family .pm-consent small { margin-left: .3rem; color: var(--pmc-muted); white-space: nowrap; }

/* A return: its form and its steps, warm as the tyre's sheet (portal spec 129) */
.pm-account .pm-return { margin-top: 1rem; padding: 1.2rem 1.3rem; border-radius: 14px; background: #fbf9f6; border: 1px solid #ece6dd; }
.pm-return h3 { margin: 0; }
.pm-return__items { list-style: none; margin: .3rem 0 .2rem; padding: 0; display: grid; gap: .3rem; }
.pm-return__items li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border-radius: 10px;
                       background: #fff; border: 1px solid #ece6dd; font-size: .92rem; }
.pm-return__items b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pm-return__how { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: .35rem; }
.pm-return__how legend { margin-bottom: .3rem; font-weight: 600; font-size: .9rem; color: var(--pmc-ink); }
.pm-return .pm-choice { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.pm-return .pm-choice input { accent-color: #f97316; width: 1.05rem; height: 1.05rem; }
.pm-return__unused { font-weight: 600; }
.pm-return__note { margin: -.4rem 0 0; font-size: .84rem; color: var(--pmc-muted); }
.pm-return__steps { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 0; }
.pm-return__step { position: relative; display: grid; grid-template-columns: 1.2rem 1fr; gap: .7rem; padding: 0 0 1rem; color: var(--pmc-muted); }
.pm-return__step::before { content: ""; position: absolute; left: .55rem; top: 1.1rem; bottom: 0; width: 2px; background: #ece6dd; }
.pm-return__step:last-child::before { display: none; }
.pm-return__dot { width: 1.1rem; height: 1.1rem; margin-top: .1rem; border-radius: 50%; border: 2px solid #d9cfc2; background: #fff; }
.pm-return__step.is-done { color: var(--pmc-ink); }
.pm-return__step.is-done .pm-return__dot { border-color: #f59e0b; background: #f59e0b; }
.pm-return__step.is-done::before { background: #f5c47a; }
.pm-return__step b { display: block; }
.pm-return__step small { color: var(--pmc-muted); }
.pm-return__step p { margin: .25rem 0 0; font-size: .9rem; }
.pm-return__todo { margin-top: .5rem; padding: .7rem .85rem; border-radius: 10px; background: #fff; border: 1px solid #f5c47a; }
.pm-return__todo b { font-size: .9rem; }
