html.seller-dialog-open,
html.seller-dialog-open body {
  overflow: hidden;
}

.seller-readiness-backdrop {
  position: fixed;
  z-index: 1099;
  inset: 0;
  background: rgba(5, 38, 33, 0.72);
  backdrop-filter: blur(7px);
}

.seller-readiness-backdrop[hidden] {
  display: none;
}

.seller-readiness-dialog.is-fallback-open {
  display: block;
  position: fixed;
  z-index: 1100;
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.seller-readiness-dialog {
  width: min(64rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(54rem, calc(100vh - 2rem));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2rem;
  background: #fffaf1;
  color: #173f37;
  box-shadow: 0 2rem 6rem rgba(4, 35, 30, 0.35);
}

.seller-readiness-dialog::backdrop {
  background: rgba(5, 38, 33, 0.72);
  backdrop-filter: blur(7px);
}

.seller-readiness-shell {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  max-height: inherit;
}

.seller-readiness-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  background: #0b584c;
  color: #fffaf1;
}

.seller-readiness-header p,
.seller-readiness-header h2 {
  margin: 0;
}

.seller-readiness-header p {
  color: #f6b13c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seller-readiness-header h2 {
  margin-top: 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.seller-dialog-close,
.seller-secondary-button,
.seller-primary-button,
.seller-restart-button {
  min-height: 3rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.seller-dialog-close {
  flex: 0 0 auto;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.seller-privacy-note {
  display: flex;
  gap: 0.55rem;
  padding: 0.78rem clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(11, 88, 76, 0.12);
  background: #fff0ce;
  color: #5f4a25;
  font-size: 0.78rem;
  line-height: 1.45;
}

.seller-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  list-style: none;
  border-bottom: 1px solid rgba(11, 88, 76, 0.12);
}

.seller-stepper li {
  position: relative;
  padding: 1rem 0.5rem 0.9rem;
  color: #7a817d;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.seller-stepper li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

.seller-stepper li[aria-current="step"] {
  color: #0b584c;
}

.seller-stepper li[aria-current="step"]::after,
.seller-stepper li.is-complete::after {
  background: #f6b13c;
}

.seller-stepper span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.seller-readiness-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.35rem, 4vw, 2.6rem);
}

.seller-step {
  max-width: 56rem;
  margin: 0 auto;
}

.seller-step[hidden] {
  display: none;
}

.seller-step-kicker,
.seller-step h3,
.seller-step > p {
  margin-top: 0;
}

.seller-step-kicker {
  margin-bottom: 0.35rem;
  color: #d95d45;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seller-step h3 {
  margin-bottom: 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.seller-step > p:not(.seller-step-kicker) {
  color: #65716c;
  line-height: 1.55;
}

.seller-choice-grid,
.seller-check-grid {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}

.seller-choice-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.seller-choice-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid rgba(11, 88, 76, 0.16);
  border-radius: 1.25rem;
  background: #fff;
  cursor: pointer;
}

.seller-choice-card:has(input:checked) {
  border-color: #0b584c;
  background: #e3f0e8;
  box-shadow: inset 0 0 0 2px #0b584c;
}

.seller-choice-card:focus-within,
.seller-check-card:focus-within {
  outline: 3px solid #f6b13c;
  outline-offset: 3px;
}

.seller-choice-card input,
.seller-check-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.seller-choice-index {
  color: #d95d45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.seller-choice-card strong {
  margin-top: 1rem;
  color: #103d35;
}

.seller-choice-card > span:last-child {
  margin-top: 0.4rem;
  color: #69736f;
  font-size: 0.76rem;
  line-height: 1.45;
}

.seller-region-field {
  display: grid;
  gap: 0.55rem;
  max-width: 34rem;
  margin-top: 1.6rem;
  font-weight: 800;
}

.seller-region-field select {
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid rgba(11, 88, 76, 0.24);
  border-radius: 0.9rem;
  background: #fff;
  color: #173f37;
  font: inherit;
}

.seller-region-field small {
  color: #7a817d;
  font-weight: 400;
}

.seller-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seller-check-card {
  position: relative;
  display: flex;
  gap: 0.8rem;
  min-height: 6rem;
  padding: 1rem;
  border: 1px solid rgba(11, 88, 76, 0.15);
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
}

.seller-check-card:has(input:checked) {
  border-color: #0b584c;
  background: #e3f0e8;
}

.seller-check-box {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #8b938f;
  border-radius: 0.4rem;
}

.seller-check-card:has(input:checked) .seller-check-box {
  border-color: #0b584c;
  background: #0b584c;
  box-shadow: inset 0 0 0 4px #e3f0e8;
}

.seller-check-card strong,
.seller-check-card small {
  display: block;
}

.seller-check-card small {
  margin-top: 0.3rem;
  color: #6d7773;
  line-height: 1.4;
}

.seller-summary {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

.seller-score {
  --seller-score: 0deg;
  display: grid;
  place-content: center;
  width: 9.5rem;
  aspect-ratio: 1;
  padding: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fffaf1 56%, transparent 58%), conic-gradient(#f6b13c var(--seller-score), #dfe9e3 0);
  text-align: center;
}

.seller-score strong,
.seller-score span {
  display: block;
}

.seller-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.seller-score span {
  max-width: 6rem;
  color: #65716c;
  font-size: 0.65rem;
  line-height: 1.2;
}

.seller-summary-copy p {
  margin: 0.45rem 0 0;
  color: #66716d;
}

.seller-next-actions {
  grid-column: 1 / -1;
  padding: 1.2rem 1.35rem;
  border-radius: 1.2rem;
  background: #e3f0e8;
}

.seller-next-actions h4,
.seller-next-actions ol {
  margin: 0;
}

.seller-next-actions ol {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-left: 1.2rem;
  color: #37534d;
  line-height: 1.45;
}

.seller-restart-button {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0 1rem;
  border: 1px solid #0b584c;
  background: transparent;
  color: #0b584c;
}

.seller-readiness-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(11, 88, 76, 0.12);
  background: #fffdf8;
}

.seller-readiness-footer p {
  margin: 0;
  color: #737b77;
  font-size: 0.76rem;
  font-weight: 800;
}

.seller-secondary-button,
.seller-primary-button {
  min-width: 8rem;
  padding: 0 1.2rem;
}

.seller-secondary-button {
  justify-self: start;
  border: 1px solid rgba(11, 88, 76, 0.3);
  background: transparent;
  color: #0b584c;
}

.seller-primary-button {
  justify-self: end;
  border: 0;
  background: #d95d45;
  color: #fff;
}

.seller-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.seller-dialog-close:focus-visible,
.seller-secondary-button:focus-visible,
.seller-primary-button:focus-visible,
.seller-restart-button:focus-visible,
.seller-region-field select:focus-visible {
  outline: 3px solid #f6b13c;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .seller-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-choice-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .seller-readiness-dialog {
    width: 100%;
    max-height: calc(100vh - 0.5rem);
    margin: auto 0 0;
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .seller-readiness-dialog.is-fallback-open {
    inset: auto 0 0;
    transform: none;
  }

  .seller-readiness-header {
    align-items: center;
  }

  .seller-dialog-close {
    min-width: 3rem;
    padding: 0 0.75rem;
    font-size: 0.72rem;
  }

  .seller-privacy-note {
    display: grid;
  }

  .seller-stepper li {
    font-size: 0;
  }

  .seller-stepper li span {
    font-size: 0.9rem;
  }

  .seller-readiness-content {
    padding: 1.25rem;
  }

  .seller-choice-grid,
  .seller-check-grid {
    grid-template-columns: 1fr;
  }

  .seller-choice-card,
  .seller-choice-card:last-child {
    grid-column: auto;
    min-height: 7.5rem;
  }

  .seller-summary {
    grid-template-columns: 1fr;
  }

  .seller-score {
    width: 8rem;
  }

  .seller-next-actions,
  .seller-restart-button {
    grid-column: auto;
  }

  .seller-readiness-footer {
    grid-template-columns: 1fr 1fr;
  }

  .seller-readiness-footer p {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .seller-secondary-button,
  .seller-primary-button {
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .seller-readiness-dialog[open]:not(.is-fallback-open) {
    animation: seller-dialog-enter 220ms ease both;
  }
}

@keyframes seller-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.985);
  }
}
