.storefront-preferences {
  width: fit-content;
  max-width: 100%;
  margin: .25rem 0 0;
  color: #edf3fc;
  font-size: .8125rem;
  line-height: 1.35;
}

.storefront-preferences[open] {
  width: min(100%, 21rem);
}

.storefront-preferences summary {
  display: list-item;
  width: fit-content;
  padding: .625rem 0;
  color: #cbd7ec;
  cursor: pointer;
}

.storefront-preferences-body {
  padding: .625rem .75rem .25rem;
  border: 1px solid rgb(225 237 255 / .16);
  border-radius: .625rem;
  background: rgb(226 237 255 / .065);
}

.storefront-meta-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.storefront-meta-option small,
.shop-footer .storefront-count-preference p,
.shop-footer .storefront-privacy-status {
  display: block;
  margin: .125rem 0 0;
  color: #c6d3e8;
  font-size: .75rem;
  line-height: 1.4;
}

.storefront-meta-option input {
  appearance: none;
  position: relative;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 1.25rem;
  margin: 0;
  border: 1px solid #8395b3;
  border-radius: 1rem;
  background: #344b70;
  color: #f4f8ff;
  cursor: pointer;
}

.storefront-meta-option input::before {
  content: '';
  position: absolute;
  top: .125rem;
  left: .125rem;
  width: .875rem;
  height: .875rem;
  border-radius: 50%;
  background: currentColor;
}

.storefront-meta-option input:checked {
  border-color: #acc1ff;
  background: #3a60d2;
}

.storefront-meta-option input:checked::before {
  left: auto;
  right: .125rem;
}

.storefront-preferences :focus-visible {
  outline: 2px solid #bad0ff;
  outline-offset: 3px;
}

.shop-footer .storefront-privacy-status:empty {
  display: none;
}

.storefront-count-preference {
  margin-top: .5rem;
  padding-top: .375rem;
  border-top: 1px solid rgb(225 237 255 / .14);
}

.storefront-privacy-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: .75rem;
  row-gap: 0;
}

.shop-footer .storefront-privacy-links :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8e5ff;
  font: inherit;
  font-size: .75rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.storefront-privacy-links button {
  cursor: pointer;
}

.shop-footer .storefront-privacy-links button[hidden] {
  display: none;
}

@media (forced-colors: active) {
  .storefront-meta-option input {
    appearance: auto;
    flex-basis: 1.25rem;
    width: 1.25rem;
  }

  .storefront-meta-option input::before {
    display: none;
  }
}

.storefront-pixel-prompt {
  position: fixed;
  z-index: 90;
  inset-inline: 0;
  bottom: 0;
  max-height: 100dvh;
  overflow: auto;
  box-sizing: border-box;
  padding: .5rem max(.875rem, env(safe-area-inset-right)) max(.5rem, env(safe-area-inset-bottom)) max(.875rem, env(safe-area-inset-left));
  border-top: 1px solid #bacbe3;
  background: rgb(246 249 254 / .60);
  box-shadow: 0 -3px 16px rgb(18 39 76 / .09);
  color: #142540;
  font-size: .8125rem;
  line-height: 1.35;
}

.storefront-pixel-prompt[hidden] {
  display: none;
}

.storefront-pixel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .375rem 1.5rem;
  max-width: 82rem;
  margin-inline: auto;
}

.storefront-pixel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .125rem .75rem;
}

.storefront-pixel-content {
  border-radius: .25rem;
  background: rgb(246 249 254 / .52);
  text-shadow: 0 1px 2px rgb(250 252 255 / .9);
}

.storefront-pixel-heading a {
  color: #152f66;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.storefront-pixel-prompt p {
  margin: .125rem 0 0;
  color: #182b48;
}

.storefront-pixel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 6.75rem));
  gap: .5rem;
}

.storefront-pixel-actions button {
  min-height: 2.75rem;
  padding: .25rem .625rem;
  border: 1px solid #9babca;
  border-radius: .5rem;
  background: #fff;
  color: #203b74;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.storefront-pixel-actions button:hover {
  background: #ebf1fc;
}

.storefront-pixel-prompt :focus-visible {
  outline: 2px solid #3156ad;
  outline-offset: 2px;
}

@media (max-width: 42rem) {
  .storefront-pixel-prompt {
    padding-block: .3125rem max(.3125rem, env(safe-area-inset-bottom));
    font-size: .78125rem;
    line-height: 1.2;
  }

  .storefront-pixel-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: .3125rem;
  }

  .storefront-pixel-prompt p {
    margin-top: .0625rem;
  }

  .storefront-pixel-heading {
    justify-content: space-between;
  }

  .storefront-pixel-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
