.tanin-cookie-panel[hidden],
.tanin-cookie-settings-slot[hidden] { display: none !important; }
.tanin-cookie-panel {
  box-sizing: border-box;
  position: fixed;
  z-index: 1040;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(680px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  background: #fff;
  color: #25272a;
  box-shadow: 0 8px 32px #142d4f26;
  font-family: HelveticaNeueCyr, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
.tanin-cookie-title { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.tanin-cookie-description { margin: 0 0 10px; }
.tanin-cookie-policy { color: #1665c1; text-decoration: underline; }
.tanin-cookie-current { margin: 10px 0 0; font-size: 14px; }
.tanin-cookie-current:empty { display: none; }
.tanin-cookie-actions { display: flex; gap: 12px; margin-top: 18px; }
.tanin-cookie-choice {
  flex: 1 1 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #1665c1;
  border-radius: 8px;
  background: #fff;
  color: #1665c1;
  font: inherit;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}
.tanin-cookie-choice:hover { background: #f0f6fc; }
.tanin-cookie-settings {
  min-height: 44px;
  padding: 8px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.tanin-cookie-settings-slot { padding: 8px 20px; background: #25272a; color: #fff; }
/* Match the footer's legal links, including their mobile touch targets. */
.footer .tanin-cookie-settings { text-decoration: none; }
@media (min-width: 48em) {
  .footer .tanin-cookie-settings { align-self: flex-start; min-height: 0; padding: 0; }
}
.tanin-cookie-panel a:focus-visible,
.tanin-cookie-panel button:focus-visible,
.tanin-cookie-settings:focus-visible { outline: 2px solid #1665c1; outline-offset: 4px; }
.footer .tanin-cookie-settings:focus-visible { outline-color: #fff; }
@media (max-width: 575.98px) {
  .tanin-cookie-panel { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 18px; font-size: 14px; }
  .tanin-cookie-actions { flex-direction: column; gap: 10px; margin-top: 14px; }
  .tanin-cookie-choice { width: 100%; flex-basis: auto; }
  .footer .tanin-cookie-settings { width: 100%; }
}
