/* Match the light cookie sheet to the site's softer gray surfaces. */
html body #cookie-preferences[data-surface="light"] {
  background: rgba(232, 232, 232, .9);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .19), 0 4px 18px rgba(0, 0, 0, .08);
}

/* iPhone cookie consent uses the full-width Studio sheet geometry. */
@media (max-width: 600px) {
  html body #cookie-preferences {
    position: fixed;
    inset: auto 0 0;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 22px max(22px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
    border: 0;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
  }
  html body #cookie-preferences[data-surface="light"] {
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .15);
  }
  html body #cookie-preferences::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    box-sizing: border-box;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 2px, transparent 29px);
    mask-image: linear-gradient(to bottom, #000 0, #000 2px, transparent 29px);
  }
  html body #cookie-preferences[data-surface="light"]::after {
    border-color: rgba(75, 75, 75, .2);
  }
}
