/* User-selected B. Scoped to this native dialog; photo/lightbox rules stay intact. */
#thanks-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 27px 30px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #455159;
  border-top: 4px solid #ffda29;
  border-radius: 9px;
  background: #11191e;
  color: #f3f1e9;
  box-shadow: 0 28px 70px #0007;
  text-align: left;
  font-family: Manrope, sans-serif;
  color-scheme: dark;
}
#thanks-dialog:not([open]) { display: none; }
#thanks-dialog::backdrop { background: #03080bc2; backdrop-filter: blur(3.5px); }
#thanks-dialog .thanks-close {
  position: absolute;
  top: 10px;
  right: 13px;
  width: 44px;
  height: 44px;
  padding: 11px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #bdc6ca;
  cursor: pointer;
}
#thanks-dialog .thanks-close svg { width: 21px; height: 21px; }
#thanks-dialog .thanks-brand { display: block; width: 94px; height: 42px; object-fit: contain; margin: 0 0 35px; }
#thanks-dialog .thanks-success-mark { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
#thanks-dialog .thanks-check { display: grid; place-items: center; width: 66px; height: 66px; background: #ffda29; color: #0a1014; border-radius: 6px; }
#thanks-dialog .thanks-check svg { width: 37px; height: 37px; }
#thanks-dialog .thanks-signal { width: 61px; height: 48px; color: #52616a; margin-right: 8px; }
#thanks-dialog #thanks-title { margin: 0; color: #ffda29; font: 500 63px/1.08 Oswald, 'Arial Narrow', sans-serif; letter-spacing: -.6px; text-transform: uppercase; }
#thanks-dialog .thanks-status { font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: -.4px; margin: 16px 0 0; color: #f3f1e9; }
#thanks-dialog .thanks-description { font-size: 19px; font-weight: 400; line-height: 1.55; margin: 16px 0 29px; max-width: 330px; color: #c4cdd1; }
#thanks-dialog .thanks-primary {
  width: 100%;
  min-height: 58px;
  padding: 15px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 4px;
  background: #ffda29;
  color: #0a1014;
  font: 800 17px/1.4 Manrope, sans-serif;
  cursor: pointer;
  text-align: left;
}
#thanks-dialog .thanks-primary svg { width: 21px; height: 21px; flex: none; }
#thanks-dialog .thanks-primary:hover { background: #ffe465; }
#thanks-dialog .thanks-close:hover { background: #ffffff12; color: #fff; }
#thanks-dialog button:focus-visible { outline: 3px solid #f3f1e9; outline-offset: 4px; }
#thanks-dialog #thanks-title:focus { outline: none; }
#thanks-dialog .thanks-demo-note { margin: -13px 0 24px; padding: 10px 12px; border: 1px solid #52616a; border-radius: 4px; color: #c4cdd1; font-size: 12px; line-height: 1.5; }
#thanks-dialog .thanks-demo-note[hidden] { display: none; }
body:has(#thanks-dialog[open]) { overflow: hidden; }
.thanks-preview-control { padding: 24px 5%; border-top: 1px solid #ffffff24; background: #11191e; color: #c4cdd1; }
.thanks-preview-control p { margin: 0 0 10px; font: 400 12px/1.5 Manrope, sans-serif; }
.thanks-preview-control button { min-height: 44px; padding: 10px 14px; border: 1px solid #ffda29; border-radius: 4px; color: #ffda29; background: transparent; font: 600 13px/1.5 Manrope, sans-serif; text-align: left; cursor: pointer; }
.thanks-preview-control button:focus-visible { outline: 3px solid #f3f1e9; outline-offset: 4px; }
.thanks-preview-control[hidden], body[data-reals-runtime="production"] .thanks-preview-control { display: none; }
@media (max-width: 420px) {
  #thanks-dialog { padding: 23px 22px; }
  #thanks-dialog .thanks-brand { margin-bottom: 27px; }
  #thanks-dialog #thanks-title { font-size: 55px; }
  #thanks-dialog .thanks-status { font-size: 21px; }
  #thanks-dialog .thanks-description { font-size: 17px; }
  #thanks-dialog .thanks-primary { font-size: 15px; min-height: 56px; padding: 15px 17px; }
}
@media (max-height: 620px) {
  #thanks-dialog .thanks-brand { margin-bottom: 22px; }
  #thanks-dialog .thanks-success-mark { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #thanks-dialog, #thanks-dialog::backdrop, #thanks-dialog * { animation: none; transition: none; scroll-behavior: auto; }
}
