#cookie-panel {
  position: fixed;
  z-index: 90;
  left: 16px;
  bottom: 16px;
  width: min(400px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  overflow: auto;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #fff;
  color: #1d1d1f;
  border: 1px solid #e5e5ea;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  font-family: inherit;
  text-align: left;
}
#cookie-panel[hidden] { display: none !important; }
#cookie-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
/* Title is focused for screen readers when the panel opens; hide the browser ring. */
#cookie-panel h2:focus,
#cookie-panel h2:focus-visible {
  outline: none;
}
#cookie-panel p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #3a3a3c;
}
#cookie-panel a { color: #0071e3; font-weight: 600; }
.cookie-row { display: flex; gap: 14px; }
#cookie-prefs .cookie-row { margin-top: 16px; }
.cookie-row button,
.cookie-save {
  flex: 1;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.cookie-accept {
  background: #0071e3;
  color: #fff;
  border: 1.5px solid #0071e3;
}
.cookie-reject {
  background: #fff;
  color: #1d1d1f;
  border: 1.5px solid #1d1d1f;
}
.cookie-customize,
.cookie-policy {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: 0;
  color: #0071e3;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  min-height: 36px;
}
.cookie-policy { font-weight: 600; text-decoration: none; }
.cookie-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
}
.cookie-cat strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cookie-cat p { margin: 0; font-size: 13px; }
.cookie-switch { position: relative; flex: none; width: 44px; height: 26px; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch span {
  position: absolute; inset: 0; border-radius: 999px; background: #d2d2d7;
  transition: background 0.15s ease;
}
.cookie-switch span::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform 0.15s ease;
}
.cookie-switch input:checked + span { background: #0071e3; }
.cookie-switch input:checked + span::after { transform: translateX(18px); }
.cookie-switch input:disabled + span { background: #8e8e93; }
.cookie-switch input:disabled:checked + span { background: #0071e3; }
.cookie-save { width: 100%; margin-top: 8px; background: #0071e3; color: #fff; border: 1.5px solid #0071e3; }
body:has(#cookie-panel:not([hidden])) .lx-footer { padding-bottom: 240px; }
@media (max-width: 640px) {
  #cookie-panel { left: 12px; bottom: 12px; width: calc(100vw - 24px); }
}
