.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: #0d365e;
  color: #e8eef5;
  box-shadow: 0 -8px 28px rgb(8 24 48 / .28);
  padding: 18px 0;
  font: 14px/1.45 "design", "Segoe UI", Arial, sans-serif;
}
.cookie-bar[hidden],
.cookie-layer[hidden] { display: none !important; }
.cookie-bar-inner {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cookie-bar-text { max-width: 68ch; }
.cookie-bar-text p { margin: 0 0 8px; }
.cookie-bar-text a { color: #ffd2b0; text-decoration: underline; }
.cookie-bar-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.cookie-bar .btn,
.cookie-panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #ff6600;
  color: #fff;
  font: 600 13px/1 "design", "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}
.cookie-bar .btn:hover,
.cookie-panel .btn:hover { background: #e85d00; }
.cookie-bar .btn-ghost,
.cookie-panel .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgb(255 255 255 / .45);
}
.cookie-bar .btn-ghost:hover,
.cookie-panel .btn-ghost:hover { background: rgb(255 255 255 / .12); }
body.has-cookie-bar { padding-bottom: 176px; }

.cookie-layer {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: end center;
  padding: 16px;
}
.cookie-layer-dim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(8 24 48 / .48);
  cursor: pointer;
}
.cookie-panel {
  position: relative;
  width: min(520px, 100%);
  margin-bottom: 12px;
  background: #fff;
  color: #3a3a3a;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 48px rgb(8 24 48 / .28);
  font: 14px/1.45 "design", "Segoe UI", Arial, sans-serif;
}
.cookie-panel-title {
  margin: 0 0 8px;
  color: #12467a;
  font: 300 20px/1.2 "design", "Segoe UI", sans-serif;
}
.cookie-panel-lead { margin: 0 0 16px; color: #808285; }
.cookie-cats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.cookie-switch {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  cursor: pointer;
}
.cookie-switch.is-locked { cursor: default; background: #f7f9fc; }
.cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cookie-switch-ui {
  width: 44px;
  height: 26px;
  margin-top: 2px;
  border-radius: 999px;
  background: #c9d3de;
  position: relative;
  flex-shrink: 0;
}
.cookie-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(8 24 48 / .2);
}
.cookie-switch input:checked + .cookie-switch-ui { background: #ff6600; }
.cookie-switch input:checked + .cookie-switch-ui::after { left: 21px; }
.cookie-switch input:disabled + .cookie-switch-ui { background: #12467a; }
.cookie-switch-text { display: grid; gap: 4px; }
.cookie-switch-text strong { color: #12467a; font-size: 15px; }
.cookie-switch-text span { color: #808285; font-size: 13px; }
.cookie-panel-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-panel .btn-ghost { color: #12467a; border-color: #12467a; }
.cookie-panel .btn-ghost:hover { background: #12467a; color: #fff; }
.cookie-panel-note { margin: 14px 0 0; font-size: 13px; }
.cookie-panel-note a { color: #12467a; text-decoration: underline; }
.cookie-manage {
  margin-top: 24px;
  padding: 18px 20px;
  border: 2px solid #12467a;
  border-radius: 12px;
  background: #fff;
}
.cookie-manage p { margin: 0 0 12px; color: #3a3a3a; }
.foot-cookie-btn {
  display: inline;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: 300 13px/1.3 "design", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
}
.foot-cookie-btn:hover { color: #ff6600; }

@media (max-width: 800px) {
  .cookie-bar-inner { flex-direction: column; align-items: stretch; }
  .cookie-bar-actions { flex-direction: column; }
  .cookie-bar-actions .btn { width: 100%; }
  body.has-cookie-bar { padding-bottom: 320px; }
  .cookie-panel { margin-bottom: 0; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie-switch-ui::after { transition: left .18s ease; }
}
