/* gkk-design-foundation 1.0.27: typing headline, Spin & Save trigger,
   reviews tab + drawer, corner layout. Pure CSS. */

/* ---------- 1. Typing headline (hero) ---------- */
.gkk-typing {
  --gkk-type-accent: #F7A31C;
  text-align: center;
  margin: 0 auto 1.1rem;
  max-width: 46rem;
  font-family: var(--gkk-sans, "Source Sans 3", Arial, Helvetica, sans-serif);
}
.gkk-typing p { margin: 0; }
/* Static sentence: always in the HTML for screen readers and search
   engines; only drawn on screen under reduced motion. */
.gkk-typing-static {
  position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.gkk-typing-live {
  font-weight: 700;
  font-size: clamp(1.45rem, 5.4vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F4F1EA;
  min-height: 1.25em;
}
.gkk-typing-lead { color: #F4F1EA; }
.gkk-typing-line { display: inline-block; white-space: nowrap; }
.gkk-typing-word {
  color: var(--gkk-type-accent);
  -webkit-text-fill-color: var(--gkk-type-accent);
  text-shadow: 0 0 14px rgba(247, 163, 28, 0.35);
}
.gkk-typing-cursor {
  display: inline-block;
  width: 0.09em; height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.1em;
  background: var(--gkk-type-accent);
  animation: gkk-type-blink 1s steps(1) infinite;
}
@keyframes gkk-type-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.gkk-typing-guarantee {
  margin-top: 0.55rem !important;
  font-weight: 700;
  font-size: clamp(0.95rem, 3.2vw, 1.3rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gkk-gold-soft, #DBC891);
}
/* Phones: the word gets its own line so the height never jumps. */
@media (max-width: 700px) {
  .gkk-typing-lead { display: block; }
  .gkk-typing-line { display: block; min-height: 1.2em; }
  .gkk-typing-live { min-height: 2.45em; }
  .gkk-typing-guarantee { letter-spacing: 0.14em; }
}
@media (prefers-reduced-motion: reduce) {
  .gkk-typing-live { display: none !important; }
  .gkk-typing-static {
    position: static !important; width: auto; height: auto; margin: 0 !important; overflow: visible;
    clip: auto; clip-path: none; white-space: normal;
    font-weight: 700; font-size: clamp(1.15rem, 4.2vw, 1.7rem); line-height: 1.3;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--gkk-type-accent);
  }
  .gkk-typing-guarantee { display: none; }
  .gkk-typing-cursor { animation: none; }
}

/* ---------- 2. Spin & Save trigger (bottom-left) ---------- */
.gkk-spin-fab {
  position: fixed;
  left: 12px;
  left: max(12px, env(safe-area-inset-left));
  bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 99990;
  display: flex; align-items: center;
  margin: 0; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--gkk-sans, "Source Sans 3", Arial, sans-serif);
  -webkit-tap-highlight-color: transparent;
}
.gkk-spin-fab[hidden] { display: none !important; }
.gkk-spin-wheel {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  position: relative; z-index: 1;
}
.gkk-spin-wheel-g { transform-origin: 32px 32px; animation: gkk-spin-turn 14s linear infinite; }
@keyframes gkk-spin-turn { to { transform: rotate(360deg); } }
.gkk-spin-pill {
  margin-left: -14px;
  padding: 7px 12px 7px 20px;
  background: #fff; color: #111;
  border-radius: 999px;
  font-weight: 800; font-size: 13px; line-height: 1; letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.gkk-spin-fab:hover .gkk-spin-pill,
.gkk-spin-fab:focus-visible .gkk-spin-pill { background: #7FD0F7; }
.gkk-spin-fab:focus-visible { outline: 3px solid #F5B806; outline-offset: 3px; border-radius: 999px; }
/* The plugin's own corner icon is hidden once ours is live (it would sit on the same spot). */
html.gkk-spin-ready .wlwl_wheel_icon { display: none !important; }
/* Hide while the wheel popup is open. */
html.wlwl-html .gkk-spin-fab,
html.wlwl-html .gkk-rv-tab { display: none !important; }
@media (prefers-reduced-motion: reduce) { .gkk-spin-wheel-g { animation: none; } }

/* ---------- 3. Reviews tab (LEFT edge, upper-middle) + drawer from the left (1.0.28) ---------- */
.gkk-rv-tab {
  position: fixed;
  left: 0;
  left: env(safe-area-inset-left);
  top: 45%;
  transform: translateY(-50%);
  z-index: 99980;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 38px; padding: 12px 0;
  background: #06452B; color: #fff;
  border: 2px solid #F5B806; border-left: 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  font-family: var(--gkk-sans, "Source Sans 3", Arial, sans-serif);
  font-weight: 700; font-size: 15px; letter-spacing: 0.05em; line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gkk-rv-tab:hover, .gkk-rv-tab:focus-visible { background: #0B5C39; color: #fff; }
.gkk-rv-tab:focus-visible { outline: 3px solid #F5B806; outline-offset: 2px; }
.gkk-rv-tab-star { color: #F5B806; font-size: 17px; }
.gkk-rv-tab-text { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); }
html.gkk-rv-open .gkk-rv-tab { display: none; }
/* Native Yotpo tab is replaced by the drawer (see INSTALL). */
body.gkk-n27-own-reviews .yotpo-reviews-tab,
body.gkk-n27-own-reviews #yotpo-reviews-tab { display: none !important; }

.gkk-rv-overlay {
  position: fixed; inset: 0; z-index: 1000000;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; transition: opacity 0.2s ease;
}
.gkk-rv-overlay.is-open { opacity: 1; }
.gkk-rv-overlay[hidden], .gkk-rv-panel[hidden] { display: none; }
.gkk-rv-panel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000001;
  width: min(430px, 92vw);
  display: flex; flex-direction: column;
  background: #fff; color: #1C1C1C;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-100%); transition: transform 0.25s ease;
  font-family: var(--gkk-sans, "Source Sans 3", Arial, sans-serif);
  outline: none;
}
.gkk-rv-panel.is-open { transform: translateX(0); }
.gkk-rv-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: #06452B; border-bottom: 3px solid #F5B806;
}
.gkk-rv-title {
  margin: 0; font-family: var(--gkk-display, Baskervville, Georgia, serif);
  font-size: 1.4rem; font-weight: 400; color: #F5B806; -webkit-text-fill-color: #F5B806; -webkit-text-stroke: 0; text-shadow: none;
}
.gkk-rv-close {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.gkk-rv-close:hover, .gkk-rv-close:focus-visible { background: rgba(255, 255, 255, 0.28); outline: 2px solid #F5B806; }
.gkk-rv-summary { margin: 0; padding: 10px 16px 0; font-size: 0.95rem; color: #333; min-height: 1.5em; }
.gkk-rv-summary .gkk-rv-stars { color: #FF990A; letter-spacing: 0.08em; }
.gkk-rv-tabs { display: flex; gap: 6px; padding: 10px 12px 0; border-bottom: 1px solid #E3E3E3; }
.gkk-rv-t {
  flex: 1 1 0; min-height: 44px; padding: 8px 6px;
  background: #F4F1EA; color: #1C1C1C;
  border: 1px solid #E3E3E3; border-bottom: 0; border-radius: 8px 8px 0 0;
  font: 700 0.95rem/1.15 var(--gkk-sans, "Source Sans 3", Arial, sans-serif); cursor: pointer;
}
.gkk-rv-t.is-active { background: #06452B; color: #fff; border-color: #06452B; }
.gkk-rv-t:focus-visible { outline: 3px solid #F5B806; outline-offset: -3px; }
.gkk-rv-count { font-weight: 400; opacity: 0.85; }
.gkk-rv-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 14px 14px; }
.gkk-rv-list { list-style: none; margin: 0; padding: 0; }
.gkk-rv-item { padding: 14px 0; border-bottom: 1px solid #E8E8E8; }
.gkk-rv-stars { color: #FF990A; font-size: 1.05rem; letter-spacing: 0.1em; }
.gkk-rv-item-title { margin: 4px 0 2px; font-weight: 700; font-size: 1.02rem; color: #1C1C1C; overflow-wrap: anywhere; }
.gkk-rv-text { margin: 0; font-size: 0.97rem; line-height: 1.5; color: #333; overflow-wrap: anywhere; white-space: pre-line; }
.gkk-rv-readmore { margin-top: 4px; padding: 6px 0; background: none; border: 0; color: #06452B; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 32px; }
.gkk-rv-meta { margin: 6px 0 0; font-size: 0.85rem; color: #666; }
.gkk-rv-meta strong { color: #1C1C1C; }
.gkk-rv-badge { color: #06452B; font-weight: 700; }
.gkk-rv-status { margin: 12px 0; text-align: center; font-size: 0.95rem; color: #555; }
.gkk-rv-more {
  display: block; width: 100%; min-height: 46px; margin: 8px 0 4px;
  background: #06452B; color: #fff; border: 2px solid #F5B806; border-radius: 8px;
  font: 700 1rem/1 var(--gkk-sans, "Source Sans 3", Arial, sans-serif); cursor: pointer;
}
.gkk-rv-more[hidden] { display: none; }
.gkk-rv-more:disabled { opacity: 0.6; cursor: default; }
.gkk-rv-foot {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #F4F1EA; border-top: 1px solid #E3E3E3; font-size: 0.82rem; color: #555;
}
.gkk-rv-all { color: #06452B; font-weight: 700; }
html.gkk-rv-lock, html.gkk-rv-lock body { overflow: hidden; }
@media (max-width: 480px) { .gkk-rv-panel { width: 100vw; } }
@media (prefers-reduced-motion: reduce) {
  .gkk-rv-panel, .gkk-rv-overlay { transition: none; }
}

/* ---------- 4. Corner safety at 360-430px ---------- */
/* Wheel: bottom-left (12px in, bottom 16px, ~56px tall). Chat: bottom-right
   (Tawk, offsets set in Tawk_API.customStyle). Reviews tab: LEFT edge at 45%
   of the screen height (about 110px tall), so its bottom is far above the
   wheel pill on every phone (the pill top is ~72px above the screen bottom).
   On short screens the tab moves up a little more. */
@media (max-width: 430px) {
  .gkk-spin-wheel { width: 52px; height: 52px; }
  .gkk-spin-pill { font-size: 12px; padding: 6px 10px 6px 18px; }
}
@media (max-height: 520px) {
  .gkk-rv-tab { top: 38%; padding: 8px 0; }
}

/* ---------- Theme button resets (Hello Elementor styles button:hover pink) ---------- */
html body button.gkk-spin-fab,
html body button.gkk-spin-fab:hover,
html body button.gkk-spin-fab:focus { background: transparent !important; border: 0 !important; color: #111 !important; box-shadow: none; padding: 0 !important; }
html body .gkk-rv-tab,
html body .gkk-rv-tab:visited { background: #06452B !important; color: #fff !important; }
html body .gkk-rv-tab:hover, html body .gkk-rv-tab:focus-visible { background: #0B5C39 !important; color: #fff !important; }
html body button.gkk-rv-close, html body button.gkk-rv-close:hover { background: rgba(255,255,255,0.14) !important; color: #fff !important; border: 0 !important; }
html body button.gkk-rv-t { background: #F4F1EA !important; color: #1C1C1C !important; border: 1px solid #E3E3E3 !important; border-bottom: 0 !important; }
html body button.gkk-rv-t.is-active { background: #06452B !important; color: #fff !important; border-color: #06452B !important; }
html body button.gkk-rv-more, html body button.gkk-rv-more:hover { background: #06452B !important; color: #fff !important; border: 2px solid #F5B806 !important; }
html body button.gkk-rv-readmore, html body button.gkk-rv-readmore:hover { background: none !important; color: #06452B !important; border: 0 !important; padding: 6px 0 !important; }
html body .gkk-rv-panel h2.gkk-rv-title { color: #F5B806 !important; -webkit-text-fill-color: #F5B806 !important; font-size: 1.4rem; margin: 0; }
html body .gkk-typing p.gkk-typing-live { color: #F4F1EA; }
