.privacy-consent[hidden],
.privacy-preferences[hidden]{display:none!important}
.privacy-consent{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:2200;
  width:min(430px,calc(100% - 36px));
  color:var(--editly-text);
  font-family:var(--font-body);
}
.privacy-consent__panel{
  padding:20px;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(123,63,242,.2);
  border-radius:18px;
  box-shadow:0 22px 65px rgba(23,24,51,.22);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}
.privacy-consent__heading{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.privacy-consent__icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;color:#5a20cb;background:#f0e9ff;border-radius:12px}
.privacy-consent__icon svg{width:23px;height:23px;fill:currentColor}
.privacy-consent__eyebrow{display:block;color:#5a20cb;font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.privacy-consent h2,.privacy-preferences h2{margin:2px 0 0;font-family:var(--font-display);font-size:23px;line-height:1.12;color:var(--editly-text)}
.privacy-consent p,.privacy-preferences p{margin:0;color:var(--editly-text-secondary);font-size:12px;line-height:1.58}
.privacy-consent p a{color:#5a20cb;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.privacy-consent__gpc{margin-top:9px!important;padding:8px 10px;color:#12653e!important;background:#e8fff1;border-radius:8px}
.privacy-consent__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.privacy-consent__choice,.privacy-consent__settings{
  min-height:42px;
  padding:9px 13px;
  border-radius:10px;
  font-size:12px;
  font-weight:800;
  transition:transform 150ms ease,box-shadow 150ms ease,background-color 150ms ease;
}
.privacy-consent__choice{color:#fff;background:#5a20cb;border:1px solid #5a20cb;box-shadow:0 7px 15px rgba(90,32,203,.17)}
.privacy-consent__choice:nth-child(2){color:#fff;background:#363b57;border-color:#363b57;box-shadow:0 7px 15px rgba(23,24,51,.14)}
.privacy-consent__settings{grid-column:1/-1;color:#4f5570;background:transparent;border:1px solid #e5e6f0}
.privacy-consent__choice:hover,.privacy-consent__settings:hover{transform:translateY(-1px)}
.privacy-consent button:focus-visible,.privacy-preferences button:focus-visible,.privacy-switch input:focus-visible+span{outline:3px solid rgba(123,63,242,.3);outline-offset:2px}
.privacy-preferences{position:fixed;inset:0;z-index:2300;display:grid;place-items:center;padding:18px;font-family:var(--font-body)}
.privacy-preferences__backdrop{position:absolute;inset:0;width:100%;height:100%;background:rgba(15,13,31,.62);cursor:default}
.privacy-preferences__dialog{position:relative;z-index:1;width:min(590px,100%);max-height:min(760px,calc(100dvh - 36px));overflow:auto;padding:26px;background:#fff;border:1px solid #e1d3ff;border-radius:20px;box-shadow:0 28px 80px rgba(15,13,31,.32)}
.privacy-preferences__close{position:absolute;top:12px;right:12px;width:38px;height:38px;color:#4f5570;background:#f8f7fd;border-radius:10px;font-size:24px;line-height:1}
.privacy-preferences__dialog>p{margin-top:10px}
.privacy-preferences__category{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin-top:14px;padding:15px;border:1px solid #e5e6f0;border-radius:13px;background:#fbfaff}
.privacy-preferences__category>div{min-width:0}
.privacy-preferences__category strong{font-size:13px;color:#171833}
.privacy-preferences__category p{margin-top:3px}
.privacy-preferences__category[data-unavailable="true"]{opacity:.58}
.privacy-switch{position:relative;display:inline-flex;flex:0 0 auto}
.privacy-switch input{position:absolute;opacity:0;pointer-events:none}
.privacy-switch span[aria-hidden="true"]{position:relative;width:46px;height:26px;background:#cfd1df;border-radius:999px;transition:background-color 160ms ease;cursor:pointer}
.privacy-switch span[aria-hidden="true"]::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 2px 6px rgba(23,24,51,.2);transition:transform 160ms ease}
.privacy-switch input:checked+span{background:#21a867}
.privacy-switch input:checked+span::after{transform:translateX(20px)}
.privacy-switch input:disabled+span{cursor:not-allowed;opacity:.72}
.privacy-preferences__actions{display:flex;align-items:center;gap:10px;margin-top:18px}
html.privacy-preferences-open,body.privacy-preferences-open{overflow:hidden!important;overscroll-behavior:none}
body.privacy-preferences-open{position:fixed;inset-inline:0;top:var(--privacy-preferences-scroll-offset,0);width:100%;padding-right:var(--privacy-preferences-scrollbar-width,0)!important}
.footer-cookie-settings{font:inherit;font-size:14px;font-weight:600;color:rgba(255,255,255,.68);border:0;background:none;padding:0;cursor:pointer;text-align:left}
.footer-cookie-settings:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:560px){
  .privacy-consent{left:10px;bottom:10px;width:calc(100% - 20px)}
  .privacy-consent__panel{padding:14px;border-radius:15px}
  .privacy-consent__heading{gap:9px;margin-bottom:7px}
  .privacy-consent__icon{width:34px;height:34px;flex-basis:34px;border-radius:10px}
  .privacy-consent__icon svg{width:20px;height:20px}
  .privacy-consent h2,.privacy-preferences h2{font-size:20px}
  .privacy-consent p{font-size:11.5px;line-height:1.5}
  .privacy-consent__actions{margin-top:10px}
  .privacy-consent__choice,.privacy-consent__settings{min-height:38px;padding:7px 11px}
  .privacy-preferences{padding:10px;place-items:end center}
  .privacy-preferences__dialog{max-height:calc(100dvh - 20px);padding:21px 16px 18px;border-radius:17px}
  .privacy-preferences__category{gap:12px;padding:13px}
  .privacy-preferences__actions{align-items:stretch;flex-direction:column}
  .privacy-preferences__actions>*{width:100%}
}
@media(prefers-reduced-motion:reduce){.privacy-consent__choice,.privacy-consent__settings,.privacy-switch span{transition:none!important}}
