/* The cart: the bar's button and the drawer over the page (spec 054, phase 2). Outside
   .pm-search, so the colours are set again here from the theme's properties. */
:root { --pmc-blue: var(--pm-brand-blue, #1a73e8); --pmc-yellow: var(--pm-brand-yellow, #fbbc05);
        --pmc-ink: var(--pm-brand-ink, #111318); --pmc-muted: #5f6368; --pmc-line: #e3e6ee; --pmc-soft: #f6f7fb; }
.pm-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

/* The bar's button */
.pm-cart-button { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem .45rem .7rem;
                  border: 1px solid var(--pmc-line); border-radius: 2rem; background: #fff; color: var(--pmc-ink);
                  font: inherit; font-size: .9rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pm-cart-button:hover { border-color: #cfd3de; box-shadow: 0 2px 8px rgba(17, 19, 24, .08); }
.pm-cart-button__count { min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 1rem; display: grid; place-items: center;
                         background: var(--pmc-yellow); color: var(--pmc-ink); font-size: .75rem; font-weight: 700; box-sizing: border-box; }
.pm-cart-button__count[hidden] { display: none; }
@media (max-width: 480px) { .pm-cart-button__label { display: none; } .pm-cart-button { padding: .45rem .6rem; } }
/* The account link, before the cart button; and the account step of the drawer */
.pm-account-link { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: 999px;
  color: inherit; text-decoration: none; font-weight: 550; }
.pm-account-link:hover { background: rgba(17, 19, 24, .06); }
@media (max-width: 640px) { .pm-account-link__label { display: none; } }
.pm-field__hint--to { margin: 0; padding: .6rem .8rem; border-radius: 10px; background: var(--pmc-soft); overflow-wrap: anywhere; }
.pm-foot-second { margin-top: .5rem; }
.pm-billing { display: grid; gap: .8rem; }
.pm-done .pm-done__icon--account { background: var(--pmc-soft); color: var(--pmc-blue); }

/* The drawer */
html.pm-drawer-open { overflow: hidden; }
.pm-drawer { position: fixed; inset: 0; z-index: 1000; color: var(--pmc-ink); }
.pm-drawer[hidden] { display: none; }
.pm-drawer [hidden] { display: none !important; }
.pm-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 18, .45); opacity: 0; transition: opacity .2s; }
.pm-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(42rem, 100vw); display: flex; flex-direction: column;
                    background: #fff; box-shadow: -12px 0 40px rgba(10, 12, 18, .18); transform: translateX(100%);
                    transition: transform .22s ease-out; outline: none; }
.pm-drawer.is-open .pm-drawer__backdrop { opacity: 1; }
.pm-drawer.is-open .pm-drawer__panel { transform: none; }
.pm-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem;
                   border-bottom: 1px solid var(--pmc-line); }
.pm-drawer__head h2 { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; letter-spacing: -.01em; }
.pm-drawer__count { font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 1rem; background: var(--pmc-soft); color: var(--pmc-muted); }
.pm-drawer__close, .pm-drawer__back { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%;
                                      background: transparent; color: var(--pmc-ink); cursor: pointer; }
.pm-drawer__close:hover, .pm-drawer__back:hover { background: var(--pmc-soft); }
.pm-drawer__close .pm-icon, .pm-drawer__back .pm-icon { width: 1.25rem; height: 1.25rem; }
.pm-drawer__back { margin-left: -.6rem; }
.pm-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.5rem; overscroll-behavior: contain; }
.pm-drawer__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--pmc-line); background: #fff; }
.pm-drawer__foot:empty { display: none; }
.pm-drawer__panel.is-busy .pm-lines, .pm-drawer__panel.is-busy .pm-summary, .pm-drawer__panel.is-busy .pm-total-line b { opacity: .55; transition: opacity .2s; }

/* Buttons */
.pm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 2rem;
          border: 1px solid transparent; font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
          transition: filter .15s, background .15s, border-color .15s, transform .1s; }
.pm-btn:active:not(:disabled) { transform: scale(.99); }
/* The main action in the site's blue (spec 080), the yellow of the first look retired */
.pm-btn--primary { background: linear-gradient(180deg, #2b7de9, #1a66d2); color: #fff; box-shadow: 0 4px 14px rgba(26, 115, 232, .28); }
.pm-btn--primary:hover:not(:disabled) { background: linear-gradient(180deg, #1f6fdc, #1557b8); box-shadow: 0 6px 18px rgba(26, 115, 232, .36); }
.pm-btn--dark { background: var(--pmc-ink); color: #fff; }
.pm-btn--dark:hover:not(:disabled) { filter: brightness(1.25); }
.pm-btn--ghost { background: #fff; color: var(--pmc-ink); border-color: var(--pmc-line); }
.pm-btn--ghost:hover:not(:disabled) { border-color: #cfd3de; }
.pm-btn--block { width: 100%; }
.pm-btn:disabled { opacity: .45; cursor: default; }
.pm-btn .pm-icon { width: 1.2rem; height: 1.2rem; }

/* An empty cart */
.pm-empty { text-align: center; padding: 3rem 1rem; color: var(--pmc-muted); }
.pm-empty__icon { width: 3.5rem; height: 3.5rem; padding: .9rem; border-radius: 50%; background: var(--pmc-soft); color: #9aa0ab; margin-bottom: .5rem; }
.pm-empty b { color: var(--pmc-ink); font-size: 1.05rem; }
.pm-empty .pm-btn { margin-top: 1rem; }

/* The tyres */
.pm-lines { list-style: none; margin: 0; padding: 0; }
.pm-line { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--pmc-line); }
.pm-line:first-child { padding-top: .2rem; }
.pm-line.is-off .pm-line__photo, .pm-line.is-off .pm-line__model, .pm-line.is-off .pm-line__price { opacity: .45; }
.pm-line__photo { width: 4.5rem; height: 4.5rem; border-radius: 10px; background: var(--pmc-soft); display: grid; place-items: center; overflow: hidden; }
.pm-line__photo img { max-width: 90%; max-height: 90%; object-fit: contain; mix-blend-mode: multiply; }
.pm-line__brand { font-size: .85rem; font-weight: 600; color: var(--pmc-muted); }
.pm-line__model { font-weight: 650; line-height: 1.25; }
.pm-line__size { font-family: var(--pm-font-sidewall, inherit); font-size: .95rem; font-weight: 600; letter-spacing: .03em;
                 color: var(--pmc-ink, inherit); font-variant-numeric: tabular-nums; }
.pm-line__warn { display: flex; gap: .35rem; align-items: flex-start; margin: .35rem 0 0; font-size: .8rem; color: #b3261e; }
.pm-line__warn .pm-icon { margin-top: .1rem; }
.pm-line__row { display: flex; align-items: center; gap: .6rem; margin-top: .55rem; }
.pm-line__price { text-align: right; display: flex; flex-direction: column; gap: .1rem; }
.pm-line__price b { font-variant-numeric: tabular-nums; }
.pm-line__price small { font-size: .74rem; color: var(--pmc-muted); white-space: nowrap; }
.pm-line__remove { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent;
                   color: var(--pmc-muted); cursor: pointer; }
.pm-line__remove:hover { background: #fdecea; color: #b3261e; }

.pm-stepper { display: inline-flex; align-items: center; border: 1px solid var(--pmc-line); border-radius: 2rem; overflow: hidden; background: #fff; }
.pm-stepper button { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--pmc-ink); cursor: pointer; }
.pm-stepper button:hover:not(:disabled) { background: var(--pmc-soft); }
.pm-stepper button:disabled { opacity: .35; cursor: default; }
.pm-stepper span, .pm-stepper input { min-width: 1.8rem; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }

/* The way to receive, the options */
.pm-section { border: 0; margin: 1.3rem 0 0; padding: 0; min-width: 0; }
.pm-section legend { padding: 0; margin-bottom: .6rem; font-weight: 650; font-size: .95rem; }
.pm-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pm-choice { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: .85rem; border: 1.5px solid var(--pmc-line);
             border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.pm-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pm-choice b { display: block; font-size: .92rem; }
.pm-choice small { display: block; font-size: .76rem; color: var(--pmc-muted); line-height: 1.35; margin-top: .1rem; }
.pm-choice__icon { width: 1.6rem; height: 1.6rem; color: var(--pmc-muted); }
.pm-choice:hover:not(.is-disabled) { border-color: #cfd3de; }
.pm-choice.is-checked { border-color: var(--pmc-blue); background: rgba(26, 115, 232, .04); }
.pm-choice.is-checked .pm-choice__icon { color: var(--pmc-blue); }
.pm-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(26, 115, 232, .25); }
.pm-choice.is-disabled { cursor: default; opacity: .55; }
/* The third way, a garage near the visitor (portal spec 120): across the two columns */
.pm-choices .pm-choice:nth-child(3) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .75rem; }
.pm-link { border: 0; background: none; padding: 0; color: var(--pmc-blue); font: inherit; font-size: .88rem; font-weight: 600;
           cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.pm-link:hover { text-decoration: underline; }
.pm-link .pm-icon { width: 1.05rem; height: 1.05rem; }
.pm-garage-search { display: flex; gap: .5rem; }
.pm-garage-search input { flex: 1; min-width: 0; padding: .65rem .8rem; border: 1.5px solid var(--pmc-line); border-radius: 10px; font: inherit; }
.pm-garage-search input:focus { outline: none; border-color: var(--pmc-blue); box-shadow: 0 0 0 3px rgba(26, 115, 232, .18); }
.pm-garage-here { margin-top: .55rem; }
.pm-garages { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; max-height: 22rem; overflow-y: auto; }
.pm-garage { position: relative; display: grid; gap: .15rem; width: 100%; text-align: left; padding: .7rem .85rem .7rem .85rem;
             border: 1.5px solid var(--pmc-line); border-radius: 12px; background: #fff; font: inherit; color: inherit; cursor: pointer;
             transition: border-color .15s, background .15s; }
.pm-garage:hover { border-color: var(--pmc-blue); background: rgba(26, 115, 232, .03); }
.pm-garage b { font-size: .93rem; padding-right: 3.5rem; }
.pm-garage span { font-size: .84rem; color: var(--pmc-ink); }
.pm-garage small { font-size: .76rem; color: var(--pmc-muted); }
.pm-garage__km { position: absolute; top: .7rem; right: .85rem; font-size: .78rem !important; font-weight: 700; color: var(--pmc-blue) !important; }
.pm-garage__price { color: #137333 !important; font-weight: 600; }
.pm-garage__mobile { display: inline-block; margin-left: .3rem; padding: .05rem .4rem; border-radius: 2rem; background: var(--pmc-soft); font-weight: 600; }
.pm-garage--chosen { display: flex; align-items: flex-start; gap: .65rem; cursor: default; border-color: var(--pmc-blue);
                     background: rgba(26, 115, 232, .04); }
.pm-garage--chosen > div { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.pm-garage__check { width: 1.3rem; height: 1.3rem; color: var(--pmc-blue); flex: none; margin-top: .1rem; }
.pm-section .pm-garage-test { margin: .7rem 0 0; }
.pm-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .7rem .2rem;
             border-bottom: 1px solid var(--pmc-line); cursor: pointer; font-size: .92rem; }
.pm-option:last-child { border-bottom: 0; }
.pm-option input { width: 1.1rem; height: 1.1rem; accent-color: var(--pmc-blue); }
.pm-option small { color: var(--pmc-muted); white-space: nowrap; }

.pm-summary { margin: 1.3rem 0 0; padding: .9rem 1rem; border-radius: 12px; background: var(--pmc-soft); font-size: .9rem; }
.pm-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.pm-summary dt { color: #4a4f57; }
.pm-summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.pm-total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .8rem; }
.pm-total-line span { font-weight: 650; }
.pm-total-line small { display: block; font-weight: 400; font-size: .76rem; color: var(--pmc-muted); }
.pm-total-line b { font-size: 1.5rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pm-foot-note { margin: .6rem 0 0; text-align: center; font-size: .78rem; color: var(--pmc-muted); }
.pm-alert { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 1rem; padding: .75rem .9rem; border-radius: 10px;
            background: #fdecea; color: #8c1d18; font-size: .88rem; }
.pm-alert .pm-icon { margin-top: .12rem; }

/* The details */
.pm-form { display: grid; gap: .8rem; }
.pm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pm-form__row--postcode { grid-template-columns: 7rem 1fr; }
.pm-field { display: grid; gap: .3rem; font-size: .82rem; color: #3c4043; }
.pm-field span { font-weight: 550; }
.pm-field input, .pm-field select, .pm-field textarea { width: 100%; box-sizing: border-box; padding: .7rem .8rem; border: 1px solid #d5d9e2;
  border-radius: 10px; font: inherit; font-size: 1rem; color: var(--pmc-ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.pm-field input:focus, .pm-field select:focus, .pm-field textarea:focus { outline: none; border-color: var(--pmc-blue); box-shadow: 0 0 0 3px rgba(26, 115, 232, .14); }
.pm-field textarea { resize: vertical; min-height: 4.5rem; }
.pm-field__hint { margin: -.4rem 0 0; font-size: .78rem; color: var(--pmc-muted); }
.pm-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; line-height: 1.45; color: #3c4043; cursor: pointer; }
.pm-consent input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--pmc-blue); flex: none; }
.pm-consent a { color: var(--pmc-blue); }
.pm-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The quote established */
.pm-done { text-align: center; padding: 2rem .5rem 1rem; }
.pm-done__icon { width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
                 background: #e6f4ea; color: #137333; animation: pm-pop .35s ease-out; }
.pm-done__icon .pm-icon { width: 2rem; height: 2rem; stroke-width: 2.4; }
@keyframes pm-pop { from { transform: scale(.6); opacity: 0; } }
.pm-done h3 { margin: 0 0 .4rem; font-size: 1.3rem; letter-spacing: -.01em; }
.pm-done__total { font-weight: 650; }
.pm-done p { color: #4a4f57; }
.pm-done .pm-btn { margin-top: 1rem; }

@media (max-width: 480px) {
  .pm-choices, .pm-form__row { grid-template-columns: 1fr; }
  .pm-form__row--postcode { grid-template-columns: 6rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-drawer__panel, .pm-drawer__backdrop, .pm-done__icon { transition: none; animation: none; }
}

/* THE GARAGES' MAP (owner, 2026-11-05: « une carte révolutionnaire »): numbered pins as in the
   list, ours a yellow star, the visitor a pulsing dot; the tiles softened to let the pins speak */
.pm-garage-map { position: relative; height: 15.5rem; margin-top: .8rem; border-radius: 16px; overflow: hidden;
                 border: 1px solid var(--pmc-line); box-shadow: 0 6px 22px rgba(16, 24, 40, .1); background: #eef2f6; z-index: 0; }
.pm-garage-map--chosen { height: 15rem; }
.pm-garage__route { color: #138a43 !important; font-weight: 700; }
.pm-garage__gmaps { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .8rem; font-weight: 700; justify-self: start; }
.pm-garage__gmaps svg { width: 15px; height: 15px; }
.pm-route-tip { background: #fff; border: 0; border-radius: 999px; padding: .28rem .7rem; font-family: inherit; font-weight: 700; font-size: .76rem; line-height: 1.2; color: #0f6b35;
                box-shadow: 0 4px 14px rgba(16, 24, 40, .22); white-space: nowrap; }
.pm-garage-map .leaflet-top.leaflet-left .pm-route-tip { margin: 10px 0 0 10px; }
.pm-garage-map .leaflet-tile-pane { filter: saturate(.62) brightness(1.04) contrast(.96); }
.pm-garage-map .leaflet-control-attribution { font-size: .62rem; background: rgba(255, 255, 255, .78); border-top-left-radius: 8px; }
.pm-garage-map .leaflet-control-zoom a { border-radius: 10px !important; width: 30px; height: 30px; line-height: 30px; }
.pm-garage-map .leaflet-bar { border: 0; box-shadow: 0 2px 10px rgba(16, 24, 40, .18); border-radius: 10px; }
.pm-pin-wrap { background: none; border: 0; }
.pm-pin { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 4px;
          transform: rotate(-45deg); background: linear-gradient(135deg, #4a90f7, #1a5fd0); border: 2px solid #fff;
          box-shadow: 0 4px 10px rgba(26, 95, 208, .38); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.pm-pin span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: .7rem; line-height: 1; }
.pm-pin--ours { background: linear-gradient(135deg, #ffd34d, #f5a400); box-shadow: 0 4px 10px rgba(245, 164, 0, .45); }
.pm-pin--ours span { color: #3b2a00; font-size: .8rem; }
.pm-pin--chosen { background: linear-gradient(135deg, #34c26a, #138a43); box-shadow: 0 4px 10px rgba(19, 138, 67, .4); }
/* The card over a pin under the hand: white, a blue edge, the road in green */
.leaflet-tooltip.pm-hover-card { display: grid; gap: .12rem; padding: .5rem .75rem .5rem .7rem; border: 0; border-left: 3px solid #1a5fd0;
                                 border-radius: 12px; background: #fff; color: var(--pmc-ink); font-family: inherit; white-space: nowrap;
                                 box-shadow: 0 10px 26px rgba(16, 24, 40, .2), 0 1px 3px rgba(16, 24, 40, .08); }
.leaflet-tooltip.pm-hover-card::before { border-top-color: #fff; }
.pm-hover-card b { font-size: .84rem; font-weight: 800; }
.pm-hover-card span { font-size: .74rem; color: var(--pmc-muted); }
.pm-hover-card span.is-road { color: #138a43; font-weight: 700; }
.pm-pin-wrap.is-lifted .pm-pin, .pm-pin-wrap:hover .pm-pin { transform: rotate(-45deg) scale(1.22) translate(2px, -2px); }
.pm-me-wrap { background: none; border: 0; }
.pm-me { position: absolute; inset: 5px; border-radius: 50%; background: #1a73e8; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(26, 115, 232, .4); }
.pm-me::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: rgba(26, 115, 232, .28);
                 animation: pm-me-pulse 2s ease-out infinite; }
@keyframes pm-me-pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pm-me::before { animation: none; } .pm-pin { transition: none; } }
.pm-popup-wrap .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 10px 28px rgba(16, 24, 40, .22); }
.pm-popup-wrap .leaflet-popup-content { margin: .8rem .9rem; }
.pm-popup { display: grid; gap: .2rem; font-family: inherit; }
.pm-popup b { font-size: .92rem; color: var(--pmc-ink); }
.pm-popup span { font-size: .8rem; color: var(--pmc-ink); }
.pm-popup small { font-size: .74rem; color: var(--pmc-muted); }
.pm-popup__pick { margin-top: .45rem; padding: .45rem .8rem !important; font-size: .82rem !important; }
/* The list rows numbered as their pins */
.pm-garage { padding-left: 2.9rem !important; }
.pm-garage__n { position: absolute; left: .8rem; top: .75rem; display: grid; place-items: center; width: 1.55rem; height: 1.55rem;
                border-radius: 50%; background: #1a5fd0; color: #fff !important; font-size: .74rem !important; font-weight: 800; }
.pm-garage--ours .pm-garage__n { background: #f5a400; color: #3b2a00 !important; }
.pm-garage--ours { border-color: #f5c242; background: #fffbef; }
.pm-garage--chosen { padding-left: .85rem !important; }
