/* SASA Packaging — cookie banner, preferences window, embed placeholder and Cookie Policy page.
   Palette (same as the site): blush #F6E2E9 · ivory #FEFAF3 · sage #B8CFB3 · deep sage #84A282 · forest #2B3F2F
   Fonts: Cormorant Garamond (headings) · Outfit (buttons) · Inter (text). Everything is scoped to .sxc / .sxcp. */

.sxc {
  --c-ink: var(--sx-ink, #1f2d22);
  --c-text: var(--sx-text, #425246);
  --c-muted: var(--sx-muted, #5b6b5e);
  --c-ivory: var(--sx-ivory, #fefaf3);
  --c-sage: var(--sx-sage, #b8cfb3);
  --c-deep: var(--sx-sage-deep, #84a282);
  --c-ink-sage: var(--sx-sage-ink, #4d6b4f);
  --c-soft: var(--sx-sage-soft, #eef4ec);
  --c-blush: var(--sx-blush, #f6e2e9);
  --c-line: var(--sx-line, #e4e9df);
  --c-forest: var(--sx-forest, #2b3f2f);
  --c-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: var(--sx-font-body, "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
  color: var(--c-text);
}
.sxc [hidden] { display: none !important; }
.sxc *, .sxc *::before, .sxc *::after { box-sizing: border-box; }
.sxc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.sxc-lock { overflow: hidden; }

/* ---------- buttons ---------- */
.sxc-btn {
  appearance: none; cursor: pointer; border-radius: 999px; padding: 12px 22px; min-height: 46px;
  font: 600 0.92rem/1 var(--sx-font-head, "Outfit", "Inter", sans-serif); letter-spacing: 0.01em;
  border: 1.5px solid var(--c-ink-sage); white-space: nowrap;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--c-ease), box-shadow 0.25s;
}
.sxc-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(43, 63, 47, 0.16); }
.sxc-btn:active { transform: translateY(0); }
.sxc-btn--solid { background: var(--c-ink-sage); color: #fff; }
.sxc-btn--solid:hover { background: var(--c-forest); border-color: var(--c-forest); }
.sxc-btn--ghost { background: transparent; color: var(--c-ink-sage); }
.sxc-btn--ghost:hover { background: var(--c-soft); }
.sxc-btn--sm { min-height: 38px; padding: 9px 16px; font-size: 0.84rem; }
.sxc-btn:focus-visible, .sxc-link:focus-visible, .sxc-close:focus-visible, .sxc-details summary:focus-visible {
  outline: 3px solid rgba(132, 162, 130, 0.65); outline-offset: 2px;
}
.sxc-link {
  appearance: none; background: none; border: 0; padding: 0; margin-top: 10px; cursor: pointer;
  font: 600 0.86rem var(--sx-font-body, "Inter", sans-serif); color: var(--c-ink-sage);
  text-decoration: underline; text-underline-offset: 4px;
}
.sxc-link:hover { color: var(--c-forest); }

/* ---------- banner ---------- */
.sxc-banner {
  position: fixed; left: 50%; bottom: 22px; z-index: 1000;
  width: min(900px, calc(100% - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 24px;
  padding: 22px 26px;
  background: rgba(254, 250, 243, 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--c-line); border-radius: 24px;
  box-shadow: 0 28px 64px rgba(31, 45, 34, 0.2), 0 2px 8px rgba(31, 45, 34, 0.06);
  opacity: 0; transform: translate(-50%, 34px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.7s var(--c-ease);
}
.sxc-banner::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-sage), var(--c-deep), var(--c-blush));
}
.sxc-banner.is-in { opacity: 1; transform: translate(-50%, 0) scale(1); }

.sxc-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--c-blush); color: var(--c-ink); box-shadow: inset 0 0 0 1px rgba(31, 45, 34, 0.05);
}
.sxc-icon svg { width: 30px; height: 30px; }
.sxc-banner.is-in .sxc-icon { animation: sxcWiggle 1.1s 0.5s var(--c-ease) both; }

.sxc-title {
  margin: 0 0 6px; font: 600 1.6rem/1.1 var(--sx-font-display, "Cormorant Garamond", Georgia, serif);
  color: var(--c-ink); letter-spacing: -0.005em;
}
.sxc-text { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--c-text); }
.sxc-text a { color: var(--c-ink-sage); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sxc-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }

/* ---------- preferences window ---------- */
.sxc-modal {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px;
  background: rgba(31, 45, 34, 0.5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity 0.35s ease;
}
.sxc-modal.is-in { opacity: 1; }
.sxc-panel {
  width: min(680px, 100%); max-height: min(90vh, 780px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-ivory); border-radius: 28px; box-shadow: 0 40px 90px rgba(31, 45, 34, 0.35);
  transform: translateY(28px) scale(0.97); transition: transform 0.6s var(--c-ease);
}
.sxc-modal.is-in .sxc-panel { transform: none; }
.sxc-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 30px 10px; }
.sxc-panel__title { margin: 0 0 6px; font: 600 2.1rem/1.05 var(--sx-font-display, "Cormorant Garamond", Georgia, serif); color: var(--c-ink); }
.sxc-panel__lead { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--c-muted); max-width: 52ch; }
.sxc-close {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: #fff; border: 1px solid var(--c-line); color: var(--c-ink); transition: transform 0.3s var(--c-ease), background 0.2s;
}
.sxc-close:hover { background: var(--c-blush); transform: rotate(90deg); }
.sxc-close svg { width: 18px; height: 18px; }
.sxc-panel__body { overflow-y: auto; padding: 10px 30px 8px; overscroll-behavior: contain; }

.sxc-cat { margin: 12px 0; padding: 18px 20px; background: #fff; border: 1px solid var(--c-line); border-radius: 18px; transition: border-color 0.25s, box-shadow 0.25s; }
.sxc-cat:hover { border-color: var(--c-sage); box-shadow: 0 8px 22px rgba(31, 45, 34, 0.06); }
.sxc-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sxc-cat__name { margin: 0; font: 600 1.05rem var(--sx-font-head, "Outfit", sans-serif); color: var(--c-ink); }
.sxc-cat__text { margin: 8px 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--c-muted); }
.sxc-always { padding: 5px 12px; border-radius: 999px; background: var(--c-soft); color: var(--c-ink-sage); font: 700 0.72rem var(--sx-font-body, "Inter", sans-serif); letter-spacing: 0.06em; text-transform: uppercase; }

.sxc-details { margin-top: 12px; }
.sxc-details summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font: 600 0.82rem var(--sx-font-body, "Inter", sans-serif); color: var(--c-ink-sage); border-radius: 6px; }
.sxc-details summary::-webkit-details-marker { display: none; }
.sxc-details summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s; }
.sxc-details[open] summary::after { transform: rotate(225deg); }
.sxc-cookies { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.sxc-cookies li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto; gap: 4px 14px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: var(--c-ivory); font-size: 0.82rem; line-height: 1.5; }
.sxc-cookies code { font: 600 0.8rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--c-ink); word-break: break-all; }
.sxc-cookies span { color: var(--c-text); }
.sxc-cookies em { font-style: normal; color: var(--c-muted); white-space: nowrap; }

.sxc-panel__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 18px 30px 24px; border-top: 1px solid var(--c-line); background: rgba(254, 250, 243, 0.9); }

/* toggle switch */
.sxc-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; cursor: pointer; }
.sxc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sxc-switch__ui { position: absolute; inset: 0; border-radius: 999px; background: #d3decf; transition: background 0.3s; }
.sxc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(31, 45, 34, 0.3); transition: transform 0.35s var(--c-ease); }
.sxc-switch input:checked + .sxc-switch__ui { background: var(--c-ink-sage); }
.sxc-switch input:checked + .sxc-switch__ui::after { transform: translateX(22px); }
.sxc-switch input:focus-visible + .sxc-switch__ui { outline: 3px solid rgba(132, 162, 130, 0.65); outline-offset: 2px; }

/* "saved" message */
.sxc-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 1200; max-width: calc(100% - 32px);
  padding: 12px 22px; border-radius: 999px; background: var(--c-forest); color: #fff; font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 14px 34px rgba(31, 45, 34, 0.3); pointer-events: none;
  opacity: 0; transform: translate(-50%, 16px); transition: opacity 0.3s, transform 0.5s var(--c-ease);
}
.sxc-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* footer links added to the copyright line */
.sxc-legal { white-space: nowrap; }
.sxc-legal a, .sxc-legal button {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.sxc-legal a:hover, .sxc-legal button:hover { color: var(--sx-sage, #b8cfb3); }

/* ---------- embedded content that waits for permission (footer map, event videos) ---------- */
iframe.sxc-off { display: none !important; }
.sxc-embed {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  width: 100%; min-height: 170px; padding: 18px; border-radius: 12px;
  background: var(--sx-sage-soft, #eef4ec); border: 1px dashed var(--sx-sage, #b8cfb3);
  color: var(--sx-muted, #5b6b5e); font: 400 0.84rem/1.5 var(--sx-font-body, "Inter", sans-serif);
}
.sxc-embed svg { width: 26px; height: 26px; color: var(--sx-sage-ink, #4d6b4f); }
.sxc-embed p { margin: 0; max-width: 30ch; }
.sxc-embed .sxc-btn { --c-ink-sage: var(--sx-sage-ink, #4d6b4f); --c-soft: #fff; }

/* ---------- motion ---------- */
@keyframes sxcWiggle { 0% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.06); } 55% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }

/* ---------- small screens: the banner becomes a bottom sheet ---------- */
@media (max-width: 760px) {
  .sxc-banner {
    left: 0; bottom: 0; width: 100%; grid-template-columns: 1fr; gap: 14px;
    padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; transform: translateY(100%);
  }
  .sxc-banner.is-in { transform: translateY(0); }
  .sxc-banner::before { left: 20px; right: 20px; }
  .sxc-icon { width: 46px; height: 46px; }
  .sxc-icon svg { width: 24px; height: 24px; }
  .sxc-title { font-size: 1.45rem; }
  .sxc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .sxc-actions .sxc-btn { padding-inline: 10px; white-space: normal; }
  .sxc-panel { border-radius: 24px; max-height: 92vh; }
  .sxc-panel__head, .sxc-panel__body { padding-inline: 20px; }
  .sxc-panel__foot { padding: 16px 20px 20px; }
  .sxc-panel__foot .sxc-btn { flex: 1 1 100%; }
  .sxc-cookies li { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* WhatsApp and back-to-top buttons would sit under the banner: hide them until the visitor has chosen */
  body.sxc-open .float, body.sxc-open .sx-totop { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sxc *, .sxc *::before, .sxc *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* =====================================================================
   Cookie Policy page  (/cookie-policy.html)
   ===================================================================== */
.sxcp-hero {
  position: relative; overflow: hidden; background: #fefaf3;
  padding: clamp(130px, 14vw, 190px) 0 clamp(30px, 4vw, 52px);
}
.sxcp-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -110px; border-radius: 50%; background: #f6e2e9; opacity: 0.75; pointer-events: none; }
.sxcp-hero::after { content: ""; position: absolute; width: 230px; height: 230px; left: -80px; bottom: -90px; border-radius: 50%; background: #b8cfb3; opacity: 0.55; pointer-events: none; }
.sxcp-hero .sx-container { position: relative; z-index: 1; }
.sxcp-title { margin: 0 0 14px; font: 600 clamp(2.4rem, 5vw, 3.8rem)/1.05 var(--sx-font-display, "Cormorant Garamond", Georgia, serif); color: #1f2b22; letter-spacing: -0.01em; }
.sxcp-title::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 20px; background: #84a282; }
.sxcp-lead { margin: 0; max-width: 58ch; font: 400 1.06rem/1.75 var(--sx-font-body, Inter, system-ui, sans-serif); color: rgba(31, 43, 34, 0.72); }
.sxcp-updated { display: inline-block; margin-top: 16px; font-size: 0.84rem; color: #5b6b5e; }

.sxcp-body { background: #fefaf3; padding: 12px 0 clamp(56px, 8vw, 110px); }
.sxcp-wrap { max-width: 880px; }
.sxcp-section { margin: 0 0 clamp(28px, 4vw, 44px); }
.sxcp-section h2 { margin: 0 0 12px; font: 600 clamp(1.5rem, 2.4vw, 1.95rem)/1.15 var(--sx-font-display, "Cormorant Garamond", Georgia, serif); color: #1f2b22; }
.sxcp-section p, .sxcp-section li { font-size: 1rem; line-height: 1.75; color: #425246; }
.sxcp-section p { margin: 0 0 12px; }
.sxcp-section ul { margin: 0 0 12px; padding-left: 1.2rem; }
.sxcp-section a { color: #4d6b4f; text-decoration: underline; text-underline-offset: 3px; }
.sxcp-card { margin: 0 0 18px; padding: 22px 24px; background: #fff; border: 1px solid #e4e9df; border-radius: 20px; box-shadow: 0 1px 2px rgba(31, 45, 34, 0.04), 0 8px 24px rgba(31, 45, 34, 0.05); }
.sxcp-card h3 { margin: 0 0 4px; font: 600 1.15rem var(--sx-font-head, "Outfit", sans-serif); color: #1f2b22; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.sxcp-tag { padding: 4px 11px; border-radius: 999px; background: #eef4ec; color: #4d6b4f; font: 700 0.7rem var(--sx-font-body, Inter, sans-serif); letter-spacing: 0.06em; text-transform: uppercase; }
.sxcp-card > p { margin: 6px 0 14px; color: #5b6b5e; font-size: 0.95rem; }
.sxcp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sxcp-table th { text-align: left; padding: 8px 10px; font: 700 0.72rem var(--sx-font-body, Inter, sans-serif); letter-spacing: 0.08em; text-transform: uppercase; color: #5b6b5e; border-bottom: 1px solid #e4e9df; }
.sxcp-table td { padding: 11px 10px; vertical-align: top; border-bottom: 1px solid #f0f2ec; color: #425246; line-height: 1.55; }
.sxcp-table tr:last-child td { border-bottom: 0; }
.sxcp-table code { font: 600 0.84rem ui-monospace, SFMono-Regular, Menlo, monospace; color: #1f2b22; word-break: break-all; }
.sxcp-scroll { overflow-x: auto; }
.sxcp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sxcp-actions .sxc-btn { --c-ink-sage: #4d6b4f; --c-forest: #2b3f2f; --c-soft: #eef4ec; }
@media (max-width: 640px) {
  .sxcp-table thead { display: none; }
  .sxcp-table, .sxcp-table tbody, .sxcp-table tr, .sxcp-table td { display: block; width: 100%; }
  .sxcp-table tr { padding: 10px 0; border-bottom: 1px solid #f0f2ec; }
  .sxcp-table td { border: 0; padding: 3px 0; }
  .sxcp-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: #5b6b5e; }
}
