#pulso #cookie-preferences {
  margin: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
  font-size: 12px;
  color: var(--p-muted);
  text-decoration: none;
  cursor: pointer;
}
#pulso #cookie-preferences:hover { color: var(--p-red); text-decoration: underline; }

#cookie-dialog {
  box-sizing: border-box;
  width: min(23rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  margin: auto;
  padding: 1.45rem 1.5rem 1.25rem;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  background: var(--p-surface);
  color: var(--p-ink);
  box-shadow: 0 6px 28px rgb(18 21 28 / 13%);
}
#cookie-dialog::backdrop { background: rgb(18 21 28 / 16%); }
#cookie-dialog:has(#cookie-settings:not([hidden])) { width: min(30rem, calc(100% - 2rem)); }
#cookie-dialog [hidden], #cookie-preferences[hidden] { display: none; }
#cookie-notice header { display: flex; align-items: center; gap: .55rem; padding-right: 2rem; }
#cookie-notice .p-pulse { width: 26px; height: 24px; gap: 2px; }
#cookie-notice .p-pulse i { width: 2px; max-height: 100%; animation: none; }
#cookie-notice .p-pulse i:nth-child(2), #cookie-notice .p-pulse i:nth-child(6) { height: 12px; }
#cookie-notice .p-pulse i:nth-child(3), #cookie-notice .p-pulse i:nth-child(5) { height: 18px; }
#pulso #cookie-dialog h2 { margin: 0; font-size: 1.125rem; line-height: 1.4; letter-spacing: -.025em; }
#pulso #cookie-dialog h2:focus { outline: none; }
#cookie-title { padding-right: 2rem; }
#pulso #cookie-dialog section > p { margin: .55rem 0 1rem; color: var(--p-muted); font-size: .9375rem; line-height: 1.5; }
#pulso #cookie-close {
  position: absolute; top: .55rem; right: .55rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  min-height: 0; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--p-muted); font: 1.25rem/1 sans-serif; cursor: pointer;
}
#pulso #cookie-close:hover, #pulso #cookie-configure:hover { background: var(--p-soft); color: var(--p-ink); }
.cookie-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: .45rem; }
#pulso #cookie-dialog .p-button, #pulso #cookie-configure {
  min-height: 2.5rem; padding: .5rem .95rem; border-radius: 8px;
  font-size: .875rem; line-height: 1.25; cursor: pointer;
}
#pulso #cookie-configure { border: 0; background: transparent; color: var(--p-muted); }
.cookie-option {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--p-line);
}
.cookie-option small { display: block; color: var(--p-muted); line-height: 1.45; }
.cookie-fixed { color: var(--p-muted); font-size: 12px; white-space: nowrap; }
label.cookie-option { cursor: pointer; }
.cookie-switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
}
.cookie-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cookie-track {
  pointer-events: none;
  display: grid;
  align-items: center;
  justify-items: start;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 2px;
  border: 1px solid var(--p-muted);
  border-radius: 24px;
  background: var(--p-soft);
}
.cookie-track::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--p-muted);
}
.cookie-switch input:checked + .cookie-track {
  justify-items: end;
  border-color: #b71932;
  background: #b71932;
}
.cookie-switch input:checked + .cookie-track::before { background: white; }
.cookie-switch input:focus-visible + .cookie-track { outline: 3px solid var(--p-red); outline-offset: 3px; }
.cookie-privacy { font-size: 13px; }
#cookie-settings .cookie-actions { margin-top: 1rem; justify-content: flex-end; }
#pulso #cookie-settings .p-button { min-height: 44px; }
@media (max-width: 420px) {
  #cookie-dialog { padding: 1.15rem; }
  #cookie-settings .cookie-actions { display: grid; grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  .cookie-switch input { opacity: 1; appearance: auto; }
  .cookie-track { display: none; }
}
