.gy-service,
.gy-service * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.gy-service {
  --service-ink: #182130;
  --service-muted: #687386;
  --service-line: #dfe5ec;
  --service-soft: #f5f7f9;
  --service-blue: #1764a7;
  --service-deep: #101b27;
  --service-green: #178060;
  --service-orange: #d95b27;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  color: var(--service-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.gy-service button,
.gy-service input,
.gy-service select,
.gy-service textarea {
  font: inherit;
}

.gy-service button { cursor: pointer; }
.gy-service [hidden] { display: none !important; }

.gy-service-entry-menu {
  position: relative;
  width: 60px;
  height: 60px;
}

.gy-service-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gy-service-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: var(--service-deep);
  box-shadow: 0 18px 42px rgba(9, 24, 38, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gy-service-launcher:hover {
  transform: translateY(-3px);
  background: #173149;
  box-shadow: 0 22px 46px rgba(9, 24, 38, 0.34);
}

.gy-service-launcher:focus-visible,
.gy-service button:focus-visible,
.gy-service input:focus-visible,
.gy-service select:focus-visible,
.gy-service textarea:focus-visible {
  outline: 3px solid rgba(23, 100, 167, 0.24);
  outline-offset: 2px;
}

.gy-service-launcher svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gy-service-launcher-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--service-deep);
  border-radius: 50%;
  background: #62d8a9;
  animation: gyServicePulse 2.4s ease-out infinite;
}

.gy-service-menu {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(332px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(16, 27, 39, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(9, 24, 38, 0.22), 0 3px 10px rgba(9, 24, 38, 0.07);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: right bottom;
  animation: gyServiceMenuIn 170ms ease forwards;
}

.gy-service-menu::after {
  content: "";
  position: absolute;
  right: 23px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border-right: 1px solid rgba(16, 27, 39, 0.14);
  border-bottom: 1px solid rgba(16, 27, 39, 0.14);
  background: #fff;
  transform: rotate(45deg);
}

.gy-service-menu-heading {
  padding: 15px 17px 12px;
  border-bottom: 1px solid var(--service-line);
}

.gy-service-menu-heading > span,
.gy-service-menu-heading > strong { display: block; }
.gy-service-menu-heading > span { color: var(--service-blue); font-size: 10px; font-weight: 750; }
.gy-service-menu-heading > strong { margin-top: 2px; font-size: 15px; line-height: 1.35; }

.gy-service-menu > button {
  width: 100%;
  min-height: 72px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--service-line);
  color: var(--service-ink);
  background: #fff;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.gy-service-menu > button:last-child { border-bottom: 0; }
.gy-service-menu > button:hover,
.gy-service-menu > button:focus-visible { background: #f6f9fb; }

.gy-service-menu-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--service-blue);
  background: #edf4fb;
}

.gy-service-menu-icon-brand { color: var(--service-blue); background: #edf4fb; }

.gy-service-menu-icon svg,
.gy-service-menu-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gy-service-menu-copy { min-width: 0; }
.gy-service-menu-copy > strong,
.gy-service-menu-copy > small { display: block; }
.gy-service-menu-copy > strong { font-size: 15px; line-height: 1.3; }
.gy-service-menu-copy > small { margin-top: 3px; color: var(--service-muted); font-size: 11px; line-height: 1.4; }
.gy-service-menu-arrow { width: 17px; height: 17px; color: #748092; transition: transform 150ms ease; }
.gy-service-menu > button:hover .gy-service-menu-arrow,
.gy-service-menu > button:focus-visible .gy-service-menu-arrow { transform: translateX(3px); color: var(--service-blue); }

.gy-service-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 410px;
  height: min(720px, calc(100dvh - 112px));
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(12, 30, 48, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(4, 18, 31, 0.3), 0 4px 18px rgba(4, 18, 31, 0.08);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 200ms ease, transform 200ms ease;
}

.gy-service-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gy-service-header {
  position: relative;
  height: 76px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #fff;
  background: #101b27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gy-service-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--service-blue);
  opacity: 1;
}

.gy-service-icon-button {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  transition: color 160ms ease, background 160ms ease;
}

.gy-service-header [data-service-back] { grid-column: 1; }
.gy-service-heading { grid-column: 2; }
.gy-service-header [data-service-close] { grid-column: 3; }
.gy-service-icon-button:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.gy-service-icon-button svg,
.gy-service-mode-icon svg,
.gy-service-chevron,
.gy-service-composer button svg,
.gy-service-success-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gy-service-heading {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gy-service-heading div { min-width: 0; display: grid; gap: 3px; }

.gy-service-heading strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gy-service-heading span:not(.gy-service-status) {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.gy-service-status {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62d8a9;
  box-shadow: 0 0 0 4px rgba(98, 216, 169, 0.13);
}

.gy-service-body {
  height: calc(100% - 76px);
  overflow: hidden;
  background: #fff;
}

.gy-service-view { height: 100%; }

.gy-service-hub {
  padding: 16px 18px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.gy-service-hub-intro > span,
.gy-service-hub-intro > strong,
.gy-service-hub-intro > p { display: block; }

.gy-service-hub-intro > span {
  color: var(--service-blue);
  font-size: 10px;
  font-weight: 800;
}

.gy-service-hub-intro > strong {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.35;
}

.gy-service-hub-intro > p {
  margin: 4px 0 0;
  color: var(--service-muted);
  font-size: 12px;
  line-height: 1.55;
}

.gy-service-hub-quick {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.gy-service-hub-quick > button {
  width: 100%;
  min-height: 62px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--service-line);
  border-radius: 7px;
  color: var(--service-ink);
  background: #f7f9fb;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.gy-service-hub-quick > button:first-child {
  border-color: #c8dbea;
  background: #edf4fb;
}

.gy-service-hub-quick > button:hover {
  transform: translateY(-1px);
  border-color: #b9cddd;
  background: #f2f7fb;
  box-shadow: 0 8px 20px rgba(16, 27, 39, 0.07);
}

.gy-service-hub-quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--service-blue);
  background: #fff;
}

.gy-service-hub-quick-icon svg,
.gy-service-hub-chevron,
.gy-service-hub-faq svg,
.gy-service-hub-composer button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gy-service-hub-quick strong,
.gy-service-hub-quick small { display: block; }
.gy-service-hub-quick strong { font-size: 13px; line-height: 1.3; }
.gy-service-hub-quick small { margin-top: 2px; color: var(--service-muted); font-size: 10px; line-height: 1.35; }
.gy-service-hub-chevron { width: 17px; height: 17px; color: #8792a1; transition: transform 150ms ease; }
.gy-service-hub-quick > button:hover .gy-service-hub-chevron { transform: translateX(2px); color: var(--service-blue); }

.gy-service-hub-faq { margin-top: 14px; }
.gy-service-hub-faq > p { margin: 0 0 6px; color: #596575; font-size: 11px; font-weight: 700; }

.gy-service-hub-faq > div {
  overflow: hidden;
  border: 1px solid var(--service-line);
  border-radius: 7px;
  background: #fff;
}

.gy-service-hub-faq button {
  width: 100%;
  min-height: 38px;
  padding: 7px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--service-line);
  color: var(--service-ink);
  background: #fff;
  text-align: left;
  font-size: 11px;
  line-height: 1.35;
  transition: color 150ms ease, background 150ms ease;
}

.gy-service-hub-faq button:last-child { border-bottom: 0; }
.gy-service-hub-faq button:hover { color: var(--service-blue); background: #f7f9fb; }
.gy-service-hub-faq button svg { width: 16px; height: 16px; color: #98a2ae; }

.gy-service-hub-composer {
  min-height: 74px;
  margin-top: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: end;
  gap: 8px;
  border: 1px solid #cfd8e2;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 27, 39, 0.05);
}

.gy-service-hub-composer textarea {
  width: 100%;
  min-height: 54px;
  resize: none;
  padding: 5px 6px;
  border: 0;
  outline: 0;
  color: var(--service-ink);
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
}

.gy-service-hub-composer button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--service-blue);
  box-shadow: 0 7px 16px rgba(23, 100, 167, 0.18);
}

.gy-service-home {
  padding: 0 22px 20px;
  overflow-y: auto;
  background: #fff;
}

.gy-service-welcome {
  position: relative;
  margin: 0 -22px;
  padding: 27px 22px 25px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border-bottom: 1px solid var(--service-line);
  background: #f7f9fb;
}

.gy-service-welcome::after {
  content: "SERVICE";
  position: absolute;
  right: 16px;
  bottom: -11px;
  color: rgba(16, 27, 39, 0.035);
  font-size: 48px;
  font-weight: 850;
  pointer-events: none;
}

.gy-service-mark {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: var(--service-deep);
  box-shadow: 0 9px 20px rgba(16, 27, 39, 0.16);
  font-size: 18px;
  font-weight: 800;
}

.gy-service-mark::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--service-deep);
  border-radius: 50%;
  background: var(--service-blue);
}

.gy-service-welcome div { position: relative; z-index: 1; min-width: 0; }

.gy-service-welcome-kicker,
.gy-service-form-intro > span,
.gy-service-success-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--service-blue);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.gy-service-welcome strong { display: block; font-size: 18px; line-height: 1.35; }

.gy-service-welcome p,
.gy-service-form-intro p {
  margin: 5px 0 0;
  color: var(--service-muted);
  font-size: 12px;
  line-height: 1.55;
}

.gy-service-section-label {
  margin: 19px 0 8px;
  color: #8a93a0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.gy-service-modes { display: grid; gap: 8px; }

.gy-service-modes > button {
  position: relative;
  width: 100%;
  min-height: 78px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid var(--service-line);
  border-radius: 7px;
  color: var(--service-ink);
  text-align: left;
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gy-service-modes > button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--service-blue);
  opacity: 0;
  transition: opacity 160ms ease;
}

.gy-service-modes > button:hover {
  transform: translateY(-1px);
  border-color: #cad4df;
  background: #fbfcfd;
  box-shadow: 0 8px 22px rgba(16, 27, 39, 0.07);
}

.gy-service-modes > button:hover::before { opacity: 1; }

.gy-service-mode-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.gy-service-mode-brand { color: var(--service-blue); background: #eaf3fb; }
.gy-service-modes strong, .gy-service-modes small { display: block; }
.gy-service-modes strong { font-size: 14px; line-height: 1.4; }
.gy-service-modes small { margin-top: 4px; color: var(--service-muted); font-size: 12px; line-height: 1.4; }
.gy-service-chevron { width: 18px; height: 18px; color: #9aa4b1; transition: transform 160ms ease; }
.gy-service-modes > button:hover .gy-service-chevron { transform: translateX(2px); }

.gy-service-privacy {
  margin: 15px 0 0;
  color: #9099a6;
  font-size: 10px;
  text-align: center;
}

.gy-service-privacy a,
.gy-service-consent a { color: var(--service-blue); text-decoration: underline; text-underline-offset: 2px; }

.gy-service-tracking {
  min-height: 84px;
  margin: 14px 0 2px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  border: 1px solid #d9e1e9;
  border-radius: 7px;
  background: #f6f8fa;
}

.gy-service-tracking-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--service-orange);
  box-shadow: 0 0 0 4px rgba(217, 91, 39, 0.11);
}

.gy-service-tracking[data-status="in_progress"] .gy-service-tracking-dot { background: var(--service-blue); box-shadow: 0 0 0 4px rgba(23, 100, 167, 0.11); }
.gy-service-tracking[data-status="resolved"] .gy-service-tracking-dot { background: var(--service-green); box-shadow: 0 0 0 4px rgba(23, 128, 96, 0.11); }
.gy-service-tracking div { min-width: 0; }
.gy-service-tracking small, .gy-service-tracking strong, .gy-service-tracking p { display: block; }
.gy-service-tracking small { color: #7d8796; font-size: 10px; }
.gy-service-tracking strong { margin-top: 2px; font-size: 13px; }
.gy-service-tracking p { margin: 3px 0 0; color: var(--service-muted); font-size: 11px; line-height: 1.45; }

.gy-service-tracking button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e2e7ec;
  border-radius: 50%;
  color: var(--service-blue);
  background: #fff;
}

.gy-service-tracking button:hover { background: #eaf3fb; }
.gy-service-tracking button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gy-service-tracking button.is-refreshing svg { animation: gyServiceRefresh 700ms linear infinite; }

.gy-service-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: #f4f6f8;
}

.gy-service-live-status {
  min-height: 58px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dbe3ea;
  background: #fff;
}

.gy-service-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--service-orange);
  box-shadow: 0 0 0 4px rgba(217, 91, 39, 0.1);
}

.gy-service-live-status[data-status="in_progress"] .gy-service-live-dot {
  background: var(--service-green);
  box-shadow: 0 0 0 4px rgba(23, 128, 96, 0.1);
}

.gy-service-live-status[data-status="resolved"] .gy-service-live-dot {
  background: #7a8491;
  box-shadow: none;
}

.gy-service-live-status div { min-width: 0; }
.gy-service-live-status strong,
.gy-service-live-status small { display: block; }
.gy-service-live-status strong { font-size: 12px; line-height: 1.4; }
.gy-service-live-status small { margin-top: 2px; color: var(--service-muted); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }

.gy-service-live-queue {
  min-width: 52px;
  padding: 5px 8px;
  border: 1px solid #cad8e5;
  border-radius: 4px;
  color: var(--service-blue);
  background: #f1f6fa;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

.gy-service-messages {
  min-height: 0;
  padding: 22px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.gy-service-message { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 15px; }
.gy-service-message.is-visitor { justify-content: flex-end; }
.gy-service-message.is-system { justify-content: center; margin: 3px 0 14px; }

.gy-service-message-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--service-deep);
  box-shadow: 0 4px 10px rgba(16, 27, 39, 0.14);
  font-size: 11px;
  font-weight: 800;
}

.gy-service-message-content {
  max-width: 80%;
  padding: 11px 13px;
  border: 1px solid #e0e5eb;
  border-radius: 7px 7px 7px 2px;
  color: var(--service-ink);
  background: #fff;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 18px rgba(18, 33, 58, 0.06);
}

.gy-service-message.is-visitor .gy-service-message-content {
  border-color: #1764a7;
  border-radius: 7px 7px 2px 7px;
  color: #fff;
  background: #1764a7;
  box-shadow: 0 6px 16px rgba(23, 100, 167, 0.16);
}

.gy-service-message.is-agent .gy-service-message-avatar { background: var(--service-green); }
.gy-service-message.is-agent .gy-service-message-content { border-color: #cfe0da; }

.gy-service-message.is-system .gy-service-message-content {
  max-width: 92%;
  padding: 7px 10px;
  border: 0;
  border-radius: 4px;
  color: #66717e;
  background: #e9edf1;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.gy-service-typing .gy-service-message-content { display: flex; gap: 4px; padding: 14px 15px; }
.gy-service-typing i { width: 5px; height: 5px; border-radius: 50%; background: #8390a0; animation: gyServiceTyping 900ms infinite ease-in-out; }
.gy-service-typing i:nth-child(2) { animation-delay: 120ms; }
.gy-service-typing i:nth-child(3) { animation-delay: 240ms; }

.gy-service-suggestions {
  display: flex;
  gap: 7px;
  padding: 0 16px 12px;
  overflow-x: auto;
  background: #f4f6f8;
}

.gy-service-suggestions:empty { display: none; }

.gy-service-suggestions button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid #c5d3df;
  border-radius: 5px;
  color: var(--service-blue);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.gy-service-suggestions button:hover { border-color: var(--service-blue); background: #edf5fb; }

.gy-service-composer {
  min-height: 74px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: end;
  gap: 8px;
  border-top: 1px solid var(--service-line);
  background: #fff;
  box-shadow: 0 -8px 24px rgba(16, 27, 39, 0.035);
}

.gy-service-composer textarea {
  width: 100%;
  max-height: 96px;
  min-height: 44px;
  resize: none;
  padding: 11px 12px;
  border: 1px solid #d2dae3;
  border-radius: 6px;
  color: var(--service-ink);
  background: #f8fafb;
  font-size: 13px;
  line-height: 1.45;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.gy-service-composer button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--service-blue);
  box-shadow: 0 7px 16px rgba(23, 100, 167, 0.2);
  transition: transform 150ms ease, background 150ms ease;
}

.gy-service-composer button:hover { transform: translateY(-1px); background: #11548e; }
.gy-service-composer button:disabled, .gy-service-submit:disabled { cursor: wait; opacity: 0.55; }
.gy-service-composer[data-locked="true"] button:disabled { cursor: not-allowed; }

.gy-service-form-view {
  padding: 0 22px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.gy-service-form-intro {
  margin: 0 -22px;
  padding: 24px 22px 21px;
  border-bottom: 1px solid var(--service-line);
  background: #f7f9fb;
}

.gy-service-form-intro strong { display: block; font-size: 19px; line-height: 1.35; }
.gy-service-form-view form { display: grid; gap: 15px; margin-top: 20px; }

.gy-service-form-view label,
.gy-service-segment legend {
  display: grid;
  gap: 7px;
  color: #3d4858;
  font-size: 12px;
  font-weight: 700;
}

.gy-service-form-view input,
.gy-service-form-view select,
.gy-service-form-view textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #cfd7e0;
  border-radius: 5px;
  color: var(--service-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.gy-service-form-view textarea { resize: vertical; line-height: 1.55; }

.gy-service-form-view input[aria-invalid="true"],
.gy-service-form-view select[aria-invalid="true"],
.gy-service-form-view textarea[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff8f7;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.gy-service-form-view input:focus,
.gy-service-form-view select:focus,
.gy-service-form-view textarea:focus,
.gy-service-composer textarea:focus {
  border-color: var(--service-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 100, 167, 0.09);
}

.gy-service-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.gy-service-segment {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  border: 0;
}

.gy-service-segment legend { grid-column: 1 / -1; margin-bottom: 1px; }
.gy-service-segment label { position: relative; display: block; }
.gy-service-segment input { position: absolute; opacity: 0; pointer-events: none; }

.gy-service-segment span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd7e0;
  border-radius: 5px;
  color: var(--service-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gy-service-segment input:checked + span { border-color: var(--service-blue); color: var(--service-blue); background: #edf5fb; box-shadow: inset 0 0 0 1px var(--service-blue); }

.gy-service-consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  color: var(--service-muted) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.5;
}

.gy-service-consent input { width: 15px; height: 15px; min-height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--service-blue); }
.gy-service-consent input[aria-invalid="true"] { outline: 2px solid rgba(180, 35, 24, 0.55); outline-offset: 2px; }
.gy-service-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; min-height: 1px !important; opacity: 0 !important; }
.gy-service-form-error { min-height: 16px; margin: -4px 0 0; color: #b42318; font-size: 12px; line-height: 1.4; }

.gy-service-submit,
.gy-service-success > button {
  min-height: 46px;
  border: 1px solid var(--service-blue);
  border-radius: 5px;
  color: #fff;
  background: var(--service-blue);
  box-shadow: 0 8px 18px rgba(23, 100, 167, 0.14);
  font-size: 13px;
  font-weight: 750;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.gy-service-submit:hover,
.gy-service-success > button:hover { transform: translateY(-1px); background: #11548e; box-shadow: 0 10px 22px rgba(23, 100, 167, 0.2); }

.gy-service-success {
  position: relative;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: #f8fafb;
}

.gy-service-success::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--service-green);
}

.gy-service-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--service-green);
  box-shadow: 0 12px 26px rgba(23, 128, 96, 0.2);
}

.gy-service-success-icon svg { width: 29px; height: 29px; stroke-width: 2; }
.gy-service-success-kicker { margin: 18px 0 0; color: var(--service-green); }
.gy-service-success > strong { margin-top: 2px; font-size: 21px; }
.gy-service-success > p { max-width: 290px; margin: 10px 0 0; color: var(--service-muted); font-size: 13px; line-height: 1.65; }

.gy-service-case {
  margin-top: 17px;
  padding: 8px 11px;
  border: 1px solid var(--service-line);
  border-radius: 5px;
  color: #455166;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.gy-service-success > button { width: 100%; margin-top: 27px; }

@keyframes gyServiceTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@keyframes gyServiceRefresh { to { transform: rotate(360deg); } }

@keyframes gyServiceMenuIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gyServicePulse {
  0%, 65%, 100% { box-shadow: 0 0 0 0 rgba(98, 216, 169, 0); }
  25% { box-shadow: 0 0 0 6px rgba(98, 216, 169, 0.18); }
}

@media (max-width: 600px) {
  html.gy-service-open { overflow: hidden; }
  .gy-service { right: 15px; bottom: calc(15px + env(safe-area-inset-bottom)); }
  .gy-service-entry-menu { width: 54px; height: 54px; }
  .gy-service-launcher { width: 54px; height: 54px; }
  .gy-service-menu { right: 0; bottom: 66px; width: min(330px, calc(100vw - 30px)); }
  .gy-service-menu-heading { padding: 14px 16px 11px; }
  .gy-service-menu > button { min-height: 70px; padding: 11px 14px; grid-template-columns: 40px minmax(0, 1fr) 17px; gap: 11px; }

  .gy-service-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    transform: translateY(10px);
  }

  .gy-service-panel.is-open { transform: translateY(0); }
  .gy-service-header { height: calc(70px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .gy-service-body { height: calc(100% - 70px - env(safe-area-inset-top)); }
  .gy-service-hub { padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); }
  .gy-service-hub-quick { margin-top: 14px; }
  .gy-service-hub-faq { margin-top: 16px; }
  .gy-service-hub-composer { margin-top: 14px; }
  .gy-service-home { padding: 0 18px calc(22px + env(safe-area-inset-bottom)); }
  .gy-service-welcome { margin: 0 -18px; padding: 24px 18px 23px; }
  .gy-service-form-view { padding: 0 18px calc(30px + env(safe-area-inset-bottom)); }
  .gy-service-form-intro { margin: 0 -18px; padding: 22px 18px 20px; }
  .gy-service-messages { padding: 19px 14px; }
  .gy-service-composer { padding-bottom: calc(11px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .gy-service-field-row { grid-template-columns: 1fr; }
  .gy-service-welcome { grid-template-columns: 44px minmax(0, 1fr); gap: 11px; }
  .gy-service-mark { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .gy-service-panel,
  .gy-service-launcher,
  .gy-service-menu,
  .gy-service-menu > button,
  .gy-service-menu-arrow,
  .gy-service-hub-quick > button,
  .gy-service-hub-chevron,
  .gy-service-hub-faq button,
  .gy-service-modes > button,
  .gy-service-chevron,
  .gy-service-composer button,
  .gy-service-submit,
  .gy-service-success > button { transition: none; }
  .gy-service-typing i,
  .gy-service-launcher-dot,
  .gy-service-tracking button.is-refreshing svg { animation: none; }
}
