/* Elia chat — Jam-branded Kuya JAC layout */

:root {
  --jam-navy: #172a77;
  --jam-yellow: #ffdb03;
  --jam-yellow-hot: #fdd835;
  --jam-orange: #fb7712;
  --jam-orange-dark: #ea580c;
  --jam-red: #c60e0e;
  --jam-red-dark: #9d0b0b;
  --jam-line: rgba(23, 42, 119, 0.12);
  --jam-drawer-w: 28rem;
  --jam-canvas: #f3f4f6;
  --jam-composer-well: #f8f8f8;
  --jam-seat-booked: #a6a6a6;
  --jam-seat-avail: #3c3c3c;
  --jam-seat-selected: #c41e3a;
}

/* Floating FAB */
.jam-chat-fab {
  position: fixed;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 99999;
  font-family: "Poppins", sans-serif;
  overflow: visible;
  pointer-events: none;
}

.jam-chat-fab > * {
  pointer-events: auto;
}

body.jam-chat-open .jam-chat-fab {
  display: none;
}

.jam-chat-fab__btn {
  width: 5.75rem;
  height: 5.75rem;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  line-height: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.jam-chat-fab--coming-soon .jam-chat-fab__btn {
  width: 6.25rem;
  height: 6.25rem;
}

.jam-chat-fab__btn:focus,
.jam-chat-fab__btn:focus-visible,
.jam-chat-fab__btn:active {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.jam-chat-fab__btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.jam-chat-fab__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* Nudge — gray speech bubble (mock: Coming Soon / BookNa) */
.jam-chat-nudge {
  --jam-nudge-bg: #d4d4d4;
  position: absolute;
  right: 0.35rem;
  bottom: calc(100% + 0.35rem);
  width: max-content;
  max-width: min(15.5rem, calc(100vw - 1.5rem));
  padding: 0.7rem 1.15rem 0.75rem;
  background: var(--jam-nudge-bg);
  color: #141414;
  border: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border-radius: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: left;
  z-index: 2;
  animation: jam-chat-nudge-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom right;
}

.jam-chat-nudge[hidden] {
  display: none !important;
}

.jam-chat-nudge::after {
  content: "";
  position: absolute;
  right: 1.55rem;
  bottom: -11px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 11px 0 11px;
  border-color: var(--jam-nudge-bg) transparent transparent transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

.jam-chat-nudge__title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #111;
}

.jam-chat-nudge__body {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  max-width: none;
}

.jam-chat-nudge__cta {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--jam-orange) !important;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
  box-shadow: none !important;
}

.jam-chat-fab--coming-soon .jam-chat-nudge__body {
  margin-bottom: 0;
}

@keyframes jam-chat-nudge-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Backdrop */
.jam-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jam-chat-backdrop[hidden] {
  display: none !important;
}

.jam-chat-backdrop.is-open {
  opacity: 1;
}

/* Drawer sheet */
.jam-chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  width: var(--jam-drawer-w);
  max-width: 100vw;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--jam-canvas);
  box-shadow: none;
  font-family: "Poppins", sans-serif;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  overflow: hidden;
  gap: 0;
}

.jam-chat-drawer[hidden] {
  display: none !important;
}

.jam-chat-drawer.is-open {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .jam-chat-drawer {
    transition: none;
  }
}

@media (max-width: 32rem) {
  .jam-chat-drawer {
    width: 100vw;
  }
}

/* Header */
.jam-chat-drawer__head {
  position: relative;
  flex-shrink: 0;
  padding: 1.25rem 3rem 1rem 1rem;
  background: linear-gradient(135deg, var(--jam-orange), var(--jam-orange-dark));
  color: #fff;
  overflow: hidden;
  border: 0;
}

.jam-chat-drawer__hatch {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    -32deg,
    transparent,
    transparent 14px,
    rgba(255, 255, 255, 0.35) 14px,
    rgba(255, 255, 255, 0.35) 15px
  );
}

.jam-chat-drawer__head-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.jam-chat-drawer__avatar-wrap {
  position: relative;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.jam-chat-drawer__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.jam-chat-drawer__id {
  min-width: 0;
  flex: 1;
}

.jam-chat-drawer__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

@media (min-width: 640px) {
  .jam-chat-drawer__title {
    font-size: 1.125rem;
  }
}

.jam-chat-drawer__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .jam-chat-drawer__subtitle {
    font-size: 0.875rem;
  }
}

.jam-chat-drawer__new {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 0.75rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none !important;
}

.jam-chat-drawer__new:hover {
  background: #fff !important;
  color: var(--jam-orange) !important;
}

.jam-chat-drawer__new:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.jam-chat-drawer__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #fff !important;
  opacity: 0.9;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
}

.jam-chat-drawer__close:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  opacity: 1;
}

/* Disclaimer — amber */
.jam-chat-drawer__disclaimer {
  flex-shrink: 0;
  margin: 0;
  padding: 0.5rem 1rem;
  background: #fffbeb;
  border-bottom: 1px solid rgba(251, 191, 36, 0.8);
  color: rgba(69, 26, 3, 0.8);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

@media (min-width: 640px) {
  .jam-chat-drawer__disclaimer {
    font-size: 0.75rem;
  }
}

/* Chat body */
.jam-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: var(--jam-canvas);
}

.jam-chat__log {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 42, 119, 0.3) transparent;
}

.jam-chat__log::-webkit-scrollbar {
  width: 6px;
}

.jam-chat__log::-webkit-scrollbar-thumb {
  background: rgba(23, 42, 119, 0.3);
  border-radius: 999px;
}

.jam-chat__scroll-anchor {
  height: 1px;
  flex: none;
}

/* Today pill */
.jam-chat__day {
  align-self: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 0.6875rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Rows */
.jam-chat__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 100%;
}

.jam-chat__row--user {
  align-items: flex-end;
}

.jam-chat__row--bot,
.jam-chat__row--error {
  align-items: flex-start;
}

.jam-chat__msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 85%;
}

.jam-chat__row--user .jam-chat__msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.jam-chat__pic {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  outline: 1px solid rgba(0, 0, 0, 0.05);
  flex: none;
}

.jam-chat__bubble-col {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
}

.jam-chat__row--user .jam-chat__bubble-col {
  align-items: flex-end;
}

.jam-chat__row--bot .jam-chat__bubble-col,
.jam-chat__row--error .jam-chat__bubble-col {
  align-items: flex-start;
}

.jam-chat__bubble {
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: #111827;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.625;
  white-space: pre-wrap;
  word-break: break-word;
}

.jam-chat__bubble--bot {
  border-bottom-left-radius: 0.375rem;
}

.jam-chat__bubble--user {
  background: var(--jam-red);
  color: #fff;
  border-bottom-right-radius: 0.375rem;
}

.jam-chat__bubble--error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-bottom-left-radius: 0.375rem;
}

.jam-chat__bubble a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.jam-chat__bubble--user a {
  color: #fff;
}

.jam-chat__inline-cta {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--jam-orange);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.jam-chat__time {
  font-size: 0.625rem;
  font-weight: 500;
  color: #9ca3af;
  padding: 0 0.15rem;
}

.jam-chat__row--bot .jam-chat__time,
.jam-chat__row--error .jam-chat__time {
  margin-left: 2.5rem;
}

/* Bus loading — bus oversized, sits in front of the bubble */
.jam-chat__bubble--loading {
  position: relative;
  overflow: visible;
  min-width: 14rem;
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
  z-index: 1;
}

.jam-chat__row--bot:has(.jam-chat__bubble--loading) {
  overflow: visible;
  z-index: 2;
}

.jam-chat__row--bot:has(.jam-chat__bubble--loading) .jam-chat__msg,
.jam-chat__row--bot:has(.jam-chat__bubble--loading) .jam-chat__bubble-col {
  overflow: visible;
}

.jam-chat__bus-wrap {
  position: relative;
  display: block;
  padding-right: 4.5rem;
  min-height: 1.35rem;
  overflow: visible;
}

.jam-chat__bus-text {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--jam-navy);
  animation: jam-chat-bus-reveal 2.6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
  will-change: clip-path;
}

.jam-chat__bus-icon {
  position: absolute;
  top: 50%;
  left: -2.5rem;
  z-index: 30;
  width: 5.5rem;
  height: 3.25rem;
  transform: translateY(-50%);
  animation: jam-chat-bus-drive 2.6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
  will-change: left;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.jam-chat__bus-icon svg,
.jam-chat__bus-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes jam-chat-bus-drive {
  0% {
    left: -2.75rem;
  }
  70%,
  100% {
    left: calc(100% - 3.25rem);
  }
}

@keyframes jam-chat-bus-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  70%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jam-chat__bus-text,
  .jam-chat__bus-icon {
    animation: none;
  }
  .jam-chat__bus-text {
    clip-path: none;
  }
  .jam-chat__bus-icon {
    left: calc(100% - 3.25rem);
  }
}

/* Options under last bot message */
.jam-chat__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.jam-chat__options[hidden] {
  display: none !important;
}

.jam-chat__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.jam-chat__actions--cols {
  grid-template-columns: 1fr 1fr;
}

.jam-chat__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  background: #fff !important;
  color: var(--jam-navy) !important;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  text-align: center;
}

.jam-chat__chip:hover:not(:disabled) {
  background: #fff7ed !important;
}

.jam-chat__chip:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Trip list */
.jam-chat__trips {
  background: #fff;
  border-radius: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.jam-chat__trips-label {
  margin: 0;
  padding: 0.65rem 0.85rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

.jam-chat__trip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem !important;
  border: 0 !important;
  border-top: 1px solid #f3f4f6 !important;
  background: #fff !important;
  color: inherit !important;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none !important;
}

.jam-chat__trip:hover:not(:disabled) {
  background: #fff7ed !important;
}

.jam-chat__trip:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.jam-chat__trip-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.jam-chat__trip-meta {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.jam-chat__trip-price {
  flex: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(251, 119, 18, 0.12);
  color: var(--jam-orange);
  font-size: 0.875rem;
  font-weight: 600;
}

.jam-chat__trips-more {
  display: block;
  width: 100%;
  padding: 0.65rem !important;
  border: 0 !important;
  border-top: 1px solid #f3f4f6 !important;
  background: #fafafa !important;
  color: var(--jam-orange) !important;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
}

/* Composer */
.jam-chat__composer {
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  padding: 0.75rem 1rem 0.75rem;
}

.jam-chat__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.35rem 0.35rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  background: var(--jam-composer-well);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.jam-chat__form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 0.875rem;
  color: #111827;
  background: transparent;
}

.jam-chat__form input[type="text"]::placeholder {
  color: rgba(107, 114, 128, 0.7);
}

.jam-chat__send,
.jam-chat__form button[type="submit"] {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.75rem !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--jam-orange) !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none !important;
}

.jam-chat__send:hover:not(:disabled),
.jam-chat__form button[type="submit"]:hover:not(:disabled) {
  background: var(--jam-orange-dark) !important;
}

.jam-chat__send:disabled,
.jam-chat__form--busy .jam-chat__send {
  opacity: 0.5;
  pointer-events: none;
}

.jam-chat__footnote {
  margin: 0.5rem 0 0;
  color: #6b7280;
  font-size: 0.6875rem;
  font-weight: 500;
  text-align: center;
}

.jam-chat__footnote span {
  color: var(--jam-orange);
}

/* Rating overlay */
.jam-chat-rating {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  background: rgba(17, 24, 39, 0.4);
}

.jam-chat-rating[hidden] {
  display: none !important;
}

.jam-chat-rating__panel {
  width: 100%;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--jam-red);
  color: #fff;
  border-radius: 1rem 1rem 0 0;
}

.jam-chat-rating__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.jam-chat-rating__scores {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.jam-chat-rating__score {
  padding: 0.65rem 0.25rem !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 0.65rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
  line-height: 1.2;
}

.jam-chat-rating__score span {
  display: block;
  font-size: 0.5625rem;
  font-weight: 500;
  opacity: 0.9;
}

.jam-chat-rating__score:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

.jam-chat-rating__skip {
  display: block;
  margin: 0 auto;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
  box-shadow: none !important;
}

.jam-chat-rating__thanks {
  margin: 0.75rem 0 0;
  text-align: center;
  font-weight: 600;
}

.jam-chat-rating__thanks[hidden] {
  display: none !important;
}

/* Modals */
.jam-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 100110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: "Poppins", sans-serif;
}

.jam-chat-modal[hidden] {
  display: none !important;
}

.jam-chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.jam-chat-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 26rem;
  max-height: min(90vh, 40rem);
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.jam-chat-modal__dialog--seats {
  max-width: 22rem;
}

.jam-chat-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.jam-chat-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--jam-navy);
}

.jam-chat-modal__x {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: none !important;
}

.jam-chat-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
}

.jam-chat-modal__foot {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid #f3f4f6;
}

.jam-chat-modal__foot--col {
  flex-direction: column;
}

.jam-chat-modal__foot--split {
  justify-content: space-between;
}

.jam-chat-modal__cta {
  flex: 1;
  height: 2.75rem;
  padding: 0 1rem !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  background: var(--jam-orange) !important;
  color: #fff !important;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
}

.jam-chat-modal__cta:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.jam-chat-modal__cta:hover:not(:disabled) {
  background: var(--jam-orange-dark) !important;
}

.jam-chat-modal__ghost {
  height: 2.75rem;
  padding: 0 1rem !important;
  border: 1px solid var(--jam-line) !important;
  border-radius: 0.75rem !important;
  background: #fff !important;
  color: var(--jam-navy) !important;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
}

/* Passenger form */
.jam-chat-pax__stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  background: var(--jam-canvas);
  border-radius: 0.75rem;
}

.jam-chat-pax__stepper span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jam-navy);
}

.jam-chat-pax__stepper button {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0.5rem !important;
  background: var(--jam-orange) !important;
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
}

.jam-chat-pax__stepper button:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.jam-chat-pax__card {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
}

.jam-chat-pax__card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--jam-navy);
}

.jam-chat-pax__field {
  margin-bottom: 0.55rem;
}

.jam-chat-pax__field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
}

.jam-chat-pax__field input,
.jam-chat-pax__field select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.jam-chat-pax__alert {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  font-size: 0.75rem;
}

/* Seat map */
.jam-chat-seat__legend {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  color: #6b7280;
}

.jam-chat-seat__legend i {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.2rem;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.jam-chat-seat__legend .is-avail {
  background: var(--jam-seat-avail);
}

.jam-chat-seat__legend .is-booked {
  background: var(--jam-seat-booked);
}

.jam-chat-seat__legend .is-selected {
  background: var(--jam-seat-selected);
}

.jam-chat-seat__deck {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
}

.jam-chat-seat__label {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9ca3af;
}

.jam-chat-seat__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.jam-chat-seat__aisle {
  width: 1rem;
}

.jam-chat-seat__btn {
  position: relative;
  width: 2.15rem;
  height: 2.5rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
  box-shadow: none !important;
}

.jam-chat-seat__btn:hover:not(:disabled) {
  transform: scale(1.05);
}

.jam-chat-seat__btn:disabled {
  cursor: not-allowed;
}

.jam-chat-seat__btn svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.jam-chat-seat__btn.is-selected svg rect:first-of-type {
  stroke: #fff;
  stroke-width: 3;
}

.jam-chat-seat__status {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
}

/* Confirm modal */
.jam-chat-confirm__hero {
  margin: -0.25rem -0.25rem 0.85rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--jam-red);
  color: #fff;
}

.jam-chat-confirm__hero h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.jam-chat-confirm__hero p {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.95;
}

.jam-chat-confirm__card {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
}

.jam-chat-confirm__card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jam-chat-confirm__card p {
  margin: 0.15rem 0;
  font-size: 0.875rem;
  color: #111827;
}
