/* Само за статичната версия: зареждане, грешка, скрито поле. Визията е в theme-avtoservis.css. */
.boot-status {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem; max-width: calc(100vw - 24px);
  background: #1C1F23; color: #F3F1EE; font: 600 .95rem/1.2 "IBM Plex Sans", system-ui, sans-serif;
  padding: .6rem 1rem; border-radius: 4px; border: 1px solid #2C3138; box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.boot-status[hidden], .boot-error[hidden] { display: none; }
.boot-spin {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2.5px solid #3A3F46; border-top-color: #FF8A1F; animation: boot-spin .8s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-spin { animation: none; border-top-color: #3A3F46; } }

.boot-error {
  position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 70; margin: 0 auto; max-width: 440px;
  background: #1C1F23; color: #F3F1EE; border: 1px solid #FF8A1F; border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); padding: 1rem 1.1rem;
  font: 400 1rem/1.45 "IBM Plex Sans", system-ui, sans-serif;
}
.boot-error p { margin: 0 0 .75rem; }
.boot-retry {
  min-height: 48px; padding: .7rem 1.4rem; border: 0; border-radius: 4px; cursor: pointer;
  background: #FF8A1F; color: #161616; font: 700 1rem "IBM Plex Sans", system-ui, sans-serif;
}
.boot-retry:focus-visible { outline: 3px solid #FF8A1F; outline-offset: 3px; }

.price-card.skel .pc-icon { background: #2A2E33; }
.price-card.skel h3, .price-card.skel .meta { background: #2A2E33; border-radius: 2px; color: transparent; width: 60%; }
.price-card.skel .meta { width: 35%; }
body.is-loading #hero-title:empty::before { content: "\00a0"; display: inline-block; width: 7ch; border-radius: 2px; background: rgba(255,255,255,.12); }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.noscript { margin: 1rem; padding: 1rem; background: #1C1F23; color: #F3F1EE; border-radius: 6px; }

/* ----- „Отказ на час“ (код + телефон) ----- */
.garage .cancel-card { max-width: 640px; }
.cancel-form { display: grid; gap: .8rem; margin-top: .9rem; }
@media (min-width: 720px) { .cancel-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.cancel-form label { display: grid; gap: .35rem; font: 600 .92rem/1.3 "IBM Plex Sans", system-ui, sans-serif; color: var(--garage-ink, #F3F1EE); }
.cancel-form input {
  min-height: 48px; width: 100%; box-sizing: border-box; padding: .6rem .8rem; border-radius: 4px;
  border: 1px solid #3A3F46; background: #121417; color: #F3F1EE; font: 400 1rem "IBM Plex Sans", system-ui, sans-serif;
}
.cancel-form input[name=code] { text-transform: uppercase; letter-spacing: .12em; }
.cancel-form input[name=code]:placeholder-shown { text-transform: none; letter-spacing: normal; }
.cancel-form input:focus-visible { outline: 3px solid #FF8A1F; outline-offset: 1px; border-color: #FF8A1F; }
.cancel-btn {
  min-height: 48px; padding: .7rem 1.3rem; border: 1px solid #FF8A1F; border-radius: 4px; cursor: pointer;
  background: transparent; color: #FF8A1F; font: 700 1rem "IBM Plex Sans", system-ui, sans-serif;
}
.cancel-btn:hover { background: rgba(255,138,31,.12); }
.cancel-btn:disabled { opacity: .6; cursor: progress; }
.cancel-btn:focus-visible { outline: 3px solid #FF8A1F; outline-offset: 3px; }
.garage .info-card .cancel-result { margin: .9rem 0 0; padding: .75rem .9rem; border-radius: 4px; white-space: pre-line; color: #F3F1EE; }
.cancel-result[hidden] { display: none; }
.cancel-result.is-ok { background: rgba(46,160,90,.16); border: 1px solid #2EA05A; }
.cancel-result.is-err { background: rgba(255,138,31,.10); border: 1px solid #FF8A1F; }

/* Без адрес на API (празен API_URL): няма какво да се отказва, а сивите карти не „висят“. */
body.api-off #otkaz, body.api-off #uslugi .price-card.skel { display: none; }
