/* Marry Me — privacy choices banner/dialog, embed placeholders, and the legal footer.
   Colours follow the existing storefront palette (teal accent, ivory surface, warm ink). */
:root {
  --mm-c-ink: #2b241f;
  --mm-c-muted: #5f5246;
  --mm-c-teal: #0b746b;
  --mm-c-teal-deep: #07564f;
  --mm-c-surface: #fffdf9;
  --mm-c-line: rgba(43, 36, 31, 0.18);
}

/* ---------- banner (non-modal; first in tab order) ---------- */
.mm-consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100050;
  max-width: 980px; margin: 0 auto;
  display: grid; gap: 14px; grid-template-columns: 1fr auto; align-items: center;
  padding: 18px 20px;
  background: var(--mm-c-surface); color: var(--mm-c-ink);
  border: 1px solid var(--mm-c-line); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(30, 42, 47, 0.22);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.mm-consent-title { margin: 0 0 6px; font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: 1.15rem; line-height: 1.2; color: var(--mm-c-ink); }
.mm-consent-text { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--mm-c-muted); }
.mm-consent-text a { color: var(--mm-c-teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.mm-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Accept and Reject are deliberately identical in weight — no nudging. */
.mm-consent-btn {
  appearance: none; cursor: pointer; min-height: 44px; padding: 0 20px;
  font: 600 0.86rem/1 "Instrument Sans", system-ui, sans-serif;
  color: var(--mm-c-teal-deep); background: var(--mm-c-surface);
  border: 1.5px solid var(--mm-c-teal); border-radius: 999px;
}
.mm-consent-btn:hover { background: #eef6f4; }
.mm-consent-btn:focus-visible, .mm-consent-panel input:focus-visible, .mm-embed-load:focus-visible,
.mm-legal-footer a:focus-visible, .mm-legal-footer button:focus-visible {
  outline: 3px solid #b89253; outline-offset: 3px;
}

/* ---------- preferences dialog ---------- */
.mm-consent-lock { overflow: hidden; }
.mm-consent-overlay {
  position: fixed; inset: 0; z-index: 100060; display: grid; place-items: center; padding: 16px;
  background: rgba(36, 31, 28, 0.55);
}
.mm-consent-panel {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 24px; background: var(--mm-c-surface); color: var(--mm-c-ink);
  border-radius: 18px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  font-family: "Instrument Sans", system-ui, sans-serif;
}
.mm-consent-panel:focus { outline: none; }
.mm-consent-row {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid var(--mm-c-line);
}
.mm-consent-rowcopy { display: grid; gap: 4px; font-size: 0.86rem; line-height: 1.5; color: var(--mm-c-muted); }
.mm-consent-rowcopy strong { color: var(--mm-c-ink); font-size: 0.95rem; }
.mm-consent-rowcopy label { cursor: pointer; }
.mm-consent-row input[type="checkbox"] { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--mm-c-teal); cursor: pointer; }
.mm-consent-fixed { flex: none; font-size: 0.78rem; font-weight: 600; color: var(--mm-c-teal-deep); padding-top: 2px; }
.mm-consent-panel .mm-consent-actions { margin-top: 18px; border-top: 1px solid var(--mm-c-line); padding-top: 18px; }

/* ---------- embed placeholder (shown until Google Maps is allowed) ---------- */
.mm-embed { width: 100%; }
.mm-embed-fallback {
  display: grid; gap: 8px; align-content: center; min-height: 150px; padding: 14px;
  border: 1px dashed var(--mm-c-line); border-radius: 12px;
  background: rgba(255, 253, 249, 0.6); color: inherit; font-size: 0.82rem; line-height: 1.5;
}
.mm-embed-fallback[hidden] { display: none; }
.mm-embed-fallback p { margin: 0; }
.mm-embed-fallback a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mm-embed-load {
  justify-self: start; appearance: none; cursor: pointer; min-height: 44px; padding: 0 16px;
  font: 600 0.82rem/1.2 "Instrument Sans", system-ui, sans-serif; text-align: left;
  color: var(--mm-c-teal-deep); background: var(--mm-c-surface);
  border: 1.5px solid var(--mm-c-teal); border-radius: 999px;
}
.mm-embed-frame iframe { display: block; width: 100%; border: 0; }

/* ---------- legal footer (pages without the full luxury footer) ---------- */
.mm-legal-footer {
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)); margin-top: 32px;
  background: #f3efea; color: var(--mm-c-ink); border-top: 1px solid var(--mm-c-line);
  font-family: "Instrument Sans", system-ui, sans-serif; font-size: 0.86rem; line-height: 1.6; text-align: center;
}
.mm-legal-footer p { margin: 0 auto 10px; max-width: 70ch; color: var(--mm-c-muted); }
.mm-legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin: 0 0 12px; padding: 0; list-style: none; }
.mm-legal-links a, .mm-legal-footer a { color: var(--mm-c-ink); text-decoration: underline; text-underline-offset: 3px; }
/* Inside the existing luxury footer (light theme, defined in figma-refresh.css) the
   legal row lines up with the footer's own centred content column. */
.luxury-footer .mm-legal-row {
  max-width: var(--mm-max, 1200px); margin: 26px auto 0; padding: 18px clamp(22px, 4vw, 52px) 0;
  border-top: 1px solid var(--mm-line, rgba(43, 36, 31, 0.18)); font-size: 0.86rem; line-height: 1.6;
}
.luxury-footer .mm-legal-row a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.luxury-footer .mm-legal-row .mm-legal-links { justify-content: flex-start; margin-bottom: 8px; }
.luxury-footer .mm-legal-row p { margin: 0; max-width: none; color: inherit; opacity: 0.85; }

@media print { .mm-legal-footer, .mm-consent-banner, .mm-consent-overlay { display: none !important; } }

@media (max-width: 720px) {
  .mm-consent-banner { grid-template-columns: 1fr; left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; max-height: 80vh; overflow: auto; gap: 10px; }
  .mm-consent-title { font-size: 1.05rem; margin-bottom: 4px; }
  .mm-consent-banner .mm-consent-btn { min-height: 44px; padding: 0 14px; }
  .mm-consent-actions { justify-content: stretch; }
  .mm-consent-actions .mm-consent-btn { flex: 1 1 120px; }
}
@media (prefers-reduced-motion: no-preference) {
  .mm-consent-btn { transition: background-color 0.15s ease; }
}

/* ---------- policy pages (privacy / terms / returns / cookies) ---------- */
.mm-policy h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
.mm-policy .mm-content-card h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.mm-policy .mm-content-card ul { margin: 0 0 12px; padding-left: 1.2em; }
.mm-policy .mm-content-card li { margin: 4px 0; }
.mm-policy .mm-content-card a { color: var(--mm-c-teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.mm-policy-updated { text-align: center; color: var(--mm-c-muted); font-size: 0.86rem; margin: -28px 0 22px; }
.mm-policy-draft {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; font-size: 0.88rem; line-height: 1.6;
  background: #fff7e0; border: 1px solid #d9b45a; color: #4a3a12;
}
.mm-policy-todo {
  margin: 14px 0 6px; padding: 12px 14px; border-radius: 10px; font-size: 0.88rem; line-height: 1.6;
  background: #fff7e0; border: 1px dashed #b8862b; color: #4a3a12;
}
.mm-policy-todo ul { margin: 6px 0 0; }
.mm-policy-table { overflow-x: auto; margin: 10px 0; }
.mm-policy-table:focus-visible { outline: 3px solid #b89253; outline-offset: 2px; }
.mm-policy-table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; line-height: 1.55; }
.mm-policy-table th, .mm-policy-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--mm-c-line); color: #5a4a3e; }
.mm-policy-table thead th { border-top: 0; color: var(--mm-c-ink); font-weight: 600; }
.mm-policy-table tbody th { color: var(--mm-c-ink); font-weight: 600; min-width: 9em; }
.mm-policy code { font-size: 0.82em; overflow-wrap: anywhere; }
.mm-policy-see { text-align: center; margin: 22px 0 0; }

/* ---------- short privacy notice under forms ---------- */
.mm-privacy-note { margin: 12px 0; font-size: 0.82rem; line-height: 1.55; color: #5a4a3e; }
.mm-privacy-note a { color: #07564f; text-decoration: underline; text-underline-offset: 2px; }

.mm-contact-list { list-style: none; margin: 0 0 12px; padding: 0; }
.mm-contact-list li { margin: 6px 0; }
.mm-content-card a { color: #07564f; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- skip link (keyboard users bypass the large navigation) ---------- */
.mm-skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100100;
  padding: 12px 18px; background: #fffdf9; color: #07564f; border: 2px solid #0b746b; border-radius: 10px;
  font: 600 0.9rem/1 "Instrument Sans", system-ui, sans-serif; text-decoration: underline;
}
.mm-skip-link:focus { top: 8px; outline: 3px solid #b89253; outline-offset: 2px; }

/* ---------- accessibility: contrast overrides ----------
   The brand gold (#B8905A) is only ~2.5-2.9:1 on the ivory backgrounds when used as TEXT.
   These keep the same champagne hue but darker (#86642F, >= 4.7:1) for small text labels only;
   gold used for lines, bullets and buttons elsewhere is untouched. */
.mm-shop-section .mm-kicker,
.mm-carousel-section .mm-kicker,
.mm-shop-section[data-mm-section] .mm-shop-section-head .mm-kicker,
.mm-carousel-head .mm-kicker,
.mm-mini-placeholder { color: #86642F !important; }

/* Policy tables: stack into labelled blocks on narrow screens instead of scrolling sideways. */
@media (max-width: 680px) {
  .mm-policy-table table, .mm-policy-table tbody, .mm-policy-table tr, .mm-policy-table td, .mm-policy-table th { display: block; width: 100%; }
  .mm-policy-table thead { position: absolute; left: -9999px; }
  .mm-policy-table tr { padding: 12px 0; border-top: 1px solid var(--mm-c-line); }
  .mm-policy-table th, .mm-policy-table td { border: 0; padding: 2px 0; min-width: 0; }
  .mm-policy-table tbody th { padding-bottom: 6px; font-size: 0.95rem; }
  .mm-policy-table td::before { content: attr(data-label); display: block; font-weight: 600; font-size: 0.76rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--mm-c-ink); margin-top: 6px; }
}
