/* Pflaument — cookie consent UI. Brand: #0a0658 navy / #68c8f7 sky. */

.pf-cc {
  --pf-cc-navy: #0a0658;
  --pf-cc-sky: #68c8f7;
  --pf-cc-ink: #1a1a2e;
  --pf-cc-muted: #5b6072;
  --pf-cc-line: #e6e8f0;
  --pf-cc-radius: 16px;
  --pf-cc-shadow: 0 18px 50px rgba(10, 6, 88, .22);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pf-cc[hidden] { display: none; }
html.pf-cc-lock { overflow: hidden; }

/* ---- Buttons ---- */
.pf-cc .pf-btn,
.pf-embed .pf-btn {
  font-family: inherit;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.2;
  padding: .7em 1.25em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.pf-cc .pf-btn:active,
.pf-embed .pf-btn:active { transform: translateY(1px); }

.pf-btn--primary {
  background: linear-gradient(120deg, var(--pf-cc-navy), #1b1592);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 6, 88, .28);
}
.pf-btn--primary:hover { background: linear-gradient(120deg, #120c75, #2a22b0); color: #fff; }

.pf-btn--ghost {
  background: #fff;
  color: var(--pf-cc-navy);
  border-color: var(--pf-cc-line);
}
.pf-btn--ghost:hover { border-color: var(--pf-cc-navy); background: #f6f7fc; }

.pf-btn--link {
  background: transparent;
  color: var(--pf-cc-navy);
  border-color: transparent;
  text-decoration: underline;
  padding-left: .4em;
  padding-right: .4em;
}
.pf-btn--link:hover { color: #1b1592; }

/* ---- Banner ---- */
.pf-cc-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 32px));
  background: #fff;
  border: 1px solid var(--pf-cc-line);
  border-radius: var(--pf-cc-radius);
  box-shadow: var(--pf-cc-shadow);
  z-index: 99998;
  animation: pf-cc-up .35s ease both;
}
@keyframes pf-cc-up { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

.pf-cc-banner__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
}
.pf-cc-banner__title {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--pf-cc-navy);
  margin: 0 0 4px;
}
.pf-cc-banner__desc {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--pf-cc-muted);
}
.pf-cc-banner__policy,
.pf-cc-banner__desc a { color: var(--pf-cc-navy); font-weight: 600; }
.pf-cc-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .pf-cc-banner__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .pf-cc-banner__actions { justify-content: stretch; }
  .pf-cc-banner__actions .pf-btn { flex: 1 1 auto; text-align: center; }
}

/* ---- Modal ---- */
.pf-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pf-cc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 88, .55);
  backdrop-filter: blur(2px);
}
.pf-cc-modal__dialog {
  position: relative;
  background: #fff;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  box-shadow: var(--pf-cc-shadow);
  padding: 30px 30px 26px;
  animation: pf-cc-pop .28s ease both;
}
@keyframes pf-cc-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

.pf-cc-modal__x {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--pf-cc-muted);
  cursor: pointer;
}
.pf-cc-modal__x:hover { color: var(--pf-cc-navy); }
.pf-cc-modal__title {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--pf-cc-navy);
  margin: 0 0 8px;
}
.pf-cc-modal__intro {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--pf-cc-muted);
  margin: 0 0 20px;
}
.pf-cc-modal__intro a { color: var(--pf-cc-navy); font-weight: 600; }

/* ---- Category rows + toggle switch ---- */
.pf-cc-cats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.pf-cc-cat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--pf-cc-line);
  border-radius: 14px;
  background: #fafbff;
  cursor: pointer;
}
.pf-cc-cat.is-locked { cursor: default; opacity: .96; }
.pf-cc-cat__text { display: flex; flex-direction: column; gap: 4px; }
.pf-cc-cat__label {
  font-weight: 700;
  font-size: .98rem;
  color: var(--pf-cc-ink);
}
.pf-cc-cat__label em { font-style: normal; font-weight: 500; color: var(--pf-cc-sky); filter: brightness(.7); }
.pf-cc-cat__desc { font-size: .84rem; line-height: 1.5; color: var(--pf-cc-muted); }

.pf-cc-cat__switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; margin-top: 2px; }
.pf-cc-cat__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pf-cc-cat__slider {
  position: absolute;
  inset: 0;
  background: #c8ccdb;
  border-radius: 999px;
  transition: background .2s ease;
}
.pf-cc-cat__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.pf-cc-cat__switch input:checked + .pf-cc-cat__slider { background: linear-gradient(120deg, var(--pf-cc-navy), var(--pf-cc-sky)); }
.pf-cc-cat__switch input:checked + .pf-cc-cat__slider::before { transform: translateX(20px); }
.pf-cc-cat__switch input:disabled { cursor: default; }
.pf-cc-cat__switch input:disabled + .pf-cc-cat__slider { opacity: .8; }
.pf-cc-cat__switch input:focus-visible + .pf-cc-cat__slider { outline: 2px solid var(--pf-cc-sky); outline-offset: 2px; }

.pf-cc-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) {
  .pf-cc-modal__dialog { padding: 24px 20px; }
  .pf-cc-modal__actions { justify-content: stretch; }
  .pf-cc-modal__actions .pf-btn { flex: 1 1 auto; text-align: center; }
}

/* ---- Reopen button ---- */
.pf-cc-reopen {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(120deg, var(--pf-cc-navy), #1b1592);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(10, 6, 88, .35);
  transition: transform .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-cc-reopen:hover { transform: scale(1.08); }
.pf-cc-reopen[hidden] { display: none; }

/* ---- Blocked embed placeholder (Maps etc.) ---- */
.pf-embed { position: relative; width: 100%; height: 100%; min-height: 320px; }
.pf-embed.is-loaded { min-height: 0; }
.pf-embed iframe { display: block; width: 100%; }
.pf-embed__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(104, 200, 247, .12), transparent 60%),
    #eef1fb;
  border: 1px dashed #c3c8e0;
  border-radius: 12px;
  font-family: "Inter", system-ui, sans-serif;
}
.pf-embed__body { max-width: 420px; padding: 28px 24px; }
.pf-embed__icon { font-size: 2rem; color: var(--pf-cc-navy, #0a0658); display: block; margin-bottom: 10px; }
.pf-embed__title {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0a0658;
  margin: 0 0 6px;
}
.pf-embed__text { font-size: .88rem; line-height: 1.5; color: #5b6072; margin: 0 0 16px; }
.pf-embed__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
