.sn-cookie-panel {
  background: linear-gradient(145deg, rgba(7, 31, 43, 0.98), rgba(14, 13, 11, 0.99));
  border: 1px solid rgba(197, 154, 75, 0.48);
  bottom: 64px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.46);
  color: var(--sn-muted);
  max-height: calc(100vh - 92px);
  max-width: min(570px, calc(100vw - 36px));
  overflow-y: auto;
  padding: 22px;
  position: fixed;
  right: 18px;
  width: 100%;
  z-index: 1001;
}

.sn-cookie-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.sn-cookie-panel strong,
.sn-cookie-preferences legend {
  color: var(--sn-blue-soft);
  font-family: "Cinzel", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.sn-cookie-panel p {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 12px;
}

.sn-cookie-panel .sn-cookie-privacy {
  margin: -2px 0 18px;
}

.sn-cookie-privacy a {
  color: var(--sn-gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sn-cookie-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(197, 154, 75, 0.38);
  color: var(--sn-gold-bright);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.sn-cookie-actions {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sn-cookie-actions button,
.sn-cookie-trigger {
  background: rgba(7, 31, 43, 0.95);
  border: 1px solid rgba(197, 154, 75, 0.58);
  color: var(--sn-gold-bright);
  cursor: pointer;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  min-height: 42px;
  padding: 10px 12px;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sn-cookie-actions button:hover,
.sn-cookie-actions button:focus-visible,
.sn-cookie-trigger:hover,
.sn-cookie-trigger:focus-visible,
.sn-cookie-close:hover,
.sn-cookie-close:focus-visible {
  background: rgba(8, 127, 145, 0.18);
  border-color: var(--sn-blue-soft);
  color: var(--sn-blue-soft);
  transform: translateY(-1px);
}

.sn-cookie-preferences fieldset {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.sn-cookie-preferences legend {
  font-size: 16px;
  margin-bottom: 11px;
}

.sn-cookie-choice {
  border-top: 1px solid rgba(240, 210, 138, 0.16);
  cursor: pointer;
  display: block;
  padding: 12px 0;
}

.sn-cookie-choice span {
  align-items: center;
  color: var(--sn-gold-bright);
  display: flex;
  font-family: "Cinzel", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
}

.sn-cookie-choice small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 0 26px;
}

.sn-cookie-choice input {
  accent-color: var(--sn-blue-soft);
  height: 17px;
  width: 17px;
}

.sn-cookie-choice-fixed {
  cursor: default;
  opacity: 0.78;
}

.sn-cookie-preference-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sn-cookie-trigger {
  bottom: 12px;
  left: max(18px, env(safe-area-inset-left));
  min-height: 40px;
  padding: 8px 13px;
  position: fixed;
  right: auto;
  z-index: 1000;
}

.sn-cookie-status {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .sn-cookie-panel {
    bottom: 61px;
    left: 10px;
    max-height: calc(100vh - 78px);
    max-width: none;
    padding: 16px;
    right: 10px;
    width: auto;
  }

  .sn-cookie-panel strong {
    font-size: 16px;
  }

  .sn-cookie-panel p {
    font-size: 12px;
    line-height: 1.48;
  }

  .sn-cookie-actions {
    grid-template-columns: 1fr;
  }

  .sn-cookie-preference-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sn-cookie-trigger {
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sn-cookie-actions button,
  .sn-cookie-trigger,
  .sn-cookie-close {
    transition: none;
  }
}
