.cookie-consent {
  position: fixed;
  z-index: 10000;
  right: 24px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 48px));
  max-height: calc(100dvh - 40px);
  box-sizing: border-box;
  overflow-y: auto;
  padding: 22px 26px;
  background: #102439;
  border: 1px solid rgba(197, 163, 110, .52);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .14);
  color: #fff;
  font: 15px/1.5 Inter, Arial, sans-serif;
}

@supports (backdrop-filter: blur(14px)) {
  .cookie-consent {
    right: 12px;
    background: rgba(12, 31, 50, .84);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
  }
}

.cookie-consent[hidden] { display: none; }

.cookie-consent__inner {
  display: grid;
  gap: 18px;
}

.cookie-consent__copy { min-width: 0; }
.cookie-consent h2 { margin: 0 0 8px; padding: 0; color: #fff; text-align: left; font: 600 20px/1.3 Inter, Arial, sans-serif; }
.cookie-consent h2::after { display: none; }
.cookie-consent p { margin: 0; color: #e4e7eb; overflow-wrap: anywhere; }
.cookie-consent a { color: #e7bd7d; text-decoration: underline; }
.cookie-consent__error { margin-top: 8px !important; color: #ffd9d9 !important; }
.cookie-consent__actions { display: flex; justify-content: flex-end; gap: 10px; }
.cookie-consent button {
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid rgba(197, 163, 110, .8);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: 600 14px/1.25 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cookie-consent button:last-child {
  min-width: 126px;
  background: #b08d57;
  border-color: #c5a36e;
  color: #0b1b2d;
  box-shadow: 0 5px 16px rgba(176, 141, 87, .22), inset 0 1px rgba(255, 255, 255, .3);
}
.cookie-consent button:hover { background: rgba(197, 163, 110, .18); border-color: #e3bf88; }
.cookie-consent button:last-child:hover { background: #c5a36e; box-shadow: 0 7px 20px rgba(176, 141, 87, .32); }
.cookie-consent button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 600px) {
  .cookie-consent {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px;
    border-radius: 18px;
    font-size: 14px;
  }
  .cookie-consent h2 { font-size: 18px; }
  .cookie-consent__inner { gap: 16px; }
  .cookie-consent__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .cookie-consent button { min-width: 0; padding: 9px 10px; }
  .cookie-consent button:last-child { min-width: 0; }
}
