.gala{position:fixed;z-index:50;right:20px;bottom:calc(18px + env(safe-area-inset-bottom,0px));font-family:Arial,Helvetica,sans-serif}.gala [hidden]{display:none!important}.gala-toggle{display:flex;align-items:center;gap:10px;margin-left:auto;padding:12px 18px;border-radius:30px;border:1px solid #d4b77f;background:#191816;color:#f5e4c2;box-shadow:0 5px 25px #0006;min-height:48px;font-size:.9375rem}.gala-mark{font:italic 24px Georgia,serif;color:#d4b77f}.gala-panel{width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 110px);display:flex;flex-direction:column;border:1px solid #bca16e;border-radius:15px;overflow:hidden;margin-bottom:12px;box-shadow:0 15px 60px #0008;background:#f7f3eb;color:#23221f}.gala-head{padding:16px 18px;background:#191816;color:#f5e4c2;display:flex;align-items:center;justify-content:space-between;gap:15px}.gala-head strong{font-size:1.125rem;font-weight:500}.gala-head small{display:block;font-size:.875rem;color:#c8bdab}.gala-close{border:0;background:transparent;color:#f5e4c2;font-size:26px;width:44px;height:44px}.gala-content{overflow:auto;overscroll-behavior:contain;padding:22px}.gala-message{font-size:1rem;line-height:1.6;margin:0 0 20px;outline-offset:4px}.gala-choices{display:grid;gap:10px}.gala-choices button,.gala-choices a{display:block;text-align:left;background:#fffdf8;color:#23221f;border:1px solid #c9b58f;padding:12px 14px;border-radius:8px;font-size:.9375rem;line-height:1.4;min-height:46px;text-decoration:none;overflow-wrap:anywhere}.gala-choices button:hover,.gala-choices a:hover{background:#e9dfcc}.gala-controls{display:flex;flex-wrap:wrap;gap:10px 18px;margin:22px 0 15px}.gala-controls button{border:0;background:transparent;color:#5e4b29;text-decoration:underline;text-underline-offset:4px;font-size:.875rem;padding:6px 0;min-height:36px}.gala-note{color:#6b6458;line-height:1.5;font-size:.8125rem;margin:0}body>footer{padding-bottom:100px}@media(max-width:560px){.gala{right:16px}.gala-content{padding:20px}.gala-panel{max-height:calc(100dvh - 115px)}}

/* Written conversation is shown only after the server confirms availability. */
.gala *, .gala *::before, .gala *::after { box-sizing: border-box; }
.gala-panel { overscroll-behavior: contain; }
.gala-head { flex: 0 0 auto; }
.gala-content { min-height: 0; }
.gala-panel[data-gala-view="chat"] { height: min(690px, calc(100dvh - 110px)); }
.gala-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 auto;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid #d9cdb6;
  background: #f0e9de;
}
.gala-modes button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #4c4438;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.gala-modes button[aria-pressed="true"] {
  border-color: #baa16e;
  background: #fffdf8;
  color: #26221d;
  box-shadow: 0 1px 3px #211e1812;
}
.gala-chat {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.gala-chat-scroll {
  flex: 1 1 auto;
  min-height: 64px;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 16px 8px;
  scrollbar-gutter: stable;
}
.gala-chat-welcome {
  margin: 0 0 16px;
  color: #3c3831;
  font-size: .9375rem;
  line-height: 1.55;
}
.gala-chat-log { display: grid; gap: 12px; }
.gala-chat-entry {
  min-width: 0;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid #d9cdb6;
  border-radius: 12px 12px 12px 3px;
  background: #fffdf8;
}
.gala-chat-entry--user {
  margin-left: 22px;
  border-color: #d3c2e4;
  border-radius: 12px 12px 3px 12px;
  background: #eee6f5;
}
.gala-chat-entry--error { border-color: #bda47a; background: #faf1df; }
.gala-chat-author {
  display: block;
  margin-bottom: 4px;
  color: #67522f;
  font-size: .75rem;
  font-weight: 700;
}
.gala-chat-text {
  margin: 0;
  color: #28251f;
  font-size: .9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gala-chat-links { display: grid; gap: 6px; margin-top: 10px; }
.gala-chat-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #c9b58f;
  border-radius: 7px;
  color: #51401f;
  background: #f8f2e7;
  font-size: .8125rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.gala-chat-status { margin: 12px 0 4px; color: #65513b; font-size: .8125rem; line-height: 1.4; }
.gala-chat-compose {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 65%;
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid #ddd0b9;
  padding: 10px 16px 0;
  background: #f7f3eb;
}
.gala-chat-disclosure {
  margin: 0 0 3px;
  color: #554c3e;
  font-size: .75rem;
  line-height: 1.5;
}
.gala-chat-details { margin: 0 0 8px; color: #514936; font-size: .75rem; line-height: 1.5; }
.gala-chat-details summary {
  display: list-item;
  min-height: 32px;
  padding: 7px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gala-chat-details p { margin: 0 0 8px; overflow-wrap: anywhere; }
.gala-chat-form { margin: 0; }
.gala-chat-form label { display: block; margin-bottom: 6px; color: #3d3528; font-size: .8125rem; font-weight: 700; }
.gala-chat-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  max-height: 150px;
  margin: 0;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid #ac9265;
  border-radius: 9px;
  color: #25221c;
  background: #fffdf8;
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
}
.gala-chat-input::placeholder { color: #756d60; opacity: 1; }
.gala-chat-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.gala-chat-count { color: #6b6252; font-size: .6875rem; }
.gala-chat-send {
  min-height: 44px;
  min-width: 86px;
  padding: 9px 15px;
  border: 1px solid #b4975d;
  border-radius: 8px;
  color: #f7e8ca;
  background: #25221d;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.gala-chat-send:disabled { border-color: #c7beaf; background: #e5dfd4; color: #6c6559; cursor: default; }
.gala-chat-hint { margin: 5px 0 0; color: #6b6254; font-size: .6875rem; line-height: 1.45; }
.gala-chat-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 10px 16px 12px;
  background: #f7f3eb;
}
.gala-chat-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #baa16e;
  border-radius: 8px;
  background: #ece0c8;
  color: #352b1d;
  text-align: center;
  font-size: .8125rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.gala-chat-reset {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #5e4b29;
  font: inherit;
  font-size: .75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gala-guide-notice { margin-bottom: 18px; padding: 12px; border: 1px solid #bca16e; border-radius: 9px; background: #f2e9d9; }
.gala-guide-notice p { margin: 0 0 10px; font-size: .875rem; line-height: 1.5; }
.gala button:focus-visible, .gala a:focus-visible, .gala textarea:focus-visible, .gala summary:focus-visible {
  outline: 3px solid #80629c;
  outline-offset: 3px;
}
.gala-chat-links a:hover, .gala-chat-whatsapp:hover { background: #e5d5b6; }
@media (max-width: 560px) {
  .gala-panel[data-gala-view="chat"] { height: min(690px, calc(100dvh - 115px)); }
  .gala-chat-scroll { padding: 13px 13px 8px; }
  .gala-chat-compose { padding: 9px 13px 0; }
  .gala-chat-actions { padding: 9px 13px 11px; }
  .gala-chat-hint { display: none; }
}
@media (max-height: 520px) {
  .gala-head { padding: 6px 12px; }
  .gala-modes { padding: 4px 10px; }
  .gala-chat-scroll { min-height: 40px; }
  .gala-chat-compose { max-height: 60%; }
  .gala-chat-actions { padding-top: 5px; padding-bottom: 5px; }
}
