body.has-cookie-bar{
  padding-bottom:calc(var(--cookie-bar-h,0px) + var(--sticky-cta-h,0px));
}
.cookie-bar{
  position:fixed;
  left:var(--gutter);
  right:var(--gutter);
  bottom:calc(var(--sp-2) + env(safe-area-inset-bottom));
  z-index:999;
  display:flex;
  flex-direction:column;
  gap:var(--sp-2);
  max-width:480px;
  margin:0 auto;
  box-sizing:border-box;
  padding:var(--sp-3);
  background:var(--paper-raised);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-md);
}
.cookie-bar__text{
  margin:0;
  font-size:13px;
  line-height:1.4;
  color:var(--ink-soft);
}
.cookie-bar__link{
  color:var(--ink-soft);
  text-decoration:underline;
}
.cookie-bar__actions{
  display:flex;
  gap:var(--sp-2);
  flex-wrap:wrap;
}
.cookie-bar__button{
  flex:1 1 auto;
  border:none;
  border-radius:var(--r-pill);
  background:var(--accent);
  color:var(--paper-raised);
  font-family:var(--font-ui);
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  padding:var(--sp-2) var(--sp-3);
  cursor:pointer;
  white-space:nowrap;
}
.cookie-bar__button:hover{
  background:var(--accent-strong);
}
.cookie-bar__button--ghost{
  background:transparent;
  border:1px solid var(--line);
  color:var(--ink-soft);
}
.cookie-bar__button--ghost:hover{
  background:var(--paper-sunken);
}

@media (min-width:1024px){
  body.has-cookie-bar{
    padding-bottom:0;
  }
  .cookie-bar{
    left:auto;
    right:24px;
    bottom:24px;
    max-width:360px;
    margin:0;
  }
}
