/* The Social Salon: the chat bubble's styles.

   The rules in the middle section are the chat part of growth-kit.css from Brett's AIPM template
   library, unchanged; its form and reviews rules are left out, and so are core.css and tokens.css,
   which restyle a whole page. Every selector here starts with .gk-chat, so nothing on her Wix pages
   can match it. The ten-variable token contract is set on the chat's own two elements instead of
   :root for the same reason. */

/* ---- tokens: the ten-variable contract (tokens.css) in her colours, plus type ---- */
.gk-chat-launcher,
.gk-chat-panel {
  --background: #fdfcf8;          /* her off-white */
  --card: #eef0eb;                /* the off-white with a touch of her sage */
  --foreground: #2f2e2e;          /* her charcoal (Wix colour 15) */
  --primary-cta: #2f2e2e;         /* charcoal, like her site header (Wix colour 37) */
  --primary-cta-text: #fdfcf8;
  --secondary-cta: #fdfcf8;
  --secondary-cta-text: #2f2e2e;
  --accent: #294d41;              /* Verde green */
  --background-accent: #708983;   /* sage */
  --radius: 1rem;
  --font-body: 'din-next-w01-light', sans-serif;
  --font-heading: 'playfair display', Georgia, serif;
  /* The sizes the chat uses. Fixed here: tokens.css scales them with the window, which makes
     them 9 to 12px on a laptop, too small in her light body font. */
  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-2xl: 1.625rem;
  /* What core.css gives the chat on the AIPM sites: her body is set in Arial by Wix. */
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}
.gk-chat-launcher,
.gk-chat-panel,
.gk-chat-panel *,
.gk-chat-panel *::before,
.gk-chat-panel *::after { box-sizing: border-box; }

/* ---- copied from growth-kit.css (chat bubble) ---- */

/* --- Chat bubble ---------------------------------------------------------
   Fixed to the corner on every template, above everything, and small enough
   that it never competes with the design it is sitting on. */
.gk-chat-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9998;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--primary-cta);
  color: var(--primary-cta-text);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
  transition: transform 0.18s ease;
}
.gk-chat-launcher:hover { transform: scale(1.06); }
.gk-chat-launcher svg { width: 1.5rem; height: 1.5rem; }
.gk-chat-launcher img {
  width: 100%; height: 100%; border-radius: 999px; object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--primary-cta-text) 55%, transparent);
}

/* The panel follows the shape Brett pointed at on the Summit site: a greeting
   header, then a stack of cards a visitor can tap, then Home and Messages
   tabs. The point of it is that nobody has to type anything to get moving. */
.gk-chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 9999;
  width: min(23.5rem, calc(100vw - 2.5rem));
  max-height: min(38rem, calc(100vh - 8rem));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.8);
  background: color-mix(in srgb, var(--background) 60%, #ffffff);
  color: var(--foreground);
  border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
  box-shadow: 0 24px 70px -14px rgb(0 0 0 / 0.45);
}
.gk-chat-panel[data-open="true"] { display: flex; }

.gk-chat-head {
  padding: 1.1rem 1.15rem 1.35rem;
  background: var(--primary-cta);
  color: var(--primary-cta-text);
}
.gk-chat-head__top { display: flex; align-items: center; gap: 0.6rem; }
.gk-chat-head__top img {
  width: 1.9rem; height: 1.9rem; border-radius: 999px; object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--primary-cta-text) 45%, transparent);
}
.gk-chat-head__name {
  font-family: var(--font-heading); font-weight: 700;
  font-size: var(--text-sm, 0.875rem);
}
.gk-chat-head button {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: inherit; opacity: 0.85; font-size: 1.25rem; line-height: 1; padding: 0.2rem;
}
.gk-chat-hi {
  margin: 0.9rem 0 0;
  font-family: var(--font-heading); font-weight: 700;
  font-size: var(--text-2xl, 1.5rem); line-height: 1.2;
}
.gk-chat-hi span { display: block; opacity: 0.78; }

/* Card stack */
.gk-chat-home { overflow-y: auto; padding: 0.9rem; display: grid; gap: 0.7rem; }
.gk-card {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--foreground) 9%, transparent);
  border-radius: calc(var(--radius) * 0.55);
  box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.14);
  overflow: hidden;
}
.gk-card__label {
  margin: 0; padding: 0.85rem 1rem 0.4rem;
  font-size: var(--text-xs, 0.75rem); font-weight: 600; opacity: 0.55;
}
.gk-row {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  font: inherit; text-align: left; text-decoration: none; color: var(--foreground);
  background: none; border: 0; cursor: pointer;
  padding: 0.85rem 1rem;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 7%, transparent);
  transition: background 0.15s ease;
}
.gk-card__label + .gk-row, .gk-card > .gk-row:first-child { border-top: 0; }
.gk-row:hover { background: color-mix(in srgb, var(--foreground) 4%, transparent); }
.gk-row__text { flex: 1; min-width: 0; }
.gk-row__text { display: block; }
.gk-row__title {
  display: block;                     /* spans run together on one line */
  font-family: var(--font-heading); font-weight: 600;
  font-size: var(--text-sm, 0.875rem); line-height: 1.3;
}
.gk-row__sub {
  display: block;
  font-size: var(--text-xs, 0.75rem); opacity: 0.6; margin-top: 0.15rem; line-height: 1.4;
}
.gk-row__go { color: var(--accent); flex-shrink: 0; display: grid; place-items: center; }
.gk-row__go svg { width: 1rem; height: 1rem; }
.gk-row__faces { display: flex; flex-shrink: 0; }
.gk-row__faces span {
  width: 1.75rem; height: 1.75rem; border-radius: 999px; display: grid; place-items: center;
  font-size: var(--text-xs, 0.75rem); font-weight: 700;
  background: var(--accent); color: var(--primary-cta-text);
  border: 2px solid var(--card); margin-left: -0.5rem;
}
.gk-row__faces span:first-child { margin-left: 0; }

/* Home and Messages */
.gk-chat-tabs {
  margin-top: auto; display: flex; border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
  background: var(--card);
}
.gk-chat-tabs button {
  flex: 1; font: inherit; font-size: var(--text-xs, 0.75rem); font-weight: 600;
  background: none; border: 0; cursor: pointer; padding: 0.7rem 0.5rem;
  color: var(--foreground); opacity: 0.5;
  display: grid; gap: 0.15rem; justify-items: center;
}
.gk-chat-tabs button[aria-selected="true"] { opacity: 1; color: var(--accent); }
.gk-chat-tabs svg { width: 1.05rem; height: 1.05rem; }

.gk-chat-panel[data-view="home"] .gk-chat-log,
.gk-chat-panel[data-view="home"] .gk-chat-foot,
.gk-chat-panel[data-view="home"] .gk-chat-note { display: none; }
.gk-chat-panel[data-view="messages"] .gk-chat-home { display: none; }
.gk-chat-panel[data-view="messages"] .gk-chat-hi { display: none; }
.gk-chat-panel[data-view="messages"] .gk-chat-head { padding-bottom: 1.1rem; }
.gk-chat-log {
  flex: 1; overflow-y: auto; padding: 0.9rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  font-size: var(--text-sm, 0.875rem); line-height: 1.5;
}
.gk-msg { max-width: 85%; padding: 0.6rem 0.8rem; border-radius: calc(var(--radius) / 2.2); }
.gk-msg[data-from="bot"] {
  background: color-mix(in srgb, var(--foreground) 7%, transparent);
  align-self: flex-start;
}
.gk-msg[data-from="you"] {
  background: var(--primary-cta); color: var(--primary-cta-text); align-self: flex-end;
}

/* Says plainly that the demo assistant is not the real one yet. An owner who
   works that out for themselves trusts everything else on the page less. */
.gk-chat-note {
  margin: 0; padding: 0.55rem 0.9rem;
  font-size: var(--text-2xs, 0.65rem); line-height: 1.45;
  text-align: center; opacity: 0.6;
  border-top: 1px dashed color-mix(in srgb, var(--foreground) 18%, transparent);
}

.gk-chat-foot { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); }
.gk-chat-foot input {
  flex: 1; font: inherit; font-size: var(--text-sm, 0.875rem); color: var(--foreground);
  background: color-mix(in srgb, var(--background) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--foreground) 16%, transparent);
  border-radius: 999px; padding: 0.55rem 0.9rem;
}
.gk-chat-foot input:focus { outline: none; border-color: var(--accent); }
.gk-chat-foot button {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px;
  padding: 0.55rem 1rem; background: var(--primary-cta); color: var(--primary-cta-text);
}

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

/* ---- for her pages ---- */

/* The z-index above (9998 and 9999) already sits where it has to on her pages: over the sticky
   header (50) and under the phone menu (99999), the "We are moving!" popup (2147482000) and the
   photo viewer (2147483000). */

/* Playfair Display is her accent face, so it stays on the name and the greeting; the rows a
   visitor taps read better in the body face. */
.gk-row__title { font-family: var(--font-body); }

/* Wix's CSS removes every focus outline (:focus { outline: none }). */
.gk-chat-launcher:focus-visible,
.gk-chat-panel :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gk-chat-head :focus-visible { outline-color: var(--primary-cta-text); }

/* A close button big enough to tap. */
.gk-chat-head button {
  display: grid; place-items: center; width: 2rem; height: 2rem; margin-right: -0.4rem;
}

/* Phone pages: Wix serves phones a 320px-wide layout that the browser scales up (about 1.2x on a
   390px iPhone), so these sizes render larger than they read here. 16px keeps iPhones from
   zooming in when the message box is tapped. */
html[data-ss="m"] .gk-chat-launcher,
html[data-ss="m"] .gk-chat-panel {
  --text-2xs: 12px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 13px;
  --text-2xl: 20px;
}
html[data-ss="m"] .gk-chat-launcher { right: 14px; bottom: 14px; width: 46px; height: 46px; }
html[data-ss="m"] .gk-chat-launcher svg { width: 22px; height: 22px; }
html[data-ss="m"] .gk-chat-panel {
  right: 12px;
  bottom: 70px;
  width: min(264px, calc(100vw - 24px));
  max-height: min(400px, calc(100vh - 130px));
  max-height: min(400px, calc(100dvh - 130px));
}
html[data-ss="m"] .gk-chat-foot input { font-size: 16px; }

/* ---- a small, see-through popup that grows out of the bubble in the corner (Brett, 27 Oct 2026:
   "connected to the bottom right corner", "clean and not super annoying", "transparent", a bigger
   X or swipe it down; the swipe is in config.js) ---- */
.gk-chat-launcher,
.gk-chat-panel {
  --gk-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --gk-spring: cubic-bezier(0.32, 0.72, 0, 1);
}
.gk-chat-panel {
  width: min(21.5rem, calc(100vw - 2rem));
  max-height: min(32rem, calc(100vh - 7.5rem));
  border: 0;
  border-radius: 1.4rem;
  box-shadow: 0 30px 70px -22px rgb(0 0 0 / 0.5);
  transform-origin: 100% 100%;
  opacity: 0;
  transform: translateY(0.75rem) scale(0.94);
  transition-property: opacity, transform, display;
  transition-duration: 0.25s, 0.5s, 0.5s;
  transition-timing-function: ease-out, var(--gk-spring), linear;
  transition-behavior: allow-discrete;
}
.gk-chat-panel[data-open="true"] { opacity: 1; transform: none; }
@starting-style {
  .gk-chat-panel[data-open="true"] { opacity: 0; transform: translateY(0.75rem) scale(0.94); }
}
/* The page shows through, blurred, wherever the browser can blur it; elsewhere it stays solid. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .gk-chat-panel {
    background: rgb(253 252 248 / 0.8);
    background: color-mix(in srgb, var(--background) 76%, transparent);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
  }
  .gk-card { background: rgb(255 255 255 / 0.6); }
  .gk-chat-tabs { background: rgb(255 255 255 / 0.35); }
  .gk-chat-foot input { background: rgb(255 255 255 / 0.72); }
}
/* Home needs no tab bar: "Send us a message" is the way into the conversation, and the bar comes
   back there so Home is one tap away. */
.gk-chat-panel[data-view="home"] .gk-chat-tabs { display: none; }

.gk-chat-head { position: relative; }
.gk-chat-head button {
  width: 2.5rem;
  height: 2.5rem;
  margin: -0.35rem -0.45rem -0.35rem auto;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  opacity: 1;
  background: rgb(255 255 255 / 0.14);
  transition: background-color 0.2s ease, transform 0.35s var(--gk-spring);
}
.gk-chat-head button::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: var(--gk-x) center / contain no-repeat;
  mask: var(--gk-x) center / contain no-repeat;
}
.gk-chat-head button:hover { background: rgb(255 255 255 / 0.24); }
.gk-chat-head button:active { transform: scale(0.92); }
/* A grab handle on touch screens: the header can be swiped down to close. */
@media (pointer: coarse) {
  .gk-chat-head { touch-action: none; }
  .gk-chat-head::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 50%;
    width: 2.4rem;
    height: 0.25rem;
    margin-left: -1.2rem;
    border-radius: 1rem;
    background: currentColor;
    opacity: 0.35;
  }
}

/* While the popup is open the bubble turns into its close button. */
.gk-chat-launcher svg,
.gk-chat-launcher img { transition: transform 0.45s var(--gk-spring), opacity 0.2s ease; }
.gk-chat-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: auto;
  background: currentColor;
  -webkit-mask: var(--gk-x) center / contain no-repeat;
  mask: var(--gk-x) center / contain no-repeat;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: transform 0.45s var(--gk-spring), opacity 0.2s ease;
  pointer-events: none;
}
.gk-chat-launcher[aria-expanded="true"] svg,
.gk-chat-launcher[aria-expanded="true"] img { opacity: 0; transform: rotate(90deg) scale(0.5); }
.gk-chat-launcher[aria-expanded="true"]::after { opacity: 1; transform: none; }

.gk-msg { animation: gk-msg-in 0.4s var(--gk-spring) both; }
@keyframes gk-msg-in { from { opacity: 0; transform: translateY(6px); } }
.gk-msg a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 559px) {
  .gk-chat-panel {
    right: 0.875rem;
    bottom: 5rem;
    width: min(19rem, calc(100vw - 1.75rem));
    max-height: min(29rem, calc(100vh - 9rem));
    max-height: min(29rem, calc(100dvh - 9rem));
  }
  .gk-chat-hi { margin-top: 0.5rem; font-size: 1.1rem; }
  .gk-chat-hi span { display: inline; margin-left: 0.3em; }
  /* Three popular questions on a phone; the address is one scroll away on every page. */
  .gk-ask:nth-of-type(4) { display: none; }
  .gk-chat-foot input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .gk-chat-panel { transform: none; transition: none; }
  .gk-chat-launcher svg, .gk-chat-launcher img, .gk-chat-launcher::after { transition: none; }
  .gk-msg { animation: none; }
}
