#fns-cookie-banner[hidden],
#fns-cookie-panel[hidden] {
  display: none !important;
}

.fns-cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  background: rgba(18, 18, 18, 0.96);
  color: #f7f3ed;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.fns-cookie-banner__inner {
  padding: 22px 24px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.fns-cookie-banner__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.fns-cookie-banner__title {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.15;
}

.fns-cookie-banner__text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247,243,237,0.84);
}

.fns-cookie-banner__text a,
.fns-cookie-panel__policy-link {
  color: inherit;
  text-decoration: underline;
}

.fns-cookie-banner__actions,
.fns-cookie-panel__footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fns-cookie-banner__credit {
  padding: 0 24px 18px;
  font-size: 12px;
  opacity: 0.62;
}

.fns-cookie-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fns-cookie-btn--primary {
  background: #f7f3ed;
  color: #111;
}

.fns-cookie-btn--ghost {
  background: transparent;
  color: #f7f3ed;
  border-color: rgba(255,255,255,0.2);
}

.fns-cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10,10,10,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.fns-cookie-panel__dialog {
  width: min(760px, 100%);
  background: #f7f3ed;
  color: #111;
  border: 1px solid rgba(10,10,10,0.08);
  box-shadow: 0 20px 70px rgba(0,0,0,0.18);
}

.fns-cookie-panel__header,
.fns-cookie-panel__footer {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.fns-cookie-panel__body {
  padding: 0 28px 8px;
}

.fns-cookie-panel__title {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.08;
}

.fns-cookie-panel__close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  color: #111;
}

.fns-cookie-toggle {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(10,10,10,0.08);
}

.fns-cookie-toggle:first-child {
  border-top: 0;
}

.fns-cookie-toggle.is-disabled {
  opacity: 0.72;
}

.fns-cookie-toggle__title {
  font-size: 18px;
  font-weight: 600;
}

.fns-cookie-toggle__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(10,10,10,0.72);
}

.fns-switch {
  flex-shrink: 0;
}

.fns-switch input {
  display: none;
}

.fns-switch span {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  background: rgba(10,10,10,0.14);
  border-radius: 999px;
}

.fns-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.fns-switch input:checked + span {
  background: #111;
}

.fns-switch input:checked + span::after {
  transform: translateX(22px);
}

.fns-cookie-manage {
  position: fixed;
  right: 0;
  bottom: 120px;
  z-index: 99998;
  border: 0;
  background: rgba(18,18,18,0.96);
  color: #f7f3ed;
  padding: 12px 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.fns-cookie-policy-shortcode h2 {
  margin: 36px 0 12px;
}

@media (max-width: 767px) {
  .fns-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .fns-cookie-banner__inner {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .fns-cookie-banner__title {
    font-size: 20px;
  }

  .fns-cookie-banner__credit {
    padding: 0 18px 18px;
  }

  .fns-cookie-panel {
    padding: 12px;
  }

  .fns-cookie-panel__header,
  .fns-cookie-panel__footer {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .fns-cookie-panel__body {
    padding: 0 18px;
  }

  .fns-cookie-manage {
    bottom: 84px;
    padding: 10px 12px;
  }
}
