/* GlowGuide — floating site search assistant */
/* Sizes use px (not rem): Bricks sets html { font-size: 10px }. */

html body.ga-body .ga-guide-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #1a1814;
  background: linear-gradient(145deg, #f4efe6 0%, #e8dfd0 55%, #d9cbb8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html body.ga-body .ga-guide-fab:hover,
html body.ga-body .ga-guide-fab:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 16px 36px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  outline: none;
}

html body.ga-body .ga-guide-fab.is-open {
  transform: translateY(-2px) scale(1.02);
}

html body.ga-body .ga-guide-fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(244, 239, 230, 0.45);
  animation: ga-guide-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

html body.ga-body .ga-guide-fab.is-open .ga-guide-fab__pulse,
html body.ga-body .ga-guide-fab[data-seen="1"] .ga-guide-fab__pulse {
  display: none;
}

@keyframes ga-guide-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

html body.ga-body .ga-guide-fab .ga-guide-icon {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

html body.ga-body .ga-guide-panel__mark .ga-guide-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

html body.ga-body .ga-guide-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 88px);
  z-index: 2147483001;
  width: min(640px, calc(100vw - 24px));
  min-height: min(480px, calc(100vh - 120px));
  max-height: min(780px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  font-size: 17px;
  line-height: 1.45;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(244, 239, 230, 0.12), transparent 55%),
    linear-gradient(180deg, #2a2723 0%, #1c1a17 100%);
  color: #f4efe6;
  border: 1px solid rgba(244, 239, 230, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

html body.ga-body .ga-guide-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

html body.ga-body .ga-guide-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 19px 14px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}

html body.ga-body .ga-guide-panel__mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f4efe6, #d9cbb8);
  color: #1a1814;
}

html body.ga-body .ga-guide-panel__mark svg {
  width: 17px;
  height: 17px;
}

html body.ga-body .ga-guide-panel__titles {
  flex: 1;
  min-width: 0;
}

html body.ga-body .ga-guide-panel__titles strong {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.01em;
}

html body.ga-body .ga-guide-panel__titles span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  opacity: 0.72;
  line-height: 1.4;
}

html body.ga-body .ga-guide-panel__close {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 3px;
}

html body.ga-body .ga-guide-panel__close:hover,
html body.ga-body .ga-guide-panel__close:focus-visible {
  opacity: 1;
  outline: none;
}

html body.ga-body .ga-guide-panel__body {
  flex: 1;
  overflow: auto;
  padding: 16px 19px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

html body.ga-body .ga-guide-msg {
  max-width: 96%;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 17px;
  line-height: 1.5;
  animation: ga-guide-in 0.35s ease;
}

@keyframes ga-guide-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

html body.ga-body .ga-guide-msg--bot {
  align-self: flex-start;
  background: rgba(244, 239, 230, 0.08);
  border: 1px solid rgba(244, 239, 230, 0.1);
}

html body.ga-body .ga-guide-msg--user {
  align-self: flex-end;
  background: #f4efe6;
  color: #1a1814;
}

html body.ga-body .ga-guide-msg p {
  margin: 0;
}

html body.ga-body .ga-guide-msg p + p {
  margin-top: 7px;
}

html body.ga-body .ga-guide-results {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
}

html body.ga-body .ga-guide-result {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(244, 239, 230, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

html body.ga-body .ga-guide-result:hover,
html body.ga-body .ga-guide-result:focus-visible {
  background: rgba(244, 239, 230, 0.1);
  border-color: rgba(244, 239, 230, 0.22);
  outline: none;
}

html body.ga-body .ga-guide-result--page,
html body.ga-body .ga-guide-result--artist {
  grid-template-columns: 1fr;
  padding: 10px 12px;
}

html body.ga-body .ga-guide-result__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #111;
}

html body.ga-body .ga-guide-result__meta strong {
  display: block;
  font-size: 16px;
  font-weight: 550;
}

html body.ga-body .ga-guide-result__meta span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  opacity: 0.7;
}

html body.ga-body .ga-guide-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

html body.ga-body .ga-guide-hint {
  border: 1px solid rgba(244, 239, 230, 0.18);
  background: transparent;
  color: #f4efe6;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

html body.ga-body .ga-guide-hint:hover,
html body.ga-body .ga-guide-hint:focus-visible {
  background: rgba(244, 239, 230, 0.1);
  border-color: rgba(244, 239, 230, 0.35);
  outline: none;
}

html body.ga-body .ga-guide-panel__foot {
  padding: 14px 19px 18px;
  border-top: 1px solid rgba(244, 239, 230, 0.08);
}

html body.ga-body .ga-guide-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

html body.ga-body .ga-guide-form input {
  width: 100%;
  border: 1px solid rgba(244, 239, 230, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: #f4efe6;
  border-radius: 999px;
  padding: 16px 20px;
  font: inherit;
  font-size: 17px;
}

html body.ga-body .ga-guide-form input::placeholder {
  color: rgba(244, 239, 230, 0.45);
}

html body.ga-body .ga-guide-form input:focus {
  outline: none;
  border-color: rgba(244, 239, 230, 0.4);
}

html body.ga-body .ga-guide-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: #f4efe6;
  color: #1a1814;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

html body.ga-body .ga-guide-form button:hover,
html body.ga-body .ga-guide-form button:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

html body.ga-body .ga-guide-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 16px;
}

html body.ga-body .ga-guide-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.7);
  animation: ga-guide-dot 1.1s infinite ease-in-out;
}

html body.ga-body .ga-guide-typing i:nth-child(2) { animation-delay: 0.15s; }
html body.ga-body .ga-guide-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes ga-guide-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 640px) {
  html body.ga-body .ga-guide-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px);
    max-height: min(78vh, 640px);
  }
}

/* —— Guided tour (shop + shared) —— */

.ga-tour-root {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  pointer-events: none;
}

.ga-tour-root.is-live {
  pointer-events: auto;
}

.ga-tour-shade {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.72);
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: pointer;
  pointer-events: auto;
}

.ga-tour-root.is-live .ga-tour-shade {
  opacity: 1;
}

.ga-tour-spot {
  position: absolute;
  border-radius: 14px;
  box-shadow:
    0 0 0 9999px rgba(8, 7, 6, 0.72),
    0 0 0 2px rgba(244, 239, 230, 0.85),
    0 12px 40px rgba(0, 0, 0, 0.35);
  transition: top 0.4s ease, left 0.4s ease, width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}

.ga-tour-card {
  position: absolute;
  z-index: 2;
  width: min(380px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border-radius: 16px;
  font-size: 16px;
  background: #f4efe6;
  color: #1a1814 !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ga-tour-root.is-live .ga-tour-card {
  opacity: 1;
  transform: translateY(0);
}

.ga-tour-card__step {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1814 !important;
  opacity: 0.55;
}

.ga-tour-card h3 {
  margin: 0 0 6px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: #1a1814 !important;
}

.ga-tour-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #1a1814 !important;
  opacity: 0.88;
}

.ga-tour-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}

.ga-tour-card__actions button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ga-tour-next {
  background: #1a1814;
  color: #f4efe6;
}

.ga-tour-skip {
  background: transparent;
  color: #1a1814;
  opacity: 0.65;
}

.ga-tour-skip:hover,
.ga-tour-next:hover,
.ga-tour-skip:focus-visible,
.ga-tour-next:focus-visible {
  outline: none;
  filter: brightness(1.08);
}

.ga-tour-card__actions .ga-tour-skip {
  margin-right: auto;
}

html body.ga-body .ga-tour-replay {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2147482990;
  border: 1px solid rgba(244, 239, 230, 0.28);
  background: rgba(28, 26, 23, 0.92);
  color: #f4efe6;
  border-radius: 999px;
  padding: 9px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

html body.ga-body .ga-tour-replay:hover,
html body.ga-body .ga-tour-replay:focus-visible {
  outline: none;
  border-color: rgba(244, 239, 230, 0.5);
  filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
  html body.ga-body .ga-guide-fab,
  html body.ga-body .ga-guide-panel,
  html body.ga-body .ga-guide-msg,
  html body.ga-body .ga-guide-fab__pulse,
  .ga-tour-shade,
  .ga-tour-spot,
  .ga-tour-card {
    animation: none !important;
    transition: none !important;
  }
}
