.cookie-banner[hidden],
.cookie-modal[hidden] { display: none !important; }

.cookie-banner {
  position: fixed; z-index: 5000; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(960px, calc(100% - 24px)); max-height: min(70vh, 520px);
  overflow: auto; box-sizing: border-box; margin: 0; padding: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  color: #17233a; background: #fff; border: 1px solid #d7e2f2; border-radius: 16px;
  box-shadow: 0 22px 60px rgba(8, 25, 55, .28);
}
.cookie-banner h2, .cookie-panel h2 { margin: 0 0 8px; color: #10284d; font-size: 1.15rem; }
.cookie-banner p { margin: 6px 0; line-height: 1.5; }
.cookie-links, .cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie-links a { color: #0a4da2; }
.cookie-actions { margin-top: 12px; }
.cookie-actions button { flex: 1 1 150px; min-height: 42px; padding: 9px 12px; color: #12325f; font: inherit; font-weight: 700; background: #f4f8fe; border: 1px solid #b8c9e3; border-radius: 10px; cursor: pointer; }
.cookie-actions button:hover, .cookie-actions button:focus { background: #e5effd; outline-color: #1452be; }
.cookie-modal { position: fixed; z-index: 5010; inset: 0; overflow: auto; padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); background: rgba(8, 20, 40, .62); }
.cookie-panel { box-sizing: border-box; width: min(680px, 100%); margin: 4vh auto; padding: 20px; color: #17233a; background: #fff; border-radius: 16px; box-shadow: 0 22px 60px rgba(0, 0, 0, .3); }
.cookie-category { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #dbe5f4; }
.cookie-category p, .cookie-category small { display: block; margin: 4px 0 0; color: #5b6b83; }
.cookie-category input { flex: 0 0 auto; width: 22px; height: 22px; }
@media (max-width: 575px) {
  .cookie-banner { width: calc(100% - 20px); bottom: calc(10px + env(safe-area-inset-bottom)); padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .cookie-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cookie-actions button { width: 100%; }
  .cookie-panel { margin: 0 auto; padding: 16px; }
}
