/* Svatba360 · cookie banner and settings, in the site's design (20.11.2026).
   Colours: plum, lilac, peach and their shades. Fonts follow the page: the page's display face for headings, Onest for text.
   Pages with the web design set --display-weight: 500 (Unbounded); the phone pages use Sofia Sans at 800. */
#cookie-consent { --c-plum: #4A275E; --c-night: #1F0E2A; --c-ink: #2A1238; --c-lilac: #E3D9EF; --c-peach: #FFAA76; --c-paper: #FAF7FC; --c-line: rgba(74,39,94,.14); --c-muted: #6B5578;
  font: 15px/1.6 var(--f-body, "Onest", system-ui, sans-serif); color: var(--c-ink); }
#cookie-consent [hidden] { display: none !important; }
#cookie-consent h2, #cookie-consent h3 { font-family: var(--f-display, "Sofia Sans", system-ui, sans-serif); font-weight: var(--display-weight, 800); letter-spacing: -.02em; color: inherit; margin: 0; }
#cookie-consent p { margin: 0; }

/* banner: a floating plum card */
.cookie-banner { position: fixed; z-index: 1000; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(1120px, calc(100% - 40px)); max-height: 85dvh; overflow: auto;
  display: flex; align-items: center; gap: 40px; padding: 26px 30px; border-radius: 26px; background: var(--c-night); color: var(--c-lilac);
  box-shadow: 0 30px 70px -24px rgba(31,14,42,.7), 0 0 0 1px rgba(227,217,239,.12); animation: cookie-in .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-copy { flex: 1; min-width: 0; }
#cookie-consent .cookie-banner h2 { font-size: 22px; line-height: 1.2; color: var(--c-paper); margin-bottom: 8px; }
.cookie-copy p { font-size: 14.5px; color: rgba(227,217,239,.86); max-width: 70ch; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .cookie-actions { flex: none; flex-direction: row; flex-wrap: nowrap; }

/* buttons: the site's pills */
#cookie-consent button { font: 600 15px/1.2 var(--f-body, "Onest", system-ui, sans-serif); cursor: pointer; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid currentColor; background: transparent; color: inherit; transition: background .25s, color .25s, border-color .25s, transform .3s cubic-bezier(.16,1,.3,1); }
#cookie-consent button:hover { transform: translateY(-1px); }
.cookie-banner button { border-color: rgba(227,217,239,.4) !important; color: var(--c-paper) !important; }
.cookie-banner button:hover { background: rgba(227,217,239,.1) !important; }
#cookie-consent .cookie-banner button[data-choice=accept] { background: var(--c-peach) !important; border-color: var(--c-peach) !important; color: var(--c-ink) !important; }
#cookie-consent .cookie-banner button[data-choice=accept]:hover { background: #ffbb91 !important; }
#cookie-consent button:focus-visible, #cookie-consent input:focus-visible { outline: 3px solid var(--c-peach); outline-offset: 3px; }

/* settings dialog: a light card like the site's forms */
.cookie-dialog { max-width: 680px; width: calc(100% - 32px); max-height: calc(100dvh - 40px); overflow: auto; border: 0; border-radius: 28px; padding: 32px; background: var(--c-paper); color: var(--c-ink);
  box-shadow: 0 40px 100px -30px rgba(31,14,42,.65); }
.cookie-dialog::backdrop { background: rgba(31,14,42,.62); backdrop-filter: blur(4px); }
.cookie-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
#cookie-consent .cookie-dialog h2 { font-size: 26px; line-height: 1.15; }
#cookie-consent .cookie-close { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; font-size: 24px; line-height: 1; border: 1px solid var(--c-line); color: var(--c-ink); }
#cookie-consent .cookie-close:hover { background: var(--c-lilac); }
.cookie-dialog > p { color: var(--c-muted); font-size: 15px; margin-bottom: 8px !important; }
.cookie-category { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; border-top: 1px solid var(--c-line); cursor: pointer; }
div.cookie-category { cursor: default; }
#cookie-consent .cookie-category h3 { font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.cookie-category p { color: var(--c-muted); font-size: 14px; line-height: 1.55; }
.cookie-required { flex: none; font-size: 12px; font-weight: 600; color: var(--c-plum); background: var(--c-lilac); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
/* switches instead of plain checkboxes */
.cookie-category input { flex: none; -webkit-appearance: none; appearance: none; width: 52px; height: 30px; margin: 0; border-radius: 999px; background: #CDBEE3; position: relative; cursor: pointer; transition: background .25s; }
.cookie-category input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(31,14,42,.3); transition: transform .3s cubic-bezier(.16,1,.3,1), background .25s; }
.cookie-category input:checked { background: var(--c-plum); }
.cookie-category input:checked::after { transform: translateX(22px); background: var(--c-peach); }
.cookie-details { font-size: 13px; color: var(--c-muted); border-top: 1px solid var(--c-line); padding-top: 16px; }
.cookie-details a { color: var(--c-plum); text-decoration: underline; text-underline-offset: 3px; }
.cookie-dialog .cookie-actions { margin-top: 22px; }
.cookie-dialog .cookie-actions button { flex: 1; padding: 12px 14px; border-color: var(--c-ink); color: var(--c-ink); }
.cookie-dialog .cookie-actions button:hover { background: var(--c-ink); color: var(--c-paper); }
#cookie-consent .cookie-dialog button[data-choice=save] { background: var(--c-plum); border-color: var(--c-plum); color: var(--c-paper); }
#cookie-consent .cookie-dialog button[data-choice=save]:hover { background: #5B3373; border-color: #5B3373; }
.cookie-status { color: var(--c-plum); font-weight: 600; }
.cookie-status:empty { display: none; }
.cookie-settings-link { font: inherit; color: inherit; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }

@media (max-width: 700px) {
  .cookie-banner { bottom: 8px; width: calc(100% - 16px); flex-direction: column; align-items: stretch; gap: 16px; padding: 20px 18px; border-radius: 22px; }
  #cookie-consent .cookie-banner h2 { font-size: 20px; }
  .cookie-copy p { font-size: 14px; }
  .cookie-banner .cookie-actions { width: auto; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cookie-banner .cookie-actions button { flex: 1 1 0; padding: 12px 8px; font-size: 15px; white-space: nowrap; }
  #cookie-consent button { min-height: 46px; }
  .cookie-dialog { padding: 22px 18px; border-radius: 22px; }
  #cookie-consent .cookie-dialog h2 { font-size: 22px; }
  .cookie-dialog .cookie-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } #cookie-consent button { transition: none; } }
footer { flex-wrap: wrap; }

/* banner buttons side by side on wide screens */
.cookie-banner .cookie-actions button { min-width: 170px; }
@media (max-width: 700px) { .cookie-banner .cookie-actions button { min-width: 0; } }
