/* GGG eSite — Digital Guestbook, the guests' page (guestbook.js). Follows the site's eSite colors and fonts (so light
   and dark designs both work); the page to draw on keeps the design's light background. Buttons are written as
   ".ggg-gb button.x" so a theme's own button and hover styles don't win over them. Phone first. */
.ggg-gb { max-width: 860px; margin: 0 auto; color: var(--e-global-color-ggg_text, inherit); box-sizing: border-box; }
.ggg-gb *, .ggg-gb-cam * { box-sizing: border-box; }
.ggg-gb [hidden], .ggg-gb-cam [hidden] { display: none !important; }
.ggg-gb .ggg-gb-i { display: inline-grid; place-items: center; line-height: 0; flex: none; }
.ggg-gb .ggg-gb-i svg, .ggg-gb-cam .ggg-gb-i svg { width: 22px; height: 22px; display: block; }
.ggg-gb button:focus-visible, .ggg-gb input:focus-visible, .ggg-gb textarea:focus-visible, .ggg-gb-pick:focus-within, .ggg-gb-cam button:focus-visible { outline: 3px solid rgba(138,90,68,.45); outline-offset: 2px; }

/* the head and short notes */
.ggg-gb-head { text-align: center; margin-bottom: 6px; }
.ggg-gb-hello { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--e-global-color-ggg_primary_strong, #8a5a44); }
.ggg-gb .ggg-gb-title { margin: 4px 0 0; font-size: 28px; font-weight: 400; line-height: 1.2; color: inherit; font-family: var(--e-global-typography-ggg_title-font-family, inherit); }
.ggg-gb-lead, .ggg-gb-note, .ggg-gb-consent, .ggg-gb-pending { margin: 6px auto 12px; max-width: 560px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--e-global-color-ggg_text_soft, inherit); }
.ggg-gb-consent { margin: 10px auto 0; font-size: 13px; }
.ggg-gb-pending { padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--e-global-color-ggg_line, #d5cdc5); }
.ggg-gb-err { margin: 8px auto 0; max-width: 560px; color: #b3261e; text-align: center; font-size: 14px; line-height: 1.4; }
.ggg-gb-err:empty { display: none; }
.ggg-gb-live { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ggg-gb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ggg-gb-msg { max-width: 520px; margin: 0 auto; padding: 18px; text-align: center; border-radius: 16px; border: 1px solid var(--e-global-color-ggg_line, #e5e5e5); background: var(--e-global-color-ggg_surface, transparent); }
.ggg-gb-msg p { margin: 0 0 6px; }

/* the tool bar */
.ggg-gb-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; padding: 6px 8px; margin: 0 auto 10px; border: 1px solid var(--e-global-color-ggg_line, #e2dbd3); border-radius: 16px; background: var(--e-global-color-ggg_surface, #fff); color: var(--e-global-color-ggg_text, #2b2b2b); }
.ggg-gb-grp { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px; }
.ggg-gb button.ggg-gb-tool { display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; box-shadow: none; text-transform: none; }
.ggg-gb button.ggg-gb-tool:hover { background: rgba(127,127,127,.14); color: inherit; }
.ggg-gb button.ggg-gb-tool[aria-pressed="true"] { background: var(--e-global-color-ggg_primary_strong, #8a5a44); color: var(--e-global-color-ggg_on_primary, #fff); }
.ggg-gb button.ggg-gb-tool:disabled { opacity: .32; cursor: default; background: transparent; color: inherit; }
.ggg-gb-dot { display: block; border-radius: 50%; background: currentColor; }
.ggg-gb button.ggg-gb-size[aria-pressed="true"] { background: rgba(127,127,127,.18); color: inherit; box-shadow: inset 0 0 0 2px var(--e-global-color-ggg_primary_strong, #8a5a44); }
.ggg-gb .ggg-gb-size.is-er .ggg-gb-dot { background: transparent !important; border: 1.5px solid currentColor; }
.ggg-gb button.ggg-gb-sw, .ggg-gb .ggg-gb-sw { position: relative; display: block; width: 30px; height: 30px; min-height: 0; margin: 2px; padding: 0; border: 1px solid rgba(0,0,0,.18); border-radius: 50%; cursor: pointer; box-shadow: none; }
.ggg-gb button.ggg-gb-sw:hover { border-color: rgba(0,0,0,.4); }
.ggg-gb button.ggg-gb-sw[aria-pressed="true"], .ggg-gb .ggg-gb-pick.is-on { box-shadow: 0 0 0 2px var(--e-global-color-ggg_surface, #fff), 0 0 0 4px var(--e-global-color-ggg_primary_strong, #8a5a44); }
.ggg-gb .ggg-gb-pick { overflow: hidden; background-image: conic-gradient(#e53935, #fdd835, #43a047, #00acc1, #3949ab, #8e24aa, #e53935); }
.ggg-gb .ggg-gb-pick.is-on { background-image: none; }
.ggg-gb .ggg-gb-pick-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
@media (max-width: 360px) {
	.ggg-gb-bar { gap: 4px 8px; padding: 4px; }
	.ggg-gb button.ggg-gb-tool { width: 36px; height: 36px; }
	.ggg-gb button.ggg-gb-sw, .ggg-gb .ggg-gb-sw { width: 27px; height: 27px; }
}

/* the page */
.ggg-gb-wrap { display: flex; justify-content: center; width: 100%; }
.ggg-gb-stage { position: relative; flex: none; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.10), 0 10px 30px rgba(0,0,0,.10); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ggg-gb-canvas { display: block; width: 100%; height: 100%; border-radius: 6px; touch-action: none; cursor: crosshair; }
.ggg-gb-texts { position: absolute; inset: 0; pointer-events: none; }
.ggg-gb-tb { position: absolute; pointer-events: auto; outline: 1.5px dashed transparent; outline-offset: 6px; border-radius: 2px; }
.ggg-gb-tb:hover { outline-color: rgba(127,127,127,.35); }
.ggg-gb-tb.is-on { outline-color: var(--e-global-color-ggg_primary_strong, #8a5a44); }
.ggg-gb textarea.ggg-gb-tb-in { display: block; width: 100%; min-height: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; resize: none; overflow: hidden; text-align: center; font-size: calc(var(--gb-s, 76) * var(--gb-k, .3) * 1px); line-height: 1.25; font-weight: 400; letter-spacing: normal; text-transform: none; -webkit-user-select: text; user-select: text; }
.ggg-gb textarea.ggg-gb-tb-in::placeholder { color: currentColor; opacity: .4; }
.ggg-gb button.ggg-gb-tb-h { position: absolute; display: none; place-items: center; width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; border: 2px solid var(--e-global-color-ggg_surface, #fff); border-radius: 50%; background: var(--e-global-color-ggg_primary_strong, #8a5a44); color: var(--e-global-color-ggg_on_primary, #fff); box-shadow: 0 2px 6px rgba(0,0,0,.25); touch-action: none; cursor: pointer; z-index: 2; }
.ggg-gb button.ggg-gb-tb-h:hover { background: var(--e-global-color-ggg_primary_strong, #8a5a44); color: var(--e-global-color-ggg_on_primary, #fff); }
.ggg-gb .ggg-gb-tb-h .ggg-gb-i svg { width: 17px; height: 17px; }
.ggg-gb .ggg-gb-tb.is-on .ggg-gb-tb-h { display: grid; }
.ggg-gb button.ggg-gb-tb-move { top: -24px; left: -24px; cursor: move; }
.ggg-gb button.ggg-gb-tb-x { top: -24px; right: -24px; }
.ggg-gb button.ggg-gb-tb-size { bottom: -24px; right: -24px; cursor: nwse-resize; }

/* the bigger page: fills the screen to draw (phones) */
html.ggg-gb-noscroll, html.ggg-gb-noscroll body, html.ggg-gb-noscroll-cam, html.ggg-gb-noscroll-cam body { overflow: hidden; }
.ggg-gb-pad.is-max { position: fixed; inset: 0; z-index: 99995; display: flex; flex-direction: column; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: var(--e-global-color-ggg_bg, #f2eee8); }
.ggg-gb-pad.is-max .ggg-gb-bar { flex: none; margin-bottom: 8px; }
.ggg-gb-pad.is-max .ggg-gb-wrap { flex: 1 1 auto; min-height: 0; align-items: center; }

/* selfie and voice note */
.ggg-gb-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin: 18px auto 0; }
.ggg-gb-parts > :only-child { grid-column: 1 / -1; }
@media (max-width: 600px) { .ggg-gb-parts { grid-template-columns: 1fr; } }
.ggg-gb-part { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--e-global-color-ggg_line, #e2dbd3); border-radius: 16px; background: var(--e-global-color-ggg_surface, transparent); text-align: center; }
.ggg-gb .ggg-gb-ptitle { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: inherit; }
.ggg-gb-ptitle small, .ggg-gb-label small { font-weight: 400; color: var(--e-global-color-ggg_text_soft, inherit); }
.ggg-gb-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.ggg-gb-row-s { gap: 2px 6px; }
.ggg-gb-hint { font-size: 13px; color: var(--e-global-color-ggg_text_soft, inherit); }
.ggg-gb-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ggg-gb-selfie-view { width: 100%; display: flex; justify-content: center; }
.ggg-gb-selfie-img { display: block; max-width: 220px; max-height: 260px; width: auto; height: auto; border-radius: 12px; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.ggg-gb button.ggg-gb-btn, .ggg-gb-cam button.ggg-gb-btn, .ggg-gb button.ggg-gb-rec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin: 0; padding: 0 18px; border: 1.5px solid var(--e-global-color-ggg_primary_strong, #8a5a44); border-radius: 999px; background: var(--e-global-color-ggg_primary_strong, #8a5a44); color: var(--e-global-color-ggg_on_primary, #fff); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-transform: none; cursor: pointer; box-shadow: none; }
.ggg-gb button.ggg-gb-btn:hover, .ggg-gb-cam button.ggg-gb-btn:hover, .ggg-gb button.ggg-gb-rec:hover { background: var(--e-global-color-ggg_primary_strong, #8a5a44); color: var(--e-global-color-ggg_on_primary, #fff); filter: brightness(1.06); }
.ggg-gb button.ggg-gb-btn-soft, .ggg-gb button.ggg-gb-btn-soft:hover { background: transparent; color: var(--e-global-color-ggg_primary_strong, #8a5a44); }
.ggg-gb button.ggg-gb-btn:disabled, .ggg-gb button.ggg-gb-rec:disabled { opacity: .6; cursor: default; }
.ggg-gb button.ggg-gb-link, .ggg-gb-cam button.ggg-gb-link { min-height: 36px; margin: 0; padding: 6px 8px; border: 0; background: none; color: var(--e-global-color-ggg_primary_strong, #8a5a44); font: inherit; font-size: 14px; text-decoration: underline; text-transform: none; cursor: pointer; box-shadow: none; }
.ggg-gb button.ggg-gb-link:hover { background: none; color: var(--e-global-color-ggg_primary_strong, #8a5a44); }
.ggg-gb-recrow { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ggg-gb button.ggg-gb-rec { min-height: 50px; padding: 0 22px; }
.ggg-gb button.ggg-gb-rec.is-on, .ggg-gb button.ggg-gb-rec.is-on:hover { background: #b3261e; border-color: #b3261e; color: #fff; }
.ggg-gb .ggg-gb-rec.is-on .ggg-gb-i { animation: ggg-gb-pulse 1.2s ease-in-out infinite; }
@keyframes ggg-gb-pulse { 50% { opacity: .35; } }
.ggg-gb-timer, .ggg-gb-len { font-size: 15px; font-variant-numeric: tabular-nums; }
.ggg-gb-have { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.ggg-gb-audio { display: block; width: 100%; max-width: 320px; }

/* name, a few words, send */
.ggg-gb-fields { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 18px auto 0; text-align: left; }
.ggg-gb-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.ggg-gb input.ggg-gb-in, .ggg-gb textarea.ggg-gb-in { display: block; width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border: 1px solid var(--e-global-color-ggg_line, #ccc); border-radius: 12px; background: var(--e-global-color-ggg_surface, #fff); color: inherit; font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; }
.ggg-gb textarea.ggg-gb-in { min-height: 96px; resize: vertical; }
.ggg-gb .ggg-gb-pw { text-align: center; font-size: 20px; letter-spacing: .08em; }
.ggg-gb-sendrow { display: flex; flex-direction: column; gap: 6px; max-width: 560px; margin: 14px auto 0; }
.ggg-gb button.ggg-gb-send { width: 100%; min-height: 52px; margin: 0; padding: 0 24px; border: 0; border-radius: 999px; background: var(--e-global-color-ggg_primary_strong, #8a5a44); color: var(--e-global-color-ggg_on_primary, #fff); font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: none; }
.ggg-gb button.ggg-gb-send:hover { background: var(--e-global-color-ggg_primary_strong, #8a5a44); color: var(--e-global-color-ggg_on_primary, #fff); filter: brightness(1.06); }
.ggg-gb button.ggg-gb-send:disabled { opacity: .7; cursor: default; filter: none; }
.ggg-gb-prog { display: block; height: 4px; border-radius: 4px; background: rgba(127,127,127,.2); overflow: hidden; visibility: hidden; }
.ggg-gb-prog.is-on { visibility: visible; }
.ggg-gb-prog i { display: block; width: 0; height: 100%; background: var(--e-global-color-ggg_primary_strong, #8a5a44); transition: width .25s; }
.ggg-gb-gate { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.ggg-gb .ggg-gb-gate button.ggg-gb-send { margin-top: 8px; }
.ggg-gb-form > .ggg-gb-link { display: block; margin: 14px auto 0; }

/* thank you */
.ggg-gb-done { max-width: 560px; margin: 0 auto; padding: 28px 20px; border-radius: 18px; text-align: center; border: 1px solid var(--e-global-color-ggg_line, #e5e5e5); background: var(--e-global-color-ggg_surface, transparent); outline: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ggg-gb-done strong { display: block; font-size: 22px; font-weight: 400; line-height: 1.35; color: var(--e-global-color-ggg_primary_strong, inherit); font-family: var(--e-global-typography-ggg_title-font-family, inherit); }
.ggg-gb-done.is-saved strong { font-size: 18px; color: inherit; }
.ggg-gb-done .ggg-gb-lost { margin: -6px 0 0; max-width: 460px; font-size: 15px; line-height: 1.45; color: #b3261e; } /* a part that couldn't be sent (the rest arrived) */
.ggg-gb-done .ggg-gb-lost + .ggg-gb-lost { margin-top: -12px; }

/* the camera (on top of the page) */
.ggg-gb-cam { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; background: #0d0c0b; color: #fff; }
.ggg-gb-cam-view { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ggg-gb-cam-v, .ggg-gb-cam-still { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ggg-gb-cam-v { transform: scaleX(-1); } /* (a mirror while posing; the photo itself is not mirrored) */
.ggg-gb-cam-msg { position: absolute; margin: 0; padding: 0 24px; text-align: center; color: rgba(255,255,255,.8); }
.ggg-gb-cam-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 104px; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); }
.ggg-gb-cam button.ggg-gb-shutter { width: 74px; height: 74px; min-height: 0; margin: 0; padding: 5px; border: 4px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; box-shadow: none; }
.ggg-gb-cam button.ggg-gb-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.ggg-gb-cam button.ggg-gb-shutter:disabled { opacity: .4; }
.ggg-gb-cam button.ggg-gb-btn-soft, .ggg-gb-cam button.ggg-gb-btn-soft:hover { background: transparent; border-color: #fff; color: #fff; }
.ggg-gb-cam button.ggg-gb-cam-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; box-shadow: none; }

/* kiosk: the page is the whole screen (no way out of it for the guests) */
.ggg-gb.is-kiosk { position: fixed; inset: 0; z-index: 99990; max-width: none; margin: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: max(16px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); background: var(--e-global-color-ggg_bg, #f7f4ef); }
.ggg-gb.is-kiosk .ggg-gb-form { max-width: 900px; margin: 0 auto; }
.ggg-gb.is-kiosk .ggg-gb-done { margin-top: 18vh; }

/* the section's card (anywhere but the guestbook's page): a button to the page (guestbook-go.js adds the pass) */
.ggg-gb-card { max-width: 520px; margin: 0 auto; padding: 26px 20px; border-radius: 18px; border: 1px solid var(--e-global-color-ggg_line, #e2dbd3); background: var(--e-global-color-ggg_surface, transparent); color: var(--e-global-color-ggg_text, inherit); text-align: center; box-sizing: border-box; }
.ggg-gb-card .ggg-gb-card-title { margin: 0; font-size: 28px; font-weight: 400; line-height: 1.2; color: inherit; font-family: var(--e-global-typography-ggg_title-font-family, inherit); }
.ggg-gb-card .ggg-gb-card-sub { margin: 6px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--e-global-color-ggg_primary_strong, #8a5a44); }
.ggg-gb-card .ggg-gb-card-line { margin: 12px auto 0; max-width: 380px; font-size: 15px; line-height: 1.5; color: var(--e-global-color-ggg_text_soft, inherit); }
.ggg-gb-card a.ggg-gb-card-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; max-width: 100%; min-height: 48px; margin-top: 18px; padding: 0 26px; border-radius: 999px; background: var(--e-global-color-ggg_primary_strong, #8a5a44); color: var(--e-global-color-ggg_on_primary, #fff); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center; }
.ggg-gb-card a.ggg-gb-card-btn:hover, .ggg-gb-card a.ggg-gb-card-btn:focus { color: var(--e-global-color-ggg_on_primary, #fff); text-decoration: none; filter: brightness(1.06); }
.ggg-gb-card a.ggg-gb-card-btn:focus-visible { outline: 3px solid rgba(138,90,68,.4); outline-offset: 3px; }
.ggg-gb-closed .ggg-gb-note { margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
	.ggg-gb .ggg-gb-rec.is-on .ggg-gb-i { animation: none; }
	.ggg-gb-prog i { transition: none; }
}
/* the designs' section: [gggesite_guestbook part="button" class="…"] (0.2.0) — only the button; a design's own
   classes give its look (these rules carry no weight: :where()); with no class, a quiet button in the site's colors */
:where(.ggg-gb-go-wrap) { text-align: center; }
:where(.ggg-gb-go-wrap) :where(a.ggg-gb-go) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; max-width: 100%; text-align: center; text-decoration: none; }
.ggg-gb-go-wrap a.ggg-gb-go-plain { min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--e-global-color-ggg_primary_strong, #8a5a44); color: var(--e-global-color-ggg_on_primary, #fff); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.ggg-gb-go-wrap a.ggg-gb-go-plain:hover, .ggg-gb-go-wrap a.ggg-gb-go-plain:focus { color: var(--e-global-color-ggg_on_primary, #fff); text-decoration: none; filter: brightness(1.06); }
.ggg-gb-go-wrap a.ggg-gb-go:focus-visible { outline: 3px solid rgba(138,90,68,.4); outline-offset: 3px; }
/* a sample in the owner's own preview: "Only you see this…" */
.ggg-gb-sample-note { margin: 10px auto 0; max-width: 420px; font-size: 13px; line-height: 1.4; text-align: center; opacity: .75; }
