/* Update 74: My Garage alerts (switches, followed dealers, notices) and the "Follow dealer" button on dealer showrooms and
   dealer adverts. Brand teal only. Sits on garage.css (My Garage), search.css + showroom.css (showroom) and
   vehicle.css (advert); the cards reuse .motorit-garage-alert-grid from garage.css. */

/* ---- My Garage: Garage alerts section ---- */
.motorit-garage-alerts { scroll-margin-top: 90px; }
.motorit-garage-alerts-pill { background: #e3f4f8; color: #045f77; }
.motorit-garage-alerts-flash, .motorit-garage-alerts-note { margin: 16px 18px 0; padding: 12px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.motorit-garage-alerts-flash { border: 1px solid #b9e2ec; background: #eef9fc; color: #045f77; }
.motorit-garage-alerts-note { border: 1px solid #dbe7ef; background: #f5f9fe; color: #2c4255; }
.motorit-garage-alerts-note a { color: #067b9d; font-weight: 900; }
.motorit-garage-alerts-form { margin: 0; }
.motorit-garage-alert-grid > .motorit-garage-alert-card { display: flex; flex-direction: column; transition: border-color .18s, background .18s, box-shadow .18s; }
.motorit-garage-alert-grid > .motorit-garage-alert-card.is-on { border-color: #9fd6e3; background: #f3fbfd; box-shadow: inset 0 0 0 1px rgba(5, 151, 177, .12); }
.motorit-garage-alert-grid > .motorit-garage-alert-card.is-on > span { background: var(--motorit-garage-primary, #0597b1); color: #fff; }
.motorit-garage-alert-card small { display: block; margin-top: 8px; color: var(--motorit-garage-muted, #65758a); font-size: 12px; line-height: 1.5; }

/* Switch: a real checkbox (keyboard + screen readers), drawn as a teal toggle. */
.motorit-garage-switch { position: relative; display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; cursor: pointer; font-size: 13px; font-weight: 900; color: var(--motorit-garage-text, #102033); }
.motorit-garage-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.motorit-garage-switch__track { position: relative; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px; background: #cbdbe6; transition: background .18s; }
.motorit-garage-switch__track i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 32, 51, .25); transition: transform .18s; }
.motorit-garage-switch input:checked + .motorit-garage-switch__track { background: var(--motorit-garage-primary, #0597b1); }
.motorit-garage-switch input:checked + .motorit-garage-switch__track i { transform: translateX(18px); }
.motorit-garage-switch input:focus-visible + .motorit-garage-switch__track { outline: 3px solid rgba(5, 151, 177, .35); outline-offset: 2px; }

.motorit-garage-alerts-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 18px; padding: 4px 0 2px; }
.motorit-garage-alerts-foot p { margin: 0; color: var(--motorit-garage-muted, #65758a); font-size: 13px; line-height: 1.5; }
.motorit-garage-alerts-save { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--motorit-garage-primary, #0597b1); color: #fff !important; font: inherit; font-weight: 900; text-decoration: none !important; cursor: pointer; }
.motorit-garage-alerts-save:hover { background: var(--motorit-garage-dark, #047b91); }

.motorit-garage-follows { margin: 18px 18px 0; padding: 18px; border: 1px solid #e2edf7; border-radius: 18px; background: #fbfdfe; }
.motorit-garage-follows h3 { margin: 0 0 10px; font-size: 16px; font-weight: 900; }
.motorit-garage-follows-empty { margin: 0; color: var(--motorit-garage-muted, #65758a); font-size: 13px; line-height: 1.55; }
.motorit-garage-follows-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.motorit-garage-follows-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e2edf7; border-radius: 14px; background: #fff; }
.motorit-garage-follows-logo { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: #e3f4f8; color: #045f77; font-weight: 900; }
.motorit-garage-follows-id { flex: 1 1 auto; min-width: 0; }
.motorit-garage-follows-id a { display: block; overflow: hidden; color: var(--motorit-garage-text, #102033) !important; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; text-decoration: none !important; }
.motorit-garage-follows-id a:hover { color: var(--motorit-garage-primary, #0597b1) !important; }
.motorit-garage-follows-id small { display: block; color: var(--motorit-garage-muted, #65758a); font-size: 12px; }
.motorit-garage-follows-list form { margin: 0; }
.motorit-garage-follows-unfollow { min-height: 38px; padding: 0 14px; border: 1px solid #cfe1ec; border-radius: 11px; background: #fff; color: var(--motorit-garage-dark, #047b91); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.motorit-garage-follows-unfollow:hover { border-color: var(--motorit-garage-primary, #0597b1); background: #f0f7fd; }

@media (max-width: 760px) {
  .motorit-garage-alerts-foot { flex-direction: column; align-items: stretch; }
  .motorit-garage-alerts-save { width: 100%; }
}

/* ---- Follow dealer button (showroom + dealer adverts) ---- */
.motorit-follow-dealer-form { margin: 0; }
.motorit-follow-dealer-form .motorit-follow-dealer { width: 100%; }
.motorit-follow-dealer { gap: 8px; font-family: inherit; cursor: pointer; }
.motorit-follow-dealer svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.motorit-follow-dealer.is-on svg { fill: currentColor; }
.motorit-follow-dealer.is-on { border-color: #0597b1 !important; background: #e3f4f8 !important; color: #045f77 !important; }
.motorit-follow-dealer__flash { margin: 4px 0 0; padding: 10px 12px; border: 1px solid #b9e2ec; border-radius: 12px; background: #eef9fc; color: #045f77; font-size: 13px; font-weight: 700; line-height: 1.45; }
