/* Social icons hidden; floating Carwise/shop controls + modals */
.header-actions-action--social,
.header-actions-action--social > a.header-icon,
.header-menu-actions-action--social,
.header-menu-actions-action--social > a.header-icon {
  display: none !important;
}

/* Floating estimate QR (top right) + Track / Chat (bottom right) */
.pc-float-top {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 99990;
  pointer-events: none;
}

.pc-float-top > * {
  pointer-events: auto;
}

.pc-float-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}

.pc-float-actions > * {
  pointer-events: auto;
}

.pc-float-btn {
  appearance: none;
  border: 2px solid #004b77;
  background: #fff;
  color: #004b77;
  font: 650 12px/1.2 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  height: 40px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pc-float-btn:hover,
.pc-float-btn:focus-visible {
  background: #004b77;
  color: #fff;
  outline: none;
}

.pc-float-btn--chat {
  background: #fff;
  color: #004b77;
  min-width: 4.5rem;
}

.pc-float-btn--chat:hover,
.pc-float-btn--chat:focus-visible {
  background: #004b77;
  color: #fff;
}

.pc-float-btn--chat[aria-expanded="true"] {
  background: #004b77;
  color: #fff;
  transform: translateY(1px);
}

.pc-float-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.4rem 0.3rem;
  background: #fff;
  border: 2px solid #004b77;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: #004b77;
  box-sizing: border-box;
}

.pc-float-qr img {
  display: block;
  width: 84px;
  height: 84px;
  background: #fff;
}

.pc-float-qr__label {
  font: 650 9px/1.2 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pc-float-qr:hover,
.pc-float-qr:focus-visible {
  outline: none;
  border-color: #003555;
}

@media (max-width: 720px) {
  .pc-float-top {
    top: 14px;
    right: 14px;
  }

  .pc-float-actions {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .pc-float-btn {
    font-size: 11px;
    padding: 0.45rem 0.6rem;
    height: 36px;
  }

  .pc-float-qr img {
    width: 72px;
    height: 72px;
  }
}

/* —— Status modal —— */
.pc-status-modal[hidden] {
  display: none !important;
}

.pc-status-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.pc-status-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 28, 0.55);
}

.pc-status-modal__dialog {
  position: relative;
  width: min(36rem, 100%);
  max-height: min(92vh, 44rem);
  overflow: auto;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  padding: 1.5rem 1.35rem 1.35rem;
}

.pc-status-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

.pc-status-modal__eyebrow {
  margin: 0 0 0.35rem;
  font: 600 0.75rem/1.3 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #004b77;
}

.pc-status-modal__title {
  margin: 0 0 0.5rem;
  font: 700 1.45rem/1.2 "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.pc-status-modal__lead {
  margin: 0 0 1.15rem;
  font: 400 0.95rem/1.45 "DM Sans", system-ui, sans-serif;
  color: #444;
}

/* —— Status form + FedEx-style timeline —— */
.pc-status-form__label {
  display: block;
  margin: 0 0 0.35rem;
  font: 600 0.85rem/1.3 "DM Sans", system-ui, sans-serif;
}

.pc-status-form__row {
  display: flex;
  gap: 0.5rem;
}

.pc-status-form__row input[type="tel"] {
  flex: 1;
  min-width: 0;
  border: 1px solid #c5ccd3;
  padding: 0.7rem 0.75rem;
  font: 400 1rem/1.2 "DM Sans", system-ui, sans-serif;
}

.pc-status-form__submit {
  border: 0;
  background: #004b77;
  color: #fff;
  font: 700 0.9rem/1 "DM Sans", system-ui, sans-serif;
  padding: 0 1rem;
  cursor: pointer;
}

.pc-status-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pc-status-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pc-status-form__msg {
  margin: 0.75rem 0 0;
  font: 500 0.9rem/1.4 "DM Sans", system-ui, sans-serif;
  color: #b00020;
}

.pc-status-results {
  margin-top: 1.25rem;
}

.pc-status-job {
  border: 1px solid #d9dee3;
  background: #f7f9fb;
  padding: 1rem 0.9rem 0.4rem;
  margin: 0 0 1rem;
}

.pc-status-job__head h3 {
  margin: 0 0 0.25rem;
  font: 700 1.05rem/1.25 "DM Sans", system-ui, sans-serif;
}

.pc-status-job__meta {
  margin: 0 0 0.85rem;
  font: 400 0.85rem/1.4 "DM Sans", system-ui, sans-serif;
  color: #555;
}

.pc-status-empty {
  margin: 0.5rem 0 1rem;
  font: 400 0.9rem/1.4 "DM Sans", system-ui, sans-serif;
  color: #666;
}

.pc-status-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.35rem;
  border-left: 2px solid #c5d0da;
}

.pc-status-timeline__item {
  position: relative;
  padding: 0 0 1rem 1.1rem;
}

.pc-status-timeline__dot {
  position: absolute;
  left: -0.45rem;
  top: 0.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #004b77;
}

.pc-status-timeline__item.is-latest .pc-status-timeline__dot {
  background: #004b77;
  box-shadow: 0 0 0 3px rgba(0, 75, 119, 0.18);
}

.pc-status-timeline__item--parts_ordered .pc-status-timeline__dot,
.pc-status-timeline__item--parts_request .pc-status-timeline__dot {
  border-color: #8a5a00;
}

.pc-status-timeline__item--parts_received .pc-status-timeline__dot {
  border-color: #1a7a3c;
}

.pc-status-timeline__item--parts_eta .pc-status-timeline__dot {
  border-color: #6b7280;
}

.pc-status-timeline__when {
  margin: 0 0 0.15rem;
  font: 500 0.75rem/1.3 "DM Sans", system-ui, sans-serif;
  color: #6b7280;
}

.pc-status-timeline__title {
  margin: 0;
  font: 700 0.92rem/1.35 "DM Sans", system-ui, sans-serif;
}

.pc-status-timeline__detail {
  margin: 0.15rem 0 0;
  font: 400 0.82rem/1.4 "DM Sans", system-ui, sans-serif;
  color: #555;
}

/* —— Jarvis customer chat —— */
.pc-chat-panel[hidden] {
  display: none !important;
}

.pc-chat-panel {
  position: fixed;
  top: auto;
  right: 22px;
  bottom: 72px;
  z-index: 99995;
  width: min(392px, calc(100vw - 28px));
  height: min(640px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 252, 0.98)),
    radial-gradient(120% 80% at 100% 0%, rgba(0, 75, 119, 0.12), transparent 55%);
  border: 1px solid rgba(0, 75, 119, 0.18);
  box-shadow:
    0 22px 50px rgba(0, 35, 60, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
  animation: pc-chat-in 0.28s ease;
}

@keyframes pc-chat-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pc-chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid rgba(0, 75, 119, 0.1);
}

.pc-chat-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pc-chat-panel__mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #1a7fb5, #004b77 42%, #002f4a);
  box-shadow: 0 8px 16px rgba(0, 75, 119, 0.28);
  position: relative;
}

.pc-chat-panel__mark::after {
  content: "";
  position: absolute;
  inset: 28% 30%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.pc-chat-panel__eyebrow {
  margin: 0;
  font: 600 0.68rem/1.2 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b7384;
}

.pc-chat-panel__title {
  margin: 0.1rem 0 0;
  font: 750 1.15rem/1.15 "DM Sans", system-ui, sans-serif;
  color: #003555;
}

.pc-chat-panel__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #004b77;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.pc-chat-panel__chips {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem 0.2rem;
  overflow-x: auto;
}

.pc-chat-panel__chips button {
  appearance: none;
  border: 1px solid rgba(0, 75, 119, 0.28);
  background: rgba(255, 255, 255, 0.85);
  color: #004b77;
  font: 600 0.72rem/1 "DM Sans", system-ui, sans-serif;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.pc-chat-panel__chips button:hover {
  background: #004b77;
  color: #fff;
}

.pc-chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.9rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pc-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 92%;
  animation: pc-msg-in 0.22s ease;
}

@keyframes pc-msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pc-chat-msg--user {
  align-self: flex-end;
}

.pc-chat-msg--assistant {
  align-self: flex-start;
}

.pc-chat-msg__bubble {
  margin: 0;
  padding: 0.7rem 0.85rem;
  font: 450 0.9rem/1.45 "DM Sans", system-ui, sans-serif;
  color: #1a2a33;
  white-space: pre-wrap;
  word-break: break-word;
}

.pc-chat-msg--assistant .pc-chat-msg__bubble {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 75, 119, 0.12);
  border-radius: 0.2rem 0.85rem 0.85rem 0.85rem;
  box-shadow: 0 6px 14px rgba(0, 40, 70, 0.06);
}

.pc-chat-msg--user .pc-chat-msg__bubble {
  background: #004b77;
  color: #fff;
  border-radius: 0.85rem 0.2rem 0.85rem 0.85rem;
}

.pc-chat-msg__bubble--typing {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  min-width: 3.2rem;
}

.pc-chat-msg__bubble--typing span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #004b77;
  opacity: 0.35;
  animation: pc-dot 1.1s ease infinite;
}

.pc-chat-msg__bubble--typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.pc-chat-msg__bubble--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pc-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.pc-chat-card {
  background: #fff;
  border: 1px solid rgba(0, 75, 119, 0.14);
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.pc-chat-card__title {
  margin: 0;
  font: 700 0.82rem/1.3 "DM Sans", system-ui, sans-serif;
  color: #003555;
}

.pc-chat-card__qr {
  display: block;
  width: 148px;
  height: 148px;
  background: #fff;
}

.pc-chat-card__link {
  font: 650 0.82rem/1.2 "DM Sans", system-ui, sans-serif;
  color: #004b77;
}

.pc-chat-card__list {
  margin: 0;
  padding-left: 1rem;
  font: 450 0.82rem/1.4 "DM Sans", system-ui, sans-serif;
  color: #333;
}

.pc-chat-panel__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(0, 75, 119, 0.1);
  position: relative;
}

.pc-chat-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pc-chat-panel__form textarea {
  resize: none;
  border: 1px solid rgba(0, 75, 119, 0.22);
  background: #fff;
  color: #122;
  font: 450 0.9rem/1.35 "DM Sans", system-ui, sans-serif;
  padding: 0.65rem 0.7rem;
  min-height: 2.6rem;
  max-height: 5.5rem;
}

.pc-chat-panel__form textarea:focus {
  outline: 2px solid rgba(0, 75, 119, 0.28);
  outline-offset: 1px;
}

.pc-chat-panel__send {
  appearance: none;
  border: 0;
  background: #004b77;
  color: #fff;
  font: 700 0.82rem/1 "DM Sans", system-ui, sans-serif;
  padding: 0 0.95rem;
  cursor: pointer;
  align-self: stretch;
}

.pc-chat-panel__send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.pc-chat-panel__foot {
  margin: 0;
  padding: 0 0.9rem 0.7rem;
  font: 500 0.68rem/1.3 "DM Sans", system-ui, sans-serif;
  color: #6b7c88;
}

@media (max-width: 720px) {
  .pc-chat-panel {
    top: auto;
    bottom: 64px;
    right: 12px;
    left: 12px;
    width: auto;
    height: min(70vh, 560px);
  }
}
