.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  box-sizing: border-box;
  padding: 24px;
  background: #fff;
  border-top: 1px solid #e0e2ea;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .08);
  color: #1e1f23;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.cookie-banner__inner {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner__text { flex: 1; min-width: 220px; font-size: .88rem; line-height: 1.5; }
.cookie-banner__text strong { display: block; margin-bottom: 3px; font-size: .95rem; }
.cookie-banner__text span { color: #6b7080; }
.cookie-banner__text a { color: inherit; text-decoration: underline; }
.cookie-banner__actions { display: flex; width: 260px; gap: 8px; justify-content: flex-end; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner__actions .cookie-btn { flex: 1 1 0; }

.cookie-btn {
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.cookie-btn--ghost { background: #f2f3f7; color: #1e1f23; }
.cookie-btn--ghost:hover { background: #e8e9f0; }
.cookie-btn--primary { background: #6b63ff; color: #fff; }
.cookie-btn--primary:hover { background: #5750e0; }
.cookie-btn:focus { outline: none; }
.cookie-manage-link {
  flex-basis: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #6b63ff;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-manage-panel {
  display: none;
  max-width: 960px;
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px solid #e0e2ea;
  flex-direction: column;
  gap: 12px;
}

.cookie-manage-panel.is-open { display: flex; }
.cookie-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-toggle-row > div { flex: 1; font-size: .85rem; line-height: 1.4; }
.cookie-toggle-row > div strong { display: block; margin-bottom: 2px; }
.cookie-toggle-row > div span { color: #6b7080; font-size: .82rem; }
.cookie-toggle-always { color: #6b7080; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.cookie-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cookie-toggle input { width: 0; height: 0; opacity: 0; }
.cookie-toggle__slider { position: absolute; inset: 0; border-radius: 22px; background: #e8e9f0; cursor: pointer; transition: background .2s; }
.cookie-toggle__slider::before { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); content: ''; transition: transform .2s; }
.cookie-toggle input:checked + .cookie-toggle__slider { background: #6b63ff; }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(18px); }
.cookie-save { align-self: flex-end; padding: 11px 14px; border: 0; border-radius: 10px; background: #6b63ff; color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.cookie-save:hover { background: #5750e0; }

/* Hard-gate countries retain focus and interaction locking while using the same bottom banner. */
body.cookie-consent--locked { overflow: hidden; }
.cookie-banner.cookie-banner--hard-gate {
  top: auto;
  background: #fff;
  border-top: 1px solid #e0e2ea;
  box-shadow: 0 0 0 100vmax rgba(22, 23, 28, .45), 0 -4px 24px rgba(0, 0, 0, .08);
}

@media (max-width: 720px) {
  .cookie-banner { padding: 20px 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-save { align-self: stretch; width: 100%; }
}
