/*** Cookie consent banner — Night Coast ***/

.dd-cookie {
  --ddc-bg: rgba(10, 22, 40, 0.96);
  --ddc-panel: #0E1F35;
  --ddc-border: rgba(155, 176, 199, 0.2);
  --ddc-text: #C5D4E4;
  --ddc-title: #F2F6FA;
  --ddc-accent: #FF6B4A;
  --ddc-accent-hover: #ff825f;
  --ddc-muted: #9BB0C7;
  position: fixed;
  z-index: 99999;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  pointer-events: none;
  font-family: 'Manrope', sans-serif;
}

.dd-cookie[hidden] {
  display: none !important;
}

.dd-cookie__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 28, 0.55);
  pointer-events: auto;
}

.dd-cookie.is-settings-open .dd-cookie__backdrop {
  display: block;
}

.dd-cookie__panel {
  pointer-events: auto;
  max-width: 540px;
  margin: 0 auto;
  background: var(--ddc-bg);
  border: 1px solid var(--ddc-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 22px 24px;
  transform: translateY(0);
  animation: ddCookieIn 0.35s ease;
}

@keyframes ddCookieIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dd-cookie__main {
  display: grid;
  gap: 18px;
}

.dd-cookie__intro {
  display: grid;
  gap: 12px;
}

.dd-cookie__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.dd-cookie__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ddc-accent);
  filter: drop-shadow(0 0 10px rgba(255, 107, 74, 0.35));
}

.dd-cookie__icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.dd-cookie__title {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ddc-title);
  line-height: 1.3;
  text-align: center;
}

.dd-cookie__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ddc-text);
}

.dd-cookie__text a {
  color: var(--ddc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dd-cookie__text a:hover {
  color: var(--ddc-accent-hover);
}

/* Desktop: keep Cookie Policy sentence on the same paragraph flow */
.dd-cookie__br-mobile {
  display: none;
}

.dd-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* Same ripple mechanics as Growth Playbook / Contact Us */
.dd-cookie__accept.primary-btn-1 {
  padding: 11px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.02em;
  line-height: 1.2;
  gap: 0;
  box-shadow: 0 10px 28px rgba(255, 107, 74, 0.22);
}

.dd-cookie__accept.primary-btn-1 span {
  transition: all 0.6s ease !important;
}

.dd-cookie__accept.primary-btn-1:hover span {
  width: 225% !important;
  height: 1000.5px !important;
}

.dd-cookie__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.dd-cookie__btn > span:not([class]) {
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 107, 74, 0.2);
  transition: width 0.6s ease, height 0.6s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.dd-cookie__btn:hover > span:not([class]) {
  width: 225%;
  height: 1000.5px;
}

.dd-cookie__btn:hover {
  transform: translateY(-2px);
}

.dd-cookie__btn:focus-visible {
  outline: 2px solid var(--ddc-accent);
  outline-offset: 2px;
}

.dd-cookie__btn--ghost {
  background: transparent;
  border-color: var(--ddc-border);
  color: var(--ddc-title);
  box-shadow: none;
}

.dd-cookie__btn--ghost:hover {
  background: rgba(255, 107, 74, 0.08);
  border-color: rgba(255, 107, 74, 0.55);
  color: var(--ddc-accent);
  box-shadow: 0 10px 28px rgba(255, 107, 74, 0.15);
}

.dd-cookie__btn--muted {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ddc-border);
  color: var(--ddc-muted);
  box-shadow: none;
}

.dd-cookie__btn--muted:hover {
  background: rgba(255, 107, 74, 0.06);
  color: var(--ddc-title);
  border-color: var(--ddc-muted);
}

.dd-cookie__settings {
  display: none;
  border-top: 1px solid var(--ddc-border);
  margin-top: 4px;
  padding-top: 18px;
}

.dd-cookie.is-settings-open .dd-cookie__settings {
  display: block;
}

.dd-cookie.is-settings-open .dd-cookie__intro-actions {
  display: none;
}

.dd-cookie__prefs {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.dd-cookie__pref {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--ddc-panel);
  border: 1px solid var(--ddc-border);
  border-radius: 12px;
}

.dd-cookie__pref-copy h5 {
  margin: 0 0 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ddc-title);
}

.dd-cookie__pref-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ddc-muted);
}

.dd-cookie__switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  margin-top: 2px;
}

.dd-cookie__switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.dd-cookie__switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #243447;
  border: 1px solid var(--ddc-border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dd-cookie__switch span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F2F6FA;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}

.dd-cookie__switch input:checked + span {
  background: rgba(255, 107, 74, 0.85);
  border-color: var(--ddc-accent);
}

.dd-cookie__switch input:checked + span::after {
  transform: translateX(20px);
}

.dd-cookie__switch input:disabled + span {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(255, 107, 74, 0.35);
  border-color: rgba(255, 107, 74, 0.45);
}

.dd-cookie__switch input:focus-visible + span {
  outline: 2px solid var(--ddc-accent);
  outline-offset: 2px;
}

.dd-cookie__settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/*** Mobile ***/
@media (max-width: 767px) {
  .dd-cookie {
    padding: 12px;
  }

  .dd-cookie__panel {
    max-width: none;
    margin: 0;
    border-radius: 16px;
    border: 1px solid var(--ddc-border);
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    max-height: min(88vh, 720px);
    overflow: auto;
  }

  .dd-cookie__icon {
    width: 40px;
    height: 40px;
  }

  .dd-cookie__icon svg {
    width: 36px;
    height: 36px;
  }

  .dd-cookie__title {
    font-size: 17px;
  }

  .dd-cookie__text {
    text-align: center;
  }

  .dd-cookie__br-mobile {
    display: block;
  }

  .dd-cookie__actions,
  .dd-cookie__settings-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .dd-cookie__btn,
  .dd-cookie__accept.primary-btn-1 {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 16px !important;
  }

  .dd-cookie__pref {
    flex-direction: column;
    align-items: stretch;
  }

  .dd-cookie__switch {
    align-self: flex-end;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .dd-cookie__panel {
    max-width: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dd-cookie__panel {
    animation: none;
  }

  .dd-cookie__btn:hover {
    transform: none;
  }

  .dd-cookie__btn > span:not([class]),
  .dd-cookie__btn:hover > span:not([class]) {
    transition: none;
    width: 0;
    height: 0;
  }
}
