.size-banner-ad {
  margin: 44px auto 0;
  width: min(100%, 970px);
  padding-top: 18px;
  border-top: 1px solid rgba(231, 227, 204, .1);
}
.size-banner-ad[data-status="pending"] {
  border-top-color: transparent;
}
.size-banner-ad-label {
  display: block;
  margin-bottom: 12px;
  color: #9ea8aa;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .04em;
}
.size-ad-preferences {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 10, 13, .8);
  backdrop-filter: blur(8px);
}
.size-ad-preferences-panel {
  width: min(100%, 500px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 32px;
  background: #141c20;
  border: 1px solid rgba(231, 227, 204, .16);
  border-radius: 24px;
  color: #ece9dd;
  box-shadow: 0 24px 100px rgba(0, 0, 0, .35);
}
.size-ad-preferences-panel h2 {margin: 0 0 18px;font-size: 24px;letter-spacing: -.04em;}
.size-ad-preferences-panel p {margin: 0;color: #b9c2c3;font-size: 15px;line-height: 1.75;}
.size-ad-preferences-links {display: flex;flex-wrap: wrap;gap: 14px;margin: 20px 0 26px;}
.size-ad-preferences-links a {color: #ece0a0;font-size: 13px;text-underline-offset: 4px;}
.size-ad-preferences-actions {display: grid;gap: 10px;}
.size-ad-preferences-actions button {
  width: 100%;min-height: 48px;padding: 12px 18px;
  border: 1px solid rgba(232, 206, 92, .35);border-radius: 12px;
  background: rgba(232, 206, 92, .06);color: #e8ce5c;
  font: inherit;font-size: 14px;font-weight: 600;cursor: pointer;
}
.size-ad-preferences-actions button:hover {background: rgba(232, 206, 92, .12);}
.size-ad-preferences-close {
  display: block;margin: 18px auto 0;padding: 8px 16px;
  background: transparent;border: 0;color: #a9b3b6;font: inherit;font-size: 13px;cursor: pointer;
}
.size-ad-preferences-panel :focus-visible {outline: 2px solid #e8ce5c;outline-offset: 4px;}
@media (max-width: 520px) {
  .size-ad-preferences {padding: 16px;}
  .size-ad-preferences-panel {padding: 24px;border-radius: 20px;}
}

/* Voluntary settings appear below the store/profile and never reserve an ad slot. */
.size-ad-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(100%, 970px); margin: 38px auto 0; padding-top: 22px;
  border-top: 1px solid var(--line, #30463b22); color: var(--fg, #30463b);
}
.size-ad-choice-copy { max-width: 560px; }
.size-ad-choice-title { margin: 0 0 8px; font-size: 15px; font-weight: 550; }
.size-ad-choice-description { margin: 0; color: var(--muted, #5f6b59); font-size: 14px; line-height: 1.7; }
.size-ad-choice-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.size-ad-choice-actions .secondary { min-height: 42px; padding: 10px 16px; font-size: 14px; white-space: nowrap; }
.size-ad-choice-actions .quiet { min-height: 42px; padding: 10px 0; font-size: 13px; white-space: nowrap; }
@media (max-width: 700px) {
  .size-ad-choice { align-items: flex-start; flex-direction: column; gap: 18px; }
  .size-ad-choice-actions { flex-wrap: wrap; }
}
