#u14-cookie-banner{position:fixed;z-index:10000;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(470px,calc(100% - 24px));box-sizing:border-box;padding:20px;background:#fff;color:#484844;border:1px solid #e6e6e3;border-radius:20px;box-shadow:0 12px 35px #00000014;font-family:inherit;font-size:15px;line-height:1.5;max-height:calc(100dvh - 36px);overflow:auto;text-align:left}
#u14-cookie-banner[hidden],#u14-cookie-reopen[hidden],#u14-cookie-banner [hidden]{display:none!important}
#u14-cookie-banner p{font-size:inherit;line-height:inherit;margin:0 0 16px;color:inherit}
#u14-cookie-banner a{color:inherit;text-decoration:underline;text-underline-offset:3px}
#u14-cookie-banner button{font:inherit;cursor:pointer}
.u14-cookie-actions{display:flex;gap:8px}
#u14-cookie-banner [data-choice]{border:0;border-radius:999px;background:#d10d12;color:#fff;font-size:14px;font-weight:600;padding:14px 12px;min-height:48px}
.u14-cookie-actions button{flex:1}
#u14-cookie-banner .u14-cookie-settings{display:block;background:none;border:0;color:inherit;text-decoration:underline;text-underline-offset:4px;margin:10px auto 0;padding:4px 10px;min-height:36px}
.u14-cookie-options{display:grid;gap:12px;margin:0 0 16px}
.u14-cookie-options label{display:flex;align-items:center;gap:8px;cursor:pointer}
.u14-cookie-options input{width:18px;height:18px;accent-color:#d10d12}
#u14-cookie-reopen{
  position:fixed;left:auto;right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));
  z-index:9999;width:44px;height:44px;min-width:0;min-height:0;padding:0;margin:0;display:grid;place-items:center;
  border:0;background:transparent;color:#484844;border-radius:50%;cursor:pointer;
}
#u14-cookie-reopen::before{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff;border:1px solid #d8d8d5;box-shadow:0 1px 3px #0001}
#u14-cookie-reopen svg{position:relative;pointer-events:none}

/* Keep the fixed button clear of the desktop editor's order panel. */
@media (min-width:1200px) {
  body:has(#u14-cookie-reopen:not([hidden])) .editor-page {
    box-sizing:border-box;padding-bottom:calc(48px + max(8px,env(safe-area-inset-bottom)));
  }
}
/* Keep the full width for mobile controls and scroll them above the cookie button. */
@media (max-width:1199px) {
  body:has(#u14-cookie-reopen) > #root:has(.editor-page) {
    --cookie-rail-height:calc(52px + max(8px,env(safe-area-inset-bottom)));
    height:calc(100dvh - var(--cookie-rail-height));
    min-height:0;overflow-y:auto;
  }
  #root:has(.editor-page) .workspace > .editor-inspector { bottom:var(--cookie-rail-height,0px); }
}
body:has(.editor-page) #u14-cookie-reopen { z-index:3; }

#u14-cookie-banner button:focus-visible,#u14-cookie-banner a:focus-visible,#u14-cookie-reopen:focus-visible{outline:2px solid #191919;outline-offset:3px}
@media(max-width:380px){#u14-cookie-banner{padding:16px}.u14-cookie-actions{flex-direction:column}}

/* The consent choices take their own row while the mobile editor scrolls above them. */
@media (max-width:1199px) {
  body:has(#root :is(.shop,.editor-page)):has(> #u14-cookie-banner:not([hidden])) {
    display:grid; grid-template-rows:minmax(0,1fr) auto; height:100dvh; min-height:0;
  }
  body:has(> #u14-cookie-banner:not([hidden])) > #root:has(:is(.shop,.editor-page)) {
    grid-row:1; height:auto; min-height:0; overflow:auto;
  }
  body:has(#root :is(.shop,.editor-page)) > #u14-cookie-banner:not([hidden]) {
    grid-row:2; position:static; transform:none; justify-self:center;
    margin:4px 0 max(4px,env(safe-area-inset-bottom)); max-height:44dvh;
  }
}
