/* ttf-brand-layer 1.0.1: mu-plugins/ttf-nav/assets/garage.css */
/*
 * TTF Nav: "My garage" (owner, 2026-10-06): the header buttons, the panel and My Account › My garage
 * (ttf-nav/garage.php prints them, assets/garage.js fills them in). Look 1 of the picker: white, thin lines, the shop's
 * red for actions. Desktop: "My garage / Add your car" beside "My Account", a round car icon with the saved cars'
 * count; the panel drops down under it. Below 1200 px (the theme's phone header): a car icon before the cart, and the
 * panel rises as a sheet from the bottom over a shade. Class prefix ttf-garage.
 * My Account › My garage (owner, 2026-10-26; docs/superpowers/specs/2026-10-26-my-account-revamp-design.md): the cars
 * as cards, two a row from 768 px, "Add a car" as a dashed tile that opens the steps in a card; in the panel and on the
 * page every step shows its label above a select of one width (three a row on the page's desktop, one column below
 * 768 px, 48 px tall there: the page is zoomed to 95 % on phones).
 */

/* ---- The header buttons: the theme's quick buttons, as <button>s (the theme fills every button). ---- */
.ttf-garage-button .ttf-garage-open {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: none;
    box-shadow: none;
    color: var(--color-text-primary, #212529);
    font-family: inherit;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}
.ttf-garage-button .ttf-garage-open:hover,
.ttf-garage-button .ttf-garage-open:focus { background: none; color: var(--color-text-primary, #212529); }
.ttf-garage-button .ttf-garage-open:focus-visible { outline: 2px solid #D92400; outline-offset: 3px; }
.ttf-garage-button--desktop { margin-right: 1.5rem; }
.ttf-garage-icon {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F3F5;
    color: #212529;
}
.ttf-garage-icon .ttf-garage-car { width: 20px; height: 20px; }
.ttf-garage-open--car .ttf-garage-icon { background: #FFF1EC; color: #D92400; }
.ttf-garage-open[aria-expanded="true"] .ttf-garage-icon { box-shadow: 0 0 0 2px #D92400; }
.ttf-garage-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #D92400;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.ttf-garage-badge[hidden] { display: none; }
.ttf-garage-text { display: inline-flex; flex-direction: column; white-space: nowrap; }
.ttf-garage-name { font-size: .9375rem; font-weight: 700; }
.ttf-garage-sub { font-size: .75rem; font-weight: 400; color: #6C757D; }
.ttf-garage-button--phone { margin-right: .75rem; }

/*
 * The phone header's car button (below 1200 px) is one of the header's icons (owner, 3 Nov 2026: "these two icons
 * should be more fluent instead of two different types"; docs/superpowers/specs/2026-11-03-phone-car-icon-design.md):
 * in the cart's box (the theme's quick icon), no disc in any state, the cart's colour, the car drawn as large as the
 * cart and as fine; its badge in the cart badge's place and look, "+" on the cart's red while no car is chosen and
 * "✓" on the fit box's green while one is (garage.js). While the panel is open the car turns the shop's red.
 */
.ttf-garage-button--phone .ttf-garage-open .ttf-garage-icon {
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #212529;
}
.ttf-garage-button--phone .ttf-garage-open[aria-expanded="true"] .ttf-garage-icon { box-shadow: none; color: #D92400; }
.ttf-garage-button--phone .ttf-garage-icon .ttf-garage-car { width: 28px; height: 28px; stroke-width: 1.75; }
.ttf-garage-button--phone .ttf-garage-badge {
    top: 4px;
    right: 0;
    width: 16px;
    min-width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 50%;
    background: #FF2A00;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
}
.ttf-garage-button--phone .ttf-garage-badge--car { background: #198754; font-size: 10px; }

/*
 * Phones (below 768 px) have no car row (owner, 3 Nov: "on mobile the 'choose your car' should be only located on the
 * car icon beside the shopping cart"): the car is chosen, changed and cleared behind the car icon, whose panel takes the
 * row's steps (garage.js). The rule lives here, not in picker.css, so that with the garage switched off
 * (ttf_garage_enabled 0: no icon, no panel, no garage.css) phones keep the row.
 */
@media (max-width: 767.98px) {
    .ttf-picker { display: none; }
}

/* ---- The panel ---- */
.ttf-garage[hidden] { display: none !important; }
.ttf-garage {
    position: absolute;
    z-index: 10000;
    width: 360px;
    max-width: calc(100vw - 16px);
    color: var(--color-text-primary, #212529);
    font-family: 'Manrope', sans-serif;
    font-size: .875rem;
    line-height: 1.4;
    outline: none;
}
.ttf-garage__panel {
    box-sizing: border-box;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid #DEE2E6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}
.ttf-garage__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.ttf-garage .ttf-garage__title {
    --ttf-h2: 1rem; /* ttf-page-zoom.php sizes every h2 through this property, with !important */
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: normal;
    line-height: 1.3;
    text-transform: none;
}
.ttf-garage .ttf-garage__close,
.ttf-garage-page .ttf-garage__remove,
.ttf-garage .ttf-garage__remove {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    box-shadow: none;
    color: #ADB5BD;
    cursor: pointer;
}
.ttf-garage .ttf-garage__close::before,
.ttf-garage .ttf-garage__remove::before,
.ttf-garage-page .ttf-garage__remove:not(.ttf-garage__remove--text)::before { content: '\2715'; font-size: .9rem; line-height: 1; }
.ttf-garage .ttf-garage__close:hover,
.ttf-garage .ttf-garage__remove:hover { background: #F1F3F5; color: #495057; }
.ttf-garage__label {
    margin: .25rem 0 .4rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #868E96;
}
.ttf-garage__active { margin-bottom: .75rem; }
.ttf-garage__card { padding: .65rem .75rem; border: 1.5px solid #212529; border-radius: 10px; }
.ttf-garage__name { font-size: .9375rem; font-weight: 800; }
.ttf-garage__meta { color: #868E96; }
.ttf-garage__none { margin: 0 0 .75rem; color: #6C757D; }
.ttf-garage__row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.ttf-garage__btn,
.ttf-garage .ttf-garage__btn {
    display: inline-flex;
    align-items: center;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: #D92400;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.ttf-garage__shop::after { content: '\00a0\2192'; }
.ttf-garage .ttf-garage__btn:hover { background: #B81E00; color: #fff; }
.ttf-garage .ttf-garage__ghost,
.ttf-garage-page .ttf-garage__ghost {
    display: inline-flex;
    align-items: center;
    height: auto;
    margin: 0;
    padding: .3rem .8rem;
    border: 1.5px solid #CED4DA;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
    color: #212529;
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.ttf-garage .ttf-garage__ghost:hover,
.ttf-garage-page .ttf-garage__ghost:hover { border-color: #212529; background: #fff; color: #212529; }
.ttf-garage__list { margin: 0 0 .25rem; padding: 0; list-style: none; }
.ttf-garage__car { display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; border-radius: 8px; }
.ttf-garage__car:hover { background: #F8F9FA; }
.ttf-garage__car-name { flex: 1 1 auto; min-width: 0; }
.ttf-garage__car-name strong { display: block; font-weight: 700; }
.ttf-garage__car-name small { display: block; color: #868E96; font-size: .8125rem; }
.ttf-garage__in-use {
    padding: .15rem .55rem;
    border-radius: 999px;
    background: #FFF1EC;
    color: #B81E00;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}
.ttf-garage__msg { margin: .25rem 0 .5rem; color: #6C757D; }
.ttf-garage__msg--error { color: #B81E00; }
.ttf-garage__guest { margin-bottom: .5rem; padding: .7rem .8rem; border-radius: 10px; background: #F8F9FA; }
.ttf-garage__guest p { margin: 0; color: #495057; }
.ttf-garage .ttf-garage__add,
.ttf-garage .ttf-garage__change,
.ttf-garage-page .ttf-garage__add {
    display: block;
    width: 100%;
    height: auto;
    margin: .35rem 0 0;
    padding: .55rem .5rem;
    border: 0;
    border-top: 1px solid #E9ECEF;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #D92400;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.ttf-garage .ttf-garage__add::before,
.ttf-garage-page .ttf-garage__add::before { content: '+\00a0'; }
.ttf-garage .ttf-garage__add:hover,
.ttf-garage .ttf-garage__change:hover,
.ttf-garage-page .ttf-garage__add:hover { background: none; color: #B81E00; text-decoration: underline; text-underline-offset: 3px; }
.ttf-garage button:focus-visible,
.ttf-garage a:focus-visible,
.ttf-garage-page button:focus-visible { outline: 2px solid #D92400; outline-offset: 2px; }
.ttf-garage .ttf-garage__manage { display: block; padding: .35rem .5rem 0; color: #495057; font-weight: 600; text-decoration: none; }
.ttf-garage .ttf-garage__manage::after { content: '\00a0\2192'; }
.ttf-garage .ttf-garage__manage:hover { color: #D92400; }

/*
 * The panel since 15 Nov 2026 (owner: "very polluted"; the same for visitors and signed-in customers but for the foot's
 * right-hand link): the car in bold with its years, body style and engine under it, a small ✕ to stop using it, one
 * "Shop parts for this car" across; the saved cars; a foot with "Change car" on the left and "Manage garage" or
 * "Sign in to save" on the right. The head (title and close) is hidden while a car is in use, on every width: its
 * close would sit over the car's own close (a click or tap outside, or Escape, closes the panel).
 */
.ttf-garage--car .ttf-garage__head { display: none; }
.ttf-garage__card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.ttf-garage__card-name { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.ttf-garage__card .ttf-garage__name { font-size: .9375rem; font-weight: 800; }
.ttf-garage__years { color: #868E96; font-weight: 600; white-space: nowrap; }
.ttf-garage__sub { margin: .15rem 0 0; color: #6C757D; font-size: .8125rem; line-height: 1.35; }
.ttf-garage .ttf-garage__stop { width: 1.6rem; height: 1.6rem; margin: -.2rem -.35rem 0 0; }
.ttf-garage .ttf-garage__card .ttf-garage__shop {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: .7rem;
    padding: .55rem .9rem;
}
.ttf-garage__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .25rem;
    padding-top: .6rem;
    border-top: 1px solid #E9ECEF;
}
.ttf-garage__foot [hidden] { display: none !important; }
.ttf-garage .ttf-garage__foot .ttf-garage__add,
.ttf-garage .ttf-garage__foot .ttf-garage__change {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: .2rem 0;
    border: 0;
    font-size: .875rem;
}
.ttf-garage .ttf-garage__foot .ttf-garage__add::before { content: none; }
.ttf-garage .ttf-garage__foot .ttf-garage__manage {
    margin-left: auto;
    padding: .2rem 0;
    font-size: .8125rem;
    white-space: nowrap;
}

/*
 * The picker's steps inside the panel or the page (ttfPicker.openForm): each under its label (the bar keeps its labels
 * for screen readers only), one width. picker.css's widths for the engine step (:has() rules) out-rank a plain
 * selector here, and its label hiding carries !important: hence the two !important below.
 */
.ttf-garage__form[hidden] { display: none; }
.ttf-garage__form { padding: .25rem .5rem .5rem; }
.ttf-garage__form .ttf-picker__form { flex-direction: column; align-items: stretch; gap: .75rem; }
.ttf-garage__form .ttf-picker__field { width: auto !important; max-width: none; }
.ttf-garage__form .ttf-picker__field label {
    position: static !important;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 .3rem;
    overflow: visible;
    clip: auto;
    color: #212529;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
}
.ttf-garage__form .ttf-picker__field select { height: 2.75rem; color: #212529; font-size: .9375rem; }
.ttf-garage__form .ttf-picker__field select:disabled { color: #ADB5BD; }
.ttf-garage__form .ttf-picker__actions { gap: 1rem; margin-top: .25rem; }
.ttf-garage__form .ttf-picker__save { height: 2.75rem; padding: 0 1.4rem; font-size: .9375rem; }

/* My Account › My garage: the cars as cards, the "Add a car" tile, the steps' card, the empty state, Undo. */
.ttf-garage-page { font-family: 'Manrope', sans-serif; font-size: .9375rem; }
.ttf-garage-page__intro { margin: -.5rem 0 1.25rem; color: #6C757D; }
.ttf-garage-page .ttf-garage__list--page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start; /* a card keeps its own height beside one with a photo */
    gap: .875rem;
    margin: 0;
}
.ttf-garage-page .ttf-garage__list--page[hidden] { display: none; }
.ttf-garage-page .ttf-garage__car {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon name badge" "acts acts acts";
    align-items: center;
    gap: .875rem;
    padding: 1rem 1.125rem;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    background: #fff;
}
.ttf-garage-page .ttf-garage__car:hover { background: #fff; }
.ttf-garage-page .ttf-garage__car--in-use { border-color: #D92400; box-shadow: inset 0 0 0 1px #D92400; }
.ttf-garage__car-icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #F1F3F5;
    color: #212529;
}
.ttf-garage__car--in-use .ttf-garage__car-icon { background: #FFF1EC; color: #D92400; }
.ttf-garage__car-icon svg { width: 22px; height: 22px; }
.ttf-garage-page .ttf-garage__car-name { grid-area: name; }
.ttf-garage-page .ttf-garage__car-name strong { font-size: 1rem; font-weight: 800; }
.ttf-garage-page .ttf-garage__in-use { grid-area: badge; }
.ttf-garage__car-acts { grid-area: acts; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ttf-garage-page .ttf-garage__btn,
.ttf-garage-page .ttf-garage__ghost {
    min-height: 2.5rem;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 700;
}
.ttf-garage-page .ttf-garage__btn { border: 1.5px solid #D92400; }
.ttf-garage-page .ttf-garage__btn:hover { border-color: #B81E00; background: #B81E00; color: #fff; }
.ttf-garage-page .ttf-garage__remove--text {
    margin-left: auto;
    width: auto;
    height: auto;
    padding: .3rem .4rem;
    border-radius: 4px;
    color: #6C757D;
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ttf-garage-page .ttf-garage__remove--text:hover { background: none; color: #B81E00; }
.ttf-garage-page .ttf-garage__add {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    margin: .875rem 0 0;
    padding: .75rem 1rem;
    border: 1.5px dashed #CED4DA;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}
.ttf-garage-page .ttf-garage__add:hover { border-color: #D92400; background: #FFF1EC; text-decoration: none; }
.ttf-garage-page .ttf-garage__add[hidden] { display: none; }
.ttf-garage-page .ttf-garage__form {
    margin-top: .875rem;
    padding: 1.25rem;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    background: #fff;
}
.ttf-garage-page .ttf-garage__form-title {
    --ttf-h2: 1.0625rem; /* ttf-page-zoom.php sizes every h2 through this property, with !important */
    margin: 0 0 1rem;
    color: #212529;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: normal;
    line-height: 1.3;
    text-transform: none;
}
.ttf-garage-page .ttf-garage__form .ttf-picker__form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
    align-items: end;
}
.ttf-garage-page .ttf-garage__form .ttf-picker__actions { grid-column: 1 / -1; }
.ttf-garage-page .ttf-garage__msg--empty {
    margin: 0;
    padding: 1.5rem 1.25rem;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    background: #F8F9FA;
    color: #495057;
    text-align: center;
}
.ttf-garage__undo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin: .875rem 0 0;
    padding: .625rem .75rem .625rem 1rem;
    border-radius: 10px;
    background: #212529;
    color: #fff;
    font-size: .875rem;
}
.ttf-garage__undo[hidden] { display: none; }
.ttf-garage-page .ttf-garage__undo-btn {
    height: auto;
    min-height: 2.25rem;
    margin: 0 0 0 auto;
    padding: .375rem .875rem;
    border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    background: none;
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}
.ttf-garage-page .ttf-garage__undo-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.ttf-garage-page .ttf-garage__undo-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/*
 * A photo of the car (garage-photos.php): on top of its card, 16:9, "Change photo" and "Remove photo" on it; without
 * one, "Add a photo" among the card's actions; in the panel's car card a 16:9 banner across the card (a small square
 * cut the car down to its middle: owner, 27 Oct; garage.js sets the same size inline for pages cached before).
 */
.ttf-garage-page .ttf-garage__car--photo {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "photo photo" "name badge" "acts acts";
}
.ttf-garage-page .ttf-garage__car--photo .ttf-garage__car-icon { display: none; }
.ttf-garage__car-photo {
    grid-area: photo;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #F1F3F5;
    overflow: hidden;
}
.ttf-garage__car-photo img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.ttf-garage__photo-acts { position: absolute; right: .5rem; bottom: .5rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .375rem; }
.ttf-garage-page .ttf-garage__photo-btn {
    height: auto;
    min-height: 2.25rem;
    margin: 0;
    padding: .375rem .75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    color: #212529;
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}
.ttf-garage-page .ttf-garage__photo-btn:hover { background: #fff; color: #212529; }
.ttf-garage-page .ttf-garage__photo-btn:focus-visible { outline: 2px solid #D92400; outline-offset: 2px; }
.ttf-garage-page .ttf-garage__photo-add::before { content: '+\00a0'; }
.ttf-garage-page .ttf-garage__photo-add:disabled,
.ttf-garage-page .ttf-garage__photo-btn:disabled { opacity: .6; cursor: progress; }
.ttf-garage__card-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 0 .6rem;
    border-radius: 8px;
    object-fit: cover;
}

/* Phones (below 768 px; the page is zoomed to 95 % there): one car a row, one step a row, 48 px to tap. */
@media (max-width: 767.98px) {
    .ttf-garage-page .ttf-garage__list--page { grid-template-columns: minmax(0, 1fr); }
    .ttf-garage-page .ttf-garage__car { padding: .875rem; }
    .ttf-garage-page .ttf-garage__btn,
    .ttf-garage-page .ttf-garage__ghost,
    .ttf-garage-page .ttf-garage__remove--text { min-height: 3rem; }
    .ttf-garage-page .ttf-garage__car-acts .ttf-garage__btn,
    .ttf-garage-page .ttf-garage__car-acts .ttf-garage__ghost { flex: 1 1 0; justify-content: center; }
    .ttf-garage-page .ttf-garage__form { padding: 1rem; }
    .ttf-garage-page .ttf-garage__form .ttf-picker__form { grid-template-columns: minmax(0, 1fr); }
    .ttf-garage__form .ttf-picker__field select,
    .ttf-garage__form .ttf-picker__save { height: 3rem; }
    .ttf-garage-page .ttf-garage__form .ttf-picker__save { flex: 1 1 auto; }
    .ttf-garage-page .ttf-garage__undo-btn { min-height: 3rem; }
    .ttf-garage-page .ttf-garage__photo-btn { min-height: 3rem; padding: .5rem .875rem; }
}

/*
 * Below 1200 px (the theme's phone header) the panel drops down from the header under the car icon (owner, 3 Nov 2026;
 * docs/superpowers/specs/2026-11-03-phone-car-icon-design.md; and 20 Oct: pickers on phones drop down under their
 * button, no sheet from the bottom). garage.js places it (ttf-garage--sheet): the shade from the header row's bottom
 * down, the panel 8 px under it, across the window less 8 px a side on phones, 380 px under the icon on tablets, a
 * caret on its top edge at the icon's centre (--ttf-garage-caret); its head stays and its body scrolls; the page
 * behind it stays put.
 */
@media (max-width: 1199.98px) {
    .ttf-garage {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100000;
        width: auto;
        max-width: none;
        background: rgba(33, 37, 41, .45);
    }
    .ttf-garage__panel {
        position: relative;
        display: flex;
        flex-direction: column;
        width: calc(100% - 16px);
        max-height: calc(100vh - 80px);
        margin: 8px 0 0 8px;
        overflow: visible;
        padding: 14px 16px 16px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
        animation: ttf-garage-drop .16s ease-out;
    }
    .ttf-garage__panel::before {
        content: '';
        position: absolute;
        top: -7px;
        left: calc(var(--ttf-garage-caret, 50%) - 6px);
        width: 12px;
        height: 12px;
        border-top: 1px solid #DEE2E6;
        border-left: 1px solid #DEE2E6;
        background: #fff;
        transform: rotate(45deg);
    }
    .ttf-garage__head { flex: none; }
    .ttf-garage__body {
        min-height: 0;
        margin: 0 -4px;
        padding: 0 4px 2px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    html.ttf-garage-lock,
    html.ttf-garage-lock body { overflow: hidden; }
}
@keyframes ttf-garage-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ttf-garage__panel { animation: none; }
}

/*
 * Below 1200 px, what the panel holds (garage.js, the same breakpoint): a visitor without a car reads "Choose your
 * car" and what for, then the steps, numbered, each under its label, "Show parts" across; "Change car" under a car's
 * card; the sign-in line last, small, grey, with two red links, no box (owner, 3 Nov: "we want to make easy for the car
 * selection while the user is not registered").
 */
.ttf-garage__lead { margin: -.15rem 0 .85rem; color: #6C757D; }
.ttf-garage .ttf-garage__add[hidden],
.ttf-garage .ttf-garage__change[hidden] { display: none; }
.ttf-garage--sheet .ttf-garage__form { padding: 0; }
.ttf-garage--sheet .ttf-garage__form .ttf-picker__form { counter-reset: ttf-step; gap: .7rem; }
.ttf-garage--sheet .ttf-garage__form .ttf-picker__field { counter-increment: ttf-step; }
.ttf-garage--sheet .ttf-garage__form .ttf-picker__field label { display: flex; align-items: center; gap: .45rem; }
.ttf-garage--sheet .ttf-garage__form .ttf-picker__field label::before {
    content: counter(ttf-step);
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: #F1F3F5;
    color: #212529;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
}
.ttf-garage--sheet .ttf-garage__form .ttf-picker__actions { display: flex; gap: .75rem; margin-top: .35rem; }
.ttf-garage--sheet .ttf-garage__form .ttf-picker__save { flex: 1 1 auto; text-align: center; }
.ttf-garage--sheet .ttf-garage__guest {
    margin: .9rem 0 0;
    padding: .8rem 0 0;
    border-top: 1px solid #E9ECEF;
    border-radius: 0;
    background: none;
    color: #6C757D;
    font-size: .8125rem;
}
.ttf-garage--sheet .ttf-garage__guest p,
.ttf-garage--sheet .ttf-garage__guest .ttf-garage__row { display: inline; margin: 0; }
.ttf-garage--sheet .ttf-garage__guest p { color: inherit; font-size: inherit; }
.ttf-garage--sheet .ttf-garage__guest .ttf-garage__btn,
.ttf-garage--sheet .ttf-garage__guest .ttf-garage__ghost {
    display: inline;
    padding: .35rem 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #D92400;
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.ttf-garage--sheet .ttf-garage__guest .ttf-garage__btn:hover,
.ttf-garage--sheet .ttf-garage__guest .ttf-garage__ghost:hover { border: 0; background: none; color: #B81E00; }
.ttf-garage--sheet .ttf-garage__guest .ttf-garage__signin { margin-left: .3rem; }
.ttf-garage--sheet .ttf-garage__guest .ttf-garage__register::before {
    content: '\00b7';
    display: inline-block;
    margin: 0 .45rem;
    color: #ADB5BD;
    text-decoration: none;
}

/*
 * The hint under the phone header's car icon (owner, 3 Nov: "we need a way to call attention of the user that the
 * 'car' icon is can be used"; garage.js decides when and places it): a dark bubble, its caret pointing up at the icon
 * (--ttf-hint-caret), its words a button that opens the panel, a ✕; the icon pulses twice while it shows.
 */
.ttf-garage-hint {
    position: fixed;
    z-index: 99990;
    display: flex;
    align-items: flex-start;
    gap: .25rem;
    box-sizing: border-box;
    width: 280px;
    padding: .6rem .45rem .65rem .8rem;
    border-radius: 10px;
    background: #212529;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: .875rem;
    line-height: 1.35;
    animation: ttf-garage-hint-in .2s ease-out;
}
.ttf-garage-hint::before {
    content: '';
    position: absolute;
    top: -5px;
    left: calc(var(--ttf-hint-caret, 50%) - 6px);
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #212529;
    transform: rotate(45deg);
}
.ttf-garage-hint .ttf-garage-hint__open {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}
.ttf-garage-hint .ttf-garage-hint__close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: -.3rem -.15rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    box-shadow: none;
    color: #ADB5BD;
    cursor: pointer;
}
.ttf-garage-hint .ttf-garage-hint__close::before { content: '\2715'; font-size: .8rem; line-height: 1; }
.ttf-garage-hint .ttf-garage-hint__close:hover { color: #fff; }
.ttf-garage-hint button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ttf-garage-open--pulse .ttf-garage-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    left: 2px;
    border-radius: 50%;
    pointer-events: none;
    animation: ttf-garage-pulse 1.2s ease-out 2;
}
@keyframes ttf-garage-pulse {
    from { box-shadow: 0 0 0 0 rgba(217, 36, 0, .5); }
    to { box-shadow: 0 0 0 14px rgba(217, 36, 0, 0); }
}
@keyframes ttf-garage-hint-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ttf-garage-hint,
    .ttf-garage-open--pulse .ttf-garage-icon::after { animation: none; }
}
