.shop-flow-page {
  --shop-flow-ink: #191919;
  --shop-flow-muted: #5c5c5c;
  --shop-flow-line: #e4e4e4;
  --shop-flow-surface: #f7f7f7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--shop-flow-ink);
}

.shop-flow-page :is(.payment-main, .checkout-main, .orders-main:not(.is-signed-in)) {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  padding-block: clamp(18px, 4vh, 36px);
}

.shop-flow-page :is(.checkout-main, .orders-main:not(.is-signed-in)) > .shop-flow-back {
  align-self: flex-start;
  margin-bottom: 12px;
}

.shop-flow-page .store-flow-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}

.shop-flow-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--shop-flow-muted);
  font-size: 14px;
}

.shop-flow-back span {
  font-size: 24px;
  line-height: 1;
}

.shop-flow-back:hover { color: var(--shop-flow-ink); }

.shop-flow-page .shop-message { border-radius: 10px; }

.shop-verify .shop-field {
  color: var(--shop-flow-ink);
  font-weight: 600;
}

.shop-flow-page .shop-field :is(input, textarea) {
  min-height: 50px;
  padding-block: 11px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  color: var(--shop-flow-ink);
  font-size: 16px;
  font-weight: 400;
}

.shop-flow-page .shop-field :is(input, textarea)::placeholder { color: #707070; }

.shop-flow-page :is(a, button, input, textarea):focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
}

.shop-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #fff;
}

.shop-flow-page .shop-code-row input {
  min-height: 48px;
  border-color: transparent;
}

.shop-flow-page .shop-field :is(input, textarea)[aria-invalid="true"],
.shop-code-row:has(input[aria-invalid="true"]) { border-color: #b52e27; }
.shop-flow-page .shop-code-row input[aria-invalid="true"] { border-color: transparent; }

.shop-code-row button {
  min-height: 44px;
  min-width: 105px;
  margin-block: 2px;
  padding-inline: 12px;
  border: 0;
  border-left: 1px solid var(--shop-flow-line);
  border-radius: 0 7px 7px 0;
  background: transparent;
  color: var(--shop-flow-ink);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.shop-code-row button:hover:not(:disabled) { background: #eee; }
.shop-code-row button:disabled { color: var(--shop-flow-muted); cursor: default; }

.shop-verify .captcha-fields {
  grid-template-columns: minmax(0, 1fr) min(134px, 42%);
  align-items: end;
}

.shop-verify #captcha-row { margin-bottom: 18px; }
.shop-verify .captcha-fields .shop-field,
.shop-verify .captcha-button { margin-bottom: 0; }

.shop-verify .captcha-button {
  height: 50px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
}

.shop-verify .captcha-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-flow-page .auth-status {
  margin: 0;
  color: var(--shop-flow-muted);
  font-size: 13px;
}

.shop-flow-page .auth-status:empty { display: none; }

.shop-flow-page .button {
  min-height: 46px;
  border: 1px solid var(--shop-flow-ink);
  border-radius: 999px;
  background: var(--shop-flow-ink);
  color: #fff;
  font-weight: 650;
}

.shop-flow-page .button:hover:not(:disabled) { background: #333; }

.shop-flow-page .button.secondary {
  border-color: #d7d7d7;
  background: #fff;
  color: var(--shop-flow-ink);
}

.shop-flow-page .button.secondary:hover:not(:disabled) { background: #eee; }
.shop-flow-page .button:disabled { opacity: .55; }
.shop-verify #verify-email { width: 100%; min-height: 50px; }

.shop-verified-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--shop-flow-surface);
}

.shop-verified-account .shop-hint { color: var(--shop-flow-muted); }
.shop-verified-account p { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.shop-verified-account .plain-button { color: var(--shop-flow-ink); }

