.mw-cookies {
  position: fixed;
  z-index: 10050;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #ddd6cc;
  border-radius: 20px;
  background: #fdfcf9;
  color: #1b1a17;
  box-shadow: 0 12px 50px rgba(27, 26, 23, .15);
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  text-align: left;
  animation: mw-cookie-in .25s ease-out both;
}
.mw-cookies[hidden] { display: none !important; }
.mw-cookies .mw-cookies__copy h2 {
  margin: 0 0 10px;
  font: 600 21px/1.25 var(--sans, sans-serif);
  letter-spacing: -.02em;
}
.mw-cookies .mw-cookies__copy p {
  margin: 0 0 10px;
  max-width: none;
  font: 400 15px/1.55 var(--sans, sans-serif);
  color: #69635c;
}
.mw-cookies__copy a { color: #7e4326; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.mw-cookies__actions { display: flex; gap: 10px; margin-top: 20px; }
.mw-cookies__actions button {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #bfb4a6;
  border-radius: 10px;
  background: #f4f1ea;
  color: #1b1a17;
  font: 600 14px/1.4 var(--sans, sans-serif);
  cursor: pointer;
  transition: background-color .15s ease;
}
.mw-cookies__actions button:hover { background: #e9e2d8; }
.mw-cookies button:focus-visible, .mw-cookies a:focus-visible, .mw-cookie-settings:focus-visible { outline: 2px solid #9a572f; outline-offset: 4px; }
.mw-cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: #69635c;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mw-cookie-settings-fallback { padding: 20px; text-align: center; }
@keyframes mw-cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .mw-cookies { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 20px; border-radius: 16px; }
  .mw-cookies__actions { flex-direction: column; gap: 8px; margin-top: 16px; }
  .mw-cookies__actions button { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .mw-cookies { animation: none; }
  .mw-cookies__actions button { transition: none; }
}
