/* Product guide: entirely scoped to the independent widget. */
.es-guide {
  --guide-ink: #183c2a;
  --guide-muted: #53674f;
  --guide-green: #176c4a;
  --guide-paper: #f8f9f3;
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 70;
  font-family: Inter, Arial, sans-serif;
  color: var(--guide-ink);
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
  pointer-events: none;
}
.es-guide *, .es-guide *::before, .es-guide *::after { box-sizing: border-box; }
.es-guide [hidden] { display: none !important; }
.es-guide button, .es-guide input, .es-guide a { font: inherit; }
.es-guide button { cursor: pointer; }
.es-guide button, .es-guide a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.es-guide button:focus-visible, .es-guide a:focus-visible, .es-guide input:focus-visible, .es-guide [tabindex]:focus-visible {
  outline: 3px solid #358653;
  outline-offset: 3px;
}
.es-guide button:disabled { cursor: default; }
.es-guide p, .es-guide h2, .es-guide h3 { margin: 0; }
.es-guide-icon { display: block; width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.es-guide-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  min-height: 54px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #d3dfcd;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f0fdf8);
  color: #176c4a;
  pointer-events: auto;
  box-shadow: 0 6px 26px #15332226, 0 1px 3px #15332220;
  font-size: 14px !important;
  font-weight: 550 !important;
  letter-spacing: -.015em;
  transition: background .18s ease, box-shadow .18s ease;
}
.es-guide-launcher:hover, .es-guide-launcher.is-open { background: #f0f9ea; box-shadow: 0 8px 30px #15332238; }
.es-guide-launcher-image { width: 34px; height: 34px; }
.es-guide-launcher .es-guide-icon { display: none; width: 24px; height: 24px; }
.es-guide-launcher.is-open .es-guide-launcher-image { display: none; }
.es-guide-launcher.is-open .es-guide-icon { display: block; }
.es-guide-panel {
  display: flex;
  flex-direction: column;
  width: min(430px, calc(100vw - 40px));
  height: 640px;
  max-height: calc(100vh - 116px);
  max-height: calc(100dvh - 116px);
  margin-bottom: 14px;
  border: 1px solid #b8c9b5;
  border-radius: 16px;
  background: var(--guide-paper);
  box-shadow: 0 20px 70px #082b242b, 0 3px 12px #082b2412;
  overflow: auto;
  overscroll-behavior: contain;
  animation: es-guide-enter .18s ease-out;
  pointer-events: auto;
}
.es-guide-header { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-shrink: 0; padding: 21px 17px 19px 23px; color: #f4f8ed; background: #12372a; }
.es-guide-header-copy { min-width: 0; }
.es-guide .es-guide-title { font-size: 21px; font-weight: 550; letter-spacing: -.035em; line-height: 1.3; }
.es-guide .es-guide-subtitle { margin-top: 6px; color: #c2d4b7; font-size: 12px; line-height: 1.55; }
.es-guide-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin-top: -5px; border: 1px solid #4b6951; border-radius: 50%; background: transparent; color: #eef5e9; }
.es-guide-close:hover { background: #284c35; }
.es-guide-close:focus-visible, .es-guide-header [tabindex]:focus-visible { outline-color: #c0ed91 !important; }
.es-guide-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-shrink: 0; min-height: 51px; padding: 3px 18px 3px 23px; border-bottom: 1px solid #d9e2d3; background: #eef2e8; font-size: 12px; color: var(--guide-muted); }
.es-guide-clear { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px; min-height: 44px; padding: 8px 4px; border: 0; border-radius: 5px; background: transparent; color: #365e37; font-size: 12px !important; }
.es-guide-clear .es-guide-icon { width: 15px; height: 15px; }
.es-guide-clear:hover { color: #123c24; text-decoration: underline; text-underline-offset: 3px; }
.es-guide-log { position: relative; min-height: 96px; flex: 1; padding: 23px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #acbca5 transparent; }
.es-guide-log:focus-visible { outline-offset: -4px !important; }
.es-guide-message { overflow-wrap: anywhere; }
.es-guide-message + .es-guide-message { margin-top: 25px; }
.es-guide-speaker { display: block; margin-bottom: 8px; color: #4f6949; font-size: 12px; font-weight: 600; }
.es-guide .es-guide-answer-title { margin-bottom: 11px; font-size: 18px; font-weight: 550; letter-spacing: -.035em; line-height: 1.35; color: #183b27; }
.es-guide-message p { font-size: 15px; line-height: 1.72; }
.es-guide-message p + p { margin-top: 12px; }
.es-guide-message-user { margin-left: 32px; padding: 13px 16px; border: 1px solid #c8d9be; border-radius: 12px 12px 3px 12px; background: #e6eedc; }
.es-guide-message-user .es-guide-speaker { margin-bottom: 4px; color: #45663d; }
.es-guide-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 9px; margin-top: 17px; }
.es-guide-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 11px; min-height: 44px; max-width: 100%; padding: 10px 12px; border: 1px solid #a8bf9d; border-radius: 6px; background: #edf3e6; color: #204d2d; font-size: 12px !important; font-weight: 550 !important; text-decoration: none; line-height: 1.5; }
.es-guide-action .es-guide-icon { width: 16px; height: 16px; }
.es-guide-action:hover { background: #e0ecd4; border-color: #729669; }
.es-guide-demo { background: #176c4a; border-color: #176c4a; color: #fff; }
.es-guide-demo:hover { background: #12583c; border-color: #12583c; }
.es-guide-suggestions { display: flex; flex-direction: column; gap: 9px; margin-top: 21px; }
.es-guide-suggestion { min-height: 45px; padding: 10px 13px; border: 1px solid #ccd8c3; border-radius: 7px; background: #fffef8; color: #2d5432; text-align: left; font-size: 13px !important; line-height: 1.6 !important; }
.es-guide-suggestion:hover { border-color: #729669; background: #eef4e6; }
.es-guide-form { flex-shrink: 0; padding: 13px 18px 14px; border-top: 1px solid #d4decd; background: #f5f7ee; }
.es-guide-input-label { display: block; margin-bottom: 7px; color: #435d3e; font-size: 12px; font-weight: 500; }
.es-guide-input-row { display: flex; gap: 9px; align-items: stretch; }
.es-guide-input { display: block; min-width: 0; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #aebfa4; border-radius: 7px; background: #fff; color: #193f29; font-size: 16px !important; line-height: 1.5; box-shadow: none; appearance: none; }
.es-guide-input::placeholder { color: #5e7058; opacity: 1; font-size: 14px; }
.es-guide-submit { display: grid; place-items: center; width: 48px; min-width: 48px; min-height: 48px; padding: 0; border: 1px solid #176c4a; border-radius: 7px; background: #176c4a; color: #fff; }
.es-guide-submit:hover:not(:disabled) { background: #12583c; }
.es-guide-submit:disabled { border-color: #c5d1bd; background: #e2e9d9; color: #667b5d; }
.es-guide .es-guide-privacy { margin-top: 8px; color: #52684a; font-size: 12px; line-height: 1.55; }
.es-guide-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); border: 0; }
@keyframes es-guide-enter { from { transform: translateY(7px); } to { transform: translateY(0); } }
@media (max-width: 599px) {
  .es-guide { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .es-guide-panel { width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)); height: 620px; max-height: calc(100vh - 96px - env(safe-area-inset-bottom)); max-height: calc(100dvh - 96px - env(safe-area-inset-bottom)); margin-bottom: 12px; border-radius: 13px; }
  .es-guide-header { padding: 17px 14px 15px 18px; }
  .es-guide .es-guide-title { font-size: 20px; }
  .es-guide .es-guide-subtitle { font-size: 12px; }
  .es-guide-toolbar { padding-left: 18px; }
  .es-guide-log { padding: 20px 17px; }
  .es-guide-form { padding: 11px 14px 12px; }
  .es-guide-message-user { margin-left: 20px; }
}
@media (max-height: 620px) {
  /* Retain the desktop/mobile space for the launcher, gap and viewport inset. */
  .es-guide-header { padding-block: 12px; }
  .es-guide-toolbar { min-height: 44px; }
  .es-guide-form { padding-block: 9px; }
  .es-guide .es-guide-privacy { margin-top: 5px; }
}
@media (max-height: 480px) {
  .es-guide { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .es-guide-panel { height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin-bottom: 0; }
  .es-guide-launcher.is-open { display: none; }
  .es-guide-header { padding-block: 8px; }
  .es-guide .es-guide-title { font-size: 18px; }
  .es-guide .es-guide-subtitle { margin-top: 3px; line-height: 1.4; }
  .es-guide-toolbar { padding-block: 0; }
  .es-guide-log { min-height: 80px; padding-block: 14px; }
  .es-guide-form { padding-block: 7px; }
  .es-guide-input-label { margin-bottom: 4px; }
  .es-guide .es-guide-privacy { font-size: 12px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) { .es-guide *, .es-guide *::before, .es-guide *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .es-guide { display: none !important; } }
