/* Giorno VI — lightweight customer-service chat widget
   Aesthetic matched to site-live/style.css. pointer-events only on widget chrome. */

#gv-chat-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
  color: #eee;
}

#gv-chat-root *,
#gv-chat-root *::before,
#gv-chat-root *::after {
  box-sizing: border-box;
}

.gv-chat-launcher,
.gv-chat-panel {
  pointer-events: auto;
}

.gv-chat-launcher {
  position: absolute;
  right: max(20px, 2.5vw);
  bottom: max(20px, 2.5vw);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #0a0a0a;
  border: 1px solid #3a3a3a;
  color: #eee;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.gv-chat-launcher:hover,
.gv-chat-launcher:focus-visible {
  border-color: #eee;
  background: #111;
}

.gv-chat-launcher:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 6px;
}

.gv-chat-launcher[aria-expanded="true"] {
  border-color: #666;
}

.gv-chat-launcher-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c3c3c3;
  flex-shrink: 0;
}

.gv-chat-panel {
  position: absolute;
  right: max(20px, 2.5vw);
  bottom: calc(max(20px, 2.5vw) + 56px);
  width: min(380px, calc(100vw - 32px));
  max-height: min(520px, calc(100svh - 120px));
  display: flex;
  flex-direction: column;
  background: #030303;
  border: 1px solid #303030;
  box-shadow: 0 24px 80px #000000a0;
  overflow: hidden;
}

.gv-chat-panel[hidden] {
  display: none !important;
}

.gv-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #303030;
}

.gv-chat-header-copy {
  min-width: 0;
}

.gv-chat-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #b8b8b8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gv-chat-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #eee;
}

.gv-chat-sub {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #c3c3c3;
}

.gv-chat-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #999;
  border: 1px solid transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gv-chat-close:hover,
.gv-chat-close:focus-visible {
  color: #eee;
  border-color: #444;
}

.gv-chat-close:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.gv-chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  min-height: 180px;
}

.gv-chat-msg {
  max-width: 92%;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #c3c3c3;
  border: 1px solid #2a2a2a;
}

.gv-chat-msg--bot {
  align-self: flex-start;
  background: #0a0a0a;
  border-color: #2a2a2a;
}

.gv-chat-msg--user {
  align-self: flex-end;
  background: #121212;
  border-color: #3a3a3a;
  color: #eee;
}

.gv-chat-msg a {
  color: #eee;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gv-chat-msg a:hover {
  color: #fff;
}

.gv-chat-typing {
  align-self: flex-start;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #888;
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
}

.gv-chat-typing[hidden] {
  display: none !important;
}

.gv-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
}

.gv-chat-chip {
  padding: 8px 12px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #c3c3c3;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.gv-chat-chip:hover,
.gv-chat-chip:focus-visible {
  border-color: #eee;
  color: #eee;
}

.gv-chat-chip:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.gv-chat-form {
  display: flex;
  gap: 0;
  border-top: 1px solid #303030;
  padding: 0;
}

.gv-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  background: #050505;
  border: 0;
  color: #eee;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.gv-chat-input::placeholder {
  color: #777;
}

.gv-chat-input:focus {
  outline: none;
}

.gv-chat-input:focus-visible {
  box-shadow: inset 0 0 0 1px #fff;
}

.gv-chat-send {
  flex-shrink: 0;
  padding: 0 18px;
  border-left: 1px solid #303030;
  background: #0a0a0a;
  color: #eee;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.gv-chat-send:hover,
.gv-chat-send:focus-visible {
  background: #151515;
}

.gv-chat-send:focus-visible {
  outline: 1px solid #fff;
  outline-offset: -1px;
}

.gv-chat-footer {
  padding: 10px 18px 14px;
  border-top: 1px solid #222;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #888;
}

.gv-chat-footer a {
  color: #c3c3c3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .gv-chat-launcher {
    bottom: 72px; /* clear cinema controls on hero */
    right: 16px;
    padding: 12px 14px;
    font-size: 11px;
  }

  .gv-chat-panel {
    right: 16px;
    bottom: calc(72px + 52px);
    width: calc(100vw - 32px);
    max-height: min(480px, calc(100svh - 160px));
  }

  .past-intro .gv-chat-launcher {
    bottom: 20px;
  }

  .past-intro .gv-chat-panel {
    bottom: calc(20px + 52px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gv-chat-launcher,
  .gv-chat-chip {
    transition: none;
  }

  .gv-chat-messages {
    scroll-behavior: auto;
  }
}

html.reduced .gv-chat-launcher,
html.reduced .gv-chat-chip {
  transition: none;
}

html.reduced .gv-chat-messages {
  scroll-behavior: auto;
}
