.cookie-settings {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-align: left;
  font-size: inherit;
}

.cookie-settings:hover { color: var(--red); }

.cookie-panel {
  position: fixed;
  z-index: 20;
  inset: auto 20px 20px;
  width: min(510px, calc(100% - 40px));
  margin-left: auto;
  padding: 23px 25px;
  border: 1px solid #555;
  border-top: 3px solid var(--red);
  background: #191a1a;
  box-shadow: 0 8px 45px #0008;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}

.cookie-panel h2 {
  font: 700 22px/1.2 'DM Sans', Arial, sans-serif;
  letter-spacing: -.3px;
  margin: 0 0 10px;
}

.cookie-panel p {
  color: #d0d1ce;
  font-size: 13px;
  margin: 0 0 12px;
}

.cookie-panel a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .button { flex: 1; justify-content: center; white-space: normal; }
.cookie-actions .button[aria-pressed="true"] { border-color: #e5e5e0; background: #303131; }

.cookie-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 500px) {
  .cookie-panel { inset: auto 12px 12px; width: calc(100% - 24px); padding: 18px; }
  .cookie-actions .button { padding: 12px; }
}
