.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 320;
  width: min(900px, calc(100% - 32px));
  padding: 13px 14px 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: #f8fafc;
  background: #172033;
  box-shadow: 0 18px 48px rgba(23, 32, 51, .28);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-notice[hidden],
html.tw-cookie-notice-hidden .cookie-notice {
  display: none;
}

.cookie-notice__text {
  min-width: 0;
  color: rgba(248, 250, 252, .88);
}

.cookie-notice__details {
  margin-left: 5px;
  color: #bfdbfe;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice__details:hover {
  color: #fff;
}

.cookie-notice__dismiss {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #1f6feb;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background .15s ease, transform .15s ease;
}

.cookie-notice__dismiss:hover {
  background: #1757c2;
  transform: translateY(-1px);
}

.cookie-notice__dismiss:focus-visible,
.cookie-notice__details:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-notice {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .cookie-notice__dismiss {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice__dismiss {
    transition: none;
  }
}
