
/* Animated pill switches inspired by the visitor's sun/moon reference. */
.personalize { margin-block: .25rem 1rem; text-align: center; }
.personalize h2 { font-family: var(--wedding-font-body); font-size: .9rem; font-weight: 600; margin-bottom: .3rem; }
.personalize-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .5rem; }
.personalize-control { display: grid; justify-items: center; gap: .6rem; }
.personalize-label { font-size: .95rem; font-weight: 600; }
.personalize-switch {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  width: 78px; height: 38px; padding: 4px; border: 0; border-radius: 100px;
  color: #315b40; background: #e3dbc6; cursor: pointer;
  transition: background .35s ease, color .35s ease, box-shadow .25s;
}
.personalize-switch .toggle-icon { z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; }
.personalize-switch .toggle-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.personalize-switch .toggle-thumb {
  position: absolute; top: 4px; left: 4px; width: 30px; height: 30px;
  border-radius: 50%; background: #fff4db; box-shadow: 0 2px 9px #15202b26;
  transition: transform .35s cubic-bezier(.2, .9, .25, 1.25), background .35s;
}
.personalize-switch[aria-pressed="true"] { color: #ffeac0; background: #1e4632; }
.personalize-switch[aria-pressed="true"] .toggle-thumb { transform: translateX(40px); background: #efb64d; }
.personalize-switch .toggle-icon:first-child { color: #173f2d; }
.personalize-switch[aria-pressed="true"] .toggle-icon:first-child { color: #a4bca8; }
.personalize-switch[aria-pressed="true"] .toggle-icon:last-child { color: #153526; }
.personalize-switch:focus-visible { outline: 3px solid var(--wedding-color-accent); outline-offset: 4px; }
.personalize-note { font-size: .85rem; color: var(--wedding-color-muted); max-width: 25rem; margin: .5rem auto 0; }
html[data-bs-theme="dark"] .info-card, html[data-bs-theme="dark"] .arrival-map { border-color: var(--wedding-color-border); }
html[data-bs-theme="dark"] .text-body-secondary { color: var(--wedding-color-muted) !important; }
html[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: var(--wedding-color-text); --bs-btn-border-color: var(--wedding-color-border); }
@media (prefers-reduced-motion: reduce) {
 .personalize-switch, .personalize-switch .toggle-thumb { transition: none; }
}

.personalize p { font-size: .78rem; margin-bottom: 0; }
