/* Danyell'e — Cookie consent styles (matches site pink/cream theme) */
:root {
  --cc-ink: #191516;
  --cc-muted: #655c5f;
  --cc-cream: #fbf8f3;
  --cc-white: #ffffff;
  --cc-blush: #f8e3ec;
  --cc-powder: #f3cadc;
  --cc-dusty: #e9b7ce;
  --cc-line: rgba(101, 92, 95, 0.16);
  --cc-shadow: 0 24px 64px -28px rgba(25, 21, 22, 0.28);
}

/* ---------- banner ---------- */
.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: cc-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-banner.cc-hidden {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cc-banner__inner {
  width: 100%;
  max-width: 940px;
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: 20px;
  box-shadow: var(--cc-shadow);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.cc-banner__text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--cc-ink);
  margin-bottom: 4px;
}
.cc-banner__text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cc-muted);
}
.cc-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- buttons ---------- */
.cc-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:focus-visible { outline: 2px solid var(--cc-dusty); outline-offset: 2px; }
.cc-btn--solid {
  background: var(--cc-ink);
  color: #fff;
}
.cc-btn--solid:hover { background: #000; }
.cc-btn--ghost {
  background: transparent;
  color: var(--cc-ink);
  border-color: var(--cc-line);
}
.cc-btn--ghost:hover { background: var(--cc-cream); }

/* ---------- settings modal ---------- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 21, 22, 0.45);
  backdrop-filter: blur(3px);
  animation: cc-fade 0.3s ease;
}
.cc-modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--cc-cream);
  border-radius: 24px;
  box-shadow: var(--cc-shadow);
  overflow: hidden;
  animation: cc-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--cc-line);
}
.cc-modal__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--cc-ink);
}
.cc-modal__x {
  border: 0;
  background: var(--cc-white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--cc-ink);
  cursor: pointer;
}
.cc-modal__body { padding: 8px 22px 4px; }
.cc-modal__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 22px 22px;
}

/* ---------- category rows ---------- */
.cc-cat {
  padding: 16px 0;
  border-bottom: 1px solid var(--cc-line);
}
.cc-cat:last-child { border-bottom: 0; }
.cc-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cc-cat__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cc-ink);
}
.cc-cat__always {
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-muted);
  background: var(--cc-blush);
  padding: 4px 10px;
  border-radius: 999px;
}
.cc-cat__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--cc-muted);
}

/* ---------- policy text ---------- */
.cc-policy { max-height: 60vh; overflow-y: auto; padding-top: 16px; padding-bottom: 8px; }
.cc-policy p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--cc-muted); }
.cc-policy h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 700; color: var(--cc-ink); }
.cc-policy ul { margin: 0 0 12px; padding-left: 18px; }
.cc-policy li { font-size: 13px; line-height: 1.6; color: var(--cc-muted); margin-bottom: 6px; }
.cc-policy strong { color: var(--cc-ink); }

/* ---------- toggle switch ---------- */
.cc-switch { position: relative; display: inline-block; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch__track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d8cdc9;
  transition: background 0.25s ease;
  position: relative;
}
.cc-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-switch input:checked + .cc-switch__track {
  background: var(--cc-dusty);
}
.cc-switch input:checked + .cc-switch__track .cc-switch__thumb {
  transform: translateX(18px);
}
.cc-switch input:focus-visible + .cc-switch__track {
  outline: 2px solid var(--cc-dusty);
  outline-offset: 2px;
}

/* ---------- blocked-iframe placeholder ---------- */
.cc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fbeef0 0%, #f0d8dc 100%);
  border-radius: inherit;
  min-height: 220px;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cc-placeholder__inner {
  text-align: center;
  padding: 28px 22px;
  max-width: 340px;
}
.cc-placeholder__icon { font-size: 30px; margin-bottom: 10px; }
.cc-placeholder__text {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cc-muted);
}
.cc-placeholder__btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cc-ink);
  background: var(--cc-powder);
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cc-placeholder__btn:hover {
  transform: translateY(-1px);
  background: var(--cc-dusty);
}

/* ---------- animations ---------- */
@keyframes cc-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .cc-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px;
  }
  .cc-banner__actions {
    flex-direction: column-reverse;
  }
  .cc-banner__actions .cc-btn {
    width: 100%;
    text-align: center;
  }
  .cc-modal__foot {
    flex-direction: column-reverse;
  }
  .cc-modal__foot .cc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-modal__backdrop, .cc-modal__card { animation: none; }
  .cc-btn:hover, .cc-placeholder__btn:hover { transform: none; }
}
