/* ==========================================================================
   POPOMO Plan F (Clean Girl Soft-Luxe Lavender) — Account, My Designs, Checkout, Payment & Orders
   Loaded last to establish unified Soft-Luxe Lavender surfaces across all personal & commerce routes.
   ========================================================================== */

/* 1. Shared Route Theme Canvas & Soft-Luxe Button Primitives */
body:is(
  [data-v35-route="account"],
  [data-v35-route="my-designs"],
  [data-v35-route="checkout"],
  [data-v35-route="orders"],
  [data-v35-route="payment"],
  [data-v35-route="pass"]
) {
  --bg: var(--popomo-bg, #F8F7FD);
  --paper: var(--popomo-bg, #F8F7FD);
  --surface: var(--popomo-surface, #FFFFFF);
  --surface-2: var(--popomo-surface-soft, #FAF8FD);
  --ink: var(--popomo-ink, #18071A);
  --body: var(--popomo-ink-soft, #3A2A42);
  --muted: var(--popomo-ink-muted, #5E4D6B);
  --line: var(--popomo-border, rgba(96, 43, 135, 0.12));
  --accent: var(--popomo-teal, #7D4AA3);
  --accent-soft: var(--popomo-teal-soft, #E8DAF1);
  --teal: var(--popomo-teal, #7D4AA3);
  --teal-deep: var(--popomo-teal-deep, #602B87);
  --pink: var(--popomo-pink, #5C2662);
  --pink-hover: var(--popomo-pink-hover, #4A1C50);
  --primary: var(--popomo-pink, #5C2662);
  background-color: var(--popomo-canvas, #F8F7FD);
  background-image: radial-gradient(ellipse 65% 35% at 50% 0%, rgba(233, 223, 250, 0.45), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--popomo-ink, #18071A);
}

body[data-v35-route] :is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders) {
  --ink: var(--popomo-ink, #18071A);
  --muted: var(--popomo-ink-muted, #5E4D6B);
  --line: var(--popomo-border, rgba(96, 43, 135, 0.12));
  --mint: var(--popomo-teal-soft, #E8DAF1);
  color: var(--popomo-ink, #18071A);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--popomo-teal-deep, #602B87);
  outline-offset: 2px;
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  transition: background-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  cursor: pointer;
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.primary {
  background: linear-gradient(180deg, #652A6E 0%, #522059 100%);
  color: #FFFFFF;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(92, 38, 98, 0.24);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #5C2662 0%, #4A1C50 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(92, 38, 98, 0.30);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(92, 38, 98, 0.20);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.secondary {
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-ink, #18071A);
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.secondary:hover:not(:disabled) {
  background: #FAF5FE;
  border-color: var(--popomo-teal-deep, #602B87);
  color: var(--popomo-teal-dark, #522059);
  transform: translateY(-1px);
  box-shadow: var(--popomo-shadow-md, 0 12px 30px rgba(96, 43, 135, 0.08));
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.secondary:active:not(:disabled) {
  transform: translateY(0);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.v35-btn-teal {
  background: linear-gradient(180deg, #7D4AA3 0%, #602B87 100%);
  color: #FFFFFF;
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(96, 43, 135, 0.24);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.v35-btn-teal:hover:not(:disabled) {
  background: linear-gradient(180deg, #602B87 0%, #4E2157 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(78, 33, 87, 0.30);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.v35-btn-dark {
  background: var(--popomo-ink, #18071A);
  color: #FFFFFF;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(24, 7, 26, 0.16);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders, .v35-soon-dialog, .v35-station-picker, .v35-order-success) .button.v35-btn-dark:hover:not(:disabled) {
  background: #2C1530;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(24, 7, 26, 0.22);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders) .text-button {
  color: var(--popomo-teal-deep, #602B87);
  font-weight: 700;
  min-height: 40px;
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders) .text-button:hover {
  color: var(--popomo-ink, #18071A);
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders) button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

:is(.account-flow, .v35-my-designs, .v35-checkout, .v35-orders) .button.primary:disabled {
  background: #EDE8F3;
  color: #7C6E8A;
  border-color: rgba(96, 43, 135, 0.16);
  box-shadow: none;
  opacity: 1;
}

/* ==========================================================================
   2. ACCOUNT & LOGIN (#account) — Soft-Luxe Split Card & Profile Hub
   ========================================================================== */
body[data-v35-route="account"] {
  background-color: var(--popomo-canvas, #F8F7FD);
  background-image: radial-gradient(ellipse 65% 35% at 50% 0%, rgba(233, 223, 250, 0.45), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

body[data-v35-route="account"] #main {
  padding: 28px 24px 64px;
}

.v35-account-layout.v35-account-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 1120px;
  min-height: 540px;
  margin: 0 auto;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 22px;
  overflow: hidden;
  background: var(--popomo-surface, #FFFFFF);
  box-shadow: var(--popomo-shadow-md, 0 12px 30px rgba(96, 43, 135, 0.08));
  backdrop-filter: none;
}

.v35-account-login.v35-account-status {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: min(440px, 60dvh);
  text-align: center;
  padding: 36px;
  background: var(--popomo-surface, #FFFFFF);
}

.v35-account-status h1 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
  margin: 0;
}

/* Left Column: Soft Lavender POPOMO Showcase matching Plan F */
.v35-account-login :is(.v35-account-story, .v35-auth-welcome) {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 42px 34px;
  border-right: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  background: linear-gradient(160deg, #EBE1F9 0%, #F3EDF9 60%, #FAF8FD 100%);
  background-image:
    radial-gradient(circle at 80% 18%, rgba(249, 229, 231, 0.55), transparent 55%),
    linear-gradient(160deg, #EBE1F9 0%, #F3EDF9 60%, #FAF8FD 100%);
  color: var(--popomo-ink, #18071A);
}

.v35-account-login .v35-story-kicker {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--popomo-teal-deep, #602B87);
  margin: 0;
}

.v35-account-fan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin: 26px 0 20px;
}

.v35-fan-case {
  position: relative;
  isolation: isolate;
  width: 102px;
  height: 184px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #EDE4F7;
  border: 3px solid #18071A;
  box-shadow: 0 12px 24px rgba(24, 7, 26, 0.16);
  flex: none;
}

.v35-fan-case img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.v35-fan-cam {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #F3EDF9;
  border: 1.5px solid #18071A;
  z-index: 3;
}

.v35-fan-case.is-left {
  transform: translateX(18px) translateY(10px) rotate(-11deg) scale(0.92);
  z-index: 1;
}

.v35-fan-case.is-center {
  width: 112px;
  height: 204px;
  transform: translateY(-4px);
  z-index: 3;
  box-shadow: 0 16px 32px rgba(24, 7, 26, 0.22);
}

.v35-fan-case.is-right {
  transform: translateX(-18px) translateY(10px) rotate(11deg) scale(0.92);
  z-index: 2;
}

.v35-account-story-copy {
  text-align: center;
  margin: 0 0 24px;
}

.v35-account-login :is(.v35-account-story, .v35-auth-welcome) h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--popomo-ink, #18071A);
  text-shadow: none;
  margin: 0 0 8px;
}

.v35-account-login :is(.v35-account-story, .v35-auth-welcome) p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 0 auto;
  max-width: 340px;
}

.v35-account-login .account-gift {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid rgba(96, 43, 135, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: auto auto 0;
  width: 100%;
  max-width: 360px;
  color: var(--popomo-ink, #18071A);
}

.v35-account-login .v35-gift-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--popomo-teal-deep, #602B87);
  padding: 0;
}

.v35-account-login .account-gift > div {
  min-width: 0;
  flex: 1;
}

.v35-account-login .account-gift > div > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--popomo-teal-deep, #602B87);
  line-height: 1.4;
}

.v35-account-login .account-gift strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--popomo-ink, #18071A);
  margin: 4px 0;
}

.v35-account-login .account-gift strong span {
  font: inherit;
  color: var(--popomo-ink, #18071A);
}

.v35-account-login .account-gift small {
  display: block;
  font-size: 12px;
  color: var(--popomo-ink-muted, #5E4D6B);
  line-height: 1.5;
}

.v35-account-login .v35-account-story-bottom {
  color: var(--popomo-teal-deep, #602B87);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(96, 43, 135, 0.14);
  opacity: 0.85;
}

/* Right Column: Crisp Pure White Pearl Auth Form Card */
.v35-account-login .v35-account-form.account-card {
  min-width: 0;
  padding: 36px 46px;
  background: #FFFFFF;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.v35-account-login .back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  min-height: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--popomo-ink-muted, #5E4D6B);
  text-decoration: none;
}

.v35-account-login .back-link:hover {
  color: var(--popomo-ink, #18071A);
}

.v35-account-login .v35-account-acct {
  font-size: 12px;
  font-weight: 600;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 0 0 4px;
}

.v35-account-login .account-card h1 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--popomo-ink, #18071A);
  margin: 0 0 6px;
}

.v35-account-login .v35-account-intro {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 18px;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-account-login .account-card label {
  font-size: 12.5px;
  font-weight: 700;
  display: block;
  margin: 0 0 6px;
  color: var(--popomo-ink, #18071A);
}

.v35-account-login .account-card input,
.v35-profile-layout .account-card input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 14px;
  color: var(--popomo-ink, #18071A);
  caret-color: var(--popomo-teal-deep, #602B87);
  padding: 10px 14px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.v35-account-login .account-card input:focus,
.v35-profile-layout .account-card input:focus {
  background: #FFFFFF;
  border-color: var(--popomo-teal-deep, #602B87);
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
  outline: none;
}

.v35-account-login #customer-email-form .button.primary {
  min-height: 46px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7D4AA3 0%, #5C2662 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(92, 38, 98, 0.26);
}

.v35-account-login #customer-email-form .button.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #602B87 0%, #4A1C50 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(92, 38, 98, 0.34);
}

.v35-account-login .account-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 16px 0 0;
  line-height: 1.6;
}

.v35-account-login .account-note a {
  color: var(--popomo-ink, #18071A);
  text-decoration: underline;
}

.v35-account-login .account-sent {
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FAF5FE;
  border: 1px solid rgba(96, 43, 135, 0.26);
  color: var(--popomo-teal-dark, #522059);
  font-weight: 600;
}

.v35-account-login .account-info-banner {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 0;
  border-left: 3px solid var(--popomo-teal-deep, #602B87);
  border-radius: 10px;
  background: var(--popomo-surface-soft, #FAF8FD);
  color: var(--popomo-ink-muted, #5E4D6B);
  font-weight: 600;
}

.v35-account-login .account-error {
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FFF1F4;
  border: 1px solid rgba(190, 18, 60, 0.26);
  color: #9F1239;
  font-weight: 600;
}

/* Google and Facebook sign-in */
.v35-account-login .social-login-options {
  margin-bottom: 16px;
}

.v35-account-login .social-login-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.v35-account-login .social-login-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--popomo-border, #E4D8EE);
  border-radius: 12px;
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-ink, #18071A);
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.v35-account-login .social-login-button:hover:not(:disabled) {
  background: var(--popomo-surface-soft, #FAF5FE);
  border-color: var(--popomo-teal-deep, #602B87);
}

.v35-account-login .social-login-button svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.v35-account-login .account-divider {
  position: relative;
  text-align: center;
  margin: 4px 0 12px;
  font-size: 12px;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-account-login .account-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(96, 43, 135, 0.14);
}

.v35-account-login .account-divider span {
  position: relative;
  padding: 0 12px;
  background: #FFFFFF;
}

/* 4-tile Bottom Social Options Row */
.v35-oauth-soon-block {
  margin-top: 18px;
}

.v35-oauth-soon-label {
  position: relative;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--popomo-ink-muted, #5E4D6B);
  text-align: center;
}

.v35-oauth-soon-label::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(96, 43, 135, 0.14);
}

.v35-oauth-soon-label span {
  position: relative;
  padding: 0 12px;
  background: #FFFFFF;
}

.v35-oauth-chip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.v35-oauth-chip {
  display: grid;
  place-items: center;
  height: 42px;
  padding: 0;
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--popomo-ink, #18071A);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.v35-oauth-chip svg {
  width: 19px;
  height: 19px;
  flex: none;
  opacity: 1;
}

.v35-oauth-chip:hover:not(:disabled) {
  background: #FAF5FE;
  border-color: var(--popomo-teal-deep, #602B87);
  transform: translateY(-1px);
}

/* Coming-Soon Modal Dialog for Unimplemented OAuth Providers */
.v35-soon-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px 26px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 22px;
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-ink, #18071A);
  box-shadow: var(--popomo-shadow-md, 0 12px 30px rgba(96, 43, 135, 0.12));
  text-align: center;
  overflow: auto;
}

.v35-soon-dialog::backdrop {
  background: rgba(24, 7, 26, 0.42);
  backdrop-filter: blur(4px);
}

.v35-soon-dialog .v35-kicker,
.v35-soon-dialog .v35-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--popomo-teal-soft, #E8DAF1);
  border: 1px solid rgba(96, 43, 135, 0.24);
  color: var(--popomo-teal-dark, #522059);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.v35-soon-dialog h2,
.v35-soon-dialog h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--popomo-ink, #18071A);
}

.v35-soon-dialog p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-soon-dialog .v35-soon-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Signed-in Profile View (.v35-profile-layout) */
.v35-profile-layout {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

.v35-profile-heading {
  margin: 0 0 28px;
}

.v35-profile-heading .v35-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--popomo-teal-deep, #602B87);
  font-weight: 800;
  margin: 0 0 10px;
}

.v35-profile-heading h1 {
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 10px;
  font-weight: 900;
  color: var(--popomo-ink, #18071A);
}

.v35-profile-heading > p:last-child {
  font-size: 15px;
  color: var(--popomo-ink-muted, #5E4D6B);
  line-height: 1.65;
  margin: 0;
}

.v35-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.v35-profile-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.v35-profile-layout .account-card {
  margin: 0;
  padding: 28px;
  background: var(--popomo-surface, #FFFFFF);
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 22px;
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  min-width: 0;
}

.v35-profile-layout .account-card h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
  margin: 0 0 18px;
}

.v35-profile-identity {
  text-align: center;
  position: sticky;
  top: 24px;
}

.v35-profile-avatar {
  display: block;
  margin: 0 auto 16px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(96, 43, 135, 0.24);
  overflow: hidden;
  background: var(--popomo-teal-soft, #E8DAF1);
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
}

.v35-profile-layout .v35-profile-identity p {
  font-size: 14px;
  color: var(--popomo-ink-muted, #5E4D6B);
  max-width: none;
  margin: 0;
}

.v35-profile-layout .account-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--popomo-teal-soft, #E8DAF1);
  border: 1px solid rgba(96, 43, 135, 0.24);
  color: var(--popomo-teal-dark, #522059);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 14px 0 20px;
}

.v35-profile-identity nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  padding-top: 20px;
}

.v35-profile-identity nav a {
  min-width: 0;
  font-size: 14px;
  min-height: 44px;
  padding: 10px 12px;
}

.v35-profile-layout .v35-signout {
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.16));
  border-radius: 999px;
  background: var(--popomo-surface-soft, #FAF8FD);
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 16px auto 0;
  padding: 8px 18px;
  box-shadow: none;
}

.v35-profile-layout .v35-signout:hover {
  border-color: rgba(190, 18, 60, 0.32);
  background: #FFF1F4;
  color: #9F1239;
}

.v35-profile-layout .account-balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v35-profile-layout .account-balance {
  padding: 20px 16px;
  background: var(--popomo-surface-soft, #FAF8FD);
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 16px;
}

.v35-profile-layout .account-balance strong {
  display: block;
  font-size: 38px;
  font-weight: 900;
  color: var(--popomo-ink, #18071A);
  margin-bottom: 6px;
}

.v35-profile-layout .account-balance span {
  font-size: 13px;
  font-weight: 700;
  color: var(--popomo-teal-deep, #602B87);
  max-width: none;
}

.v35-profile-layout .account-credit-note {
  font-size: 13px;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 14px 0 0;
}

.v35-profile-layout .account-ledger {
  margin-top: 16px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 14px;
  background: var(--popomo-surface-soft, #FAF8FD);
}

.v35-profile-layout .account-ledger-toggle {
  color: var(--popomo-ink, #18071A);
  font-weight: 700;
}

.v35-profile-layout .account-profile small,
.v35-profile-layout .account-joined {
  color: var(--popomo-ink-muted, #5E4D6B);
}

/* Account Tablet & Mobile (<= 959px / <= 767px) */
@media (max-width: 959px) {
  .v35-account-layout.v35-account-login {
    grid-template-columns: 1fr;
    max-width: 540px;
    min-height: 0;
  }

  .v35-account-login :is(.v35-account-story, .v35-auth-welcome) {
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  }

  .v35-account-login .v35-account-story-copy,
  .v35-account-login .v35-story-kicker,
  .v35-account-login .v35-story-pill,
  .v35-account-login .v35-account-fan,
  .v35-account-login .v35-account-story > .v35-kicker,
  .v35-account-login .v35-account-story-bottom {
    display: none;
  }

  .v35-account-login:not(.has-welcome-gift) .v35-account-story {
    display: none;
  }

  .v35-account-login .account-gift {
    border-top: 0;
    padding: 0;
    margin: 0 auto;
    align-items: center;
    gap: 10px;
  }

  .v35-account-login .v35-gift-icon {
    width: 24px;
    height: 24px;
  }

  .v35-account-login .account-gift > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .v35-account-login .account-gift strong {
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
  }

  .v35-account-login .account-gift small {
    display: none;
  }

  .v35-account-login .v35-account-form.account-card {
    padding: 28px 24px;
  }
}

@media (max-width: 767px) {
  body[data-v35-route="account"] #main {
    padding: 16px 16px 40px;
    min-height: 0;
  }

  .v35-account-layout.v35-account-login {
    border-radius: 20px;
  }

  .v35-account-login :is(.v35-account-story, .v35-auth-welcome) {
    padding: 14px 16px;
  }

  .v35-account-login .v35-account-form.account-card {
    padding: 24px 18px;
  }

  .v35-account-login .back-link {
    display: none;
  }

  .v35-account-login .account-card h1 {
    font-size: 26px;
  }

  .v35-account-login .social-login-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .v35-account-login .social-login-button {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 13px;
    gap: 8px;
  }

  .v35-profile-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .v35-profile-identity {
    position: static;
  }

  .v35-profile-layout .account-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

/* ==========================================================================
   3. MY DESIGNS (#my-designs) — Soft-Luxe Saved Design Cards & Share Modal
   ========================================================================== */
body[data-v35-route="my-designs"] {
  background-color: var(--popomo-canvas, #F8F7FD);
  background-image: radial-gradient(ellipse 65% 35% at 50% 0%, rgba(233, 223, 250, 0.45), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--popomo-ink, #18071A);
}

.v35-my-designs {
  padding: 28px 0 64px;
}

.v35-private-heading {
  margin-bottom: 26px;
}

.v35-private-heading .v35-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  color: var(--popomo-teal-deep, #602B87);
}

.v35-private-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.v35-private-heading h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--popomo-ink, #18071A);
}

.v35-private-heading .button {
  padding: 11px 20px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.v35-private-heading .v35-private-count {
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 0;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-private-grid,
.v35-saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.v35-private-card,
.v35-saved-card {
  min-width: 0;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 22px;
  overflow: hidden;
  background: var(--popomo-surface, #FFFFFF);
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
  .v35-private-card:hover,
  .v35-saved-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 43, 135, 0.24);
    box-shadow: var(--popomo-shadow-md, 0 12px 30px rgba(96, 43, 135, 0.08));
  }
}

.v35-private-preview,
.v35-saved-preview {
  position: relative;
  height: 296px;
  padding: 24px 20px 30px;
  background: linear-gradient(145deg, #F3EDF9 0%, #FAF8FD 100%);
  border-bottom: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
}

.v35-private-preview > .phone-case,
.v35-saved-preview > .phone-case {
  height: 100%;
  width: auto;
  max-width: 100%;
  flex: none;
  margin: 0;
  transform: none;
  filter: drop-shadow(0 8px 16px rgba(24, 7, 26, 0.14));
}

.v35-private-preview > .field-note {
  display: none;
}

.v35-private-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(24, 7, 26, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 11px;
  line-height: 1.3;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(24, 7, 26, 0.12);
}

.v35-private-badge.is-public {
  background: rgba(255, 255, 255, 0.94);
  color: var(--popomo-teal-dark, #522059);
  border-color: rgba(96, 43, 135, 0.28);
  box-shadow: 0 2px 8px rgba(24, 7, 26, 0.06);
}

.v35-private-top-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.v35-private-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.16));
  background: rgba(255, 255, 255, 0.95);
  color: var(--popomo-ink, #18071A);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(24, 7, 26, 0.06);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.v35-private-share-btn:hover {
  background: var(--popomo-surface, #FFFFFF);
  border-color: var(--popomo-teal-deep, #602B87);
  color: var(--popomo-teal-dark, #522059);
  transform: translateY(-1px);
}

.v35-private-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.16));
  background: rgba(255, 255, 255, 0.94);
  color: var(--popomo-ink-muted, #5E4D6B);
  box-shadow: 0 2px 8px rgba(24, 7, 26, 0.06);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.v35-private-icon-btn:hover {
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-ink, #18071A);
  transform: translateY(-1px);
}

.v35-private-icon-btn.is-danger:hover {
  background: #FFF1F4;
  border-color: rgba(190, 18, 60, 0.32);
  color: #BE123C;
}

.v35-private-body {
  padding: 18px 20px 20px;
}

.v35-private-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.v35-private-body h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--popomo-ink, #18071A);
  margin: 0;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v35-source-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.v35-source-pill.is-diy {
  background: var(--popomo-teal-soft, #E8DAF1);
  color: var(--popomo-teal-dark, #522059);
  border: 1px solid rgba(96, 43, 135, 0.22);
}

.v35-source-pill.is-ai {
  background: var(--popomo-pink-soft, #F9E5E7);
  color: var(--popomo-pink, #5C2662);
  border: 1px solid rgba(92, 38, 98, 0.22);
}

.v35-private-body .v35-private-meta {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 16px;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-private-actions,
.v35-saved-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.v35-private-actions .button,
.v35-saved-actions .button {
  min-width: 0;
  min-height: 42px;
  font-size: 13.5px;
  padding: 9px 12px;
  font-weight: 700;
}

.v35-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.v35-private-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 360px;
  padding: 32px 24px;
  border: 1.5px dashed rgba(96, 43, 135, 0.26);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--popomo-ink, #18071A);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.v35-private-add-card:hover {
  border-color: var(--popomo-teal-deep, #602B87);
  background: var(--popomo-surface, #FFFFFF);
  transform: translateY(-2px);
  box-shadow: var(--popomo-shadow-md, 0 12px 30px rgba(96, 43, 135, 0.08));
}

.v35-private-add-plus {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--popomo-ai-purple-soft, #F3EDF9);
  color: var(--popomo-teal-deep, #602B87);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.v35-private-add-card strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
}

.v35-private-add-card span:last-child {
  font-size: 13px;
  line-height: 1.55;
  color: var(--popomo-ink-muted, #5E4D6B);
  max-width: 220px;
}

.v35-private-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v35-designs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.v35-designs-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 999px;
  background: var(--popomo-surface, #FFFFFF);
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.v35-designs-tabs::-webkit-scrollbar {
  display: none;
}

.v35-designs-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--popomo-ink-muted, #5E4D6B);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.v35-designs-tabs button:hover:not([aria-pressed="true"]) {
  background: var(--popomo-surface-soft, #FAF8FD);
  color: var(--popomo-ink, #18071A);
}

.v35-designs-tabs button[aria-pressed="true"] {
  background: var(--popomo-ink, #18071A);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(24, 7, 26, 0.16);
}

.v35-designs-tabs small {
  font-size: 12px;
  opacity: 0.82;
}

.v35-designs-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 300px;
  max-width: 520px;
  justify-content: flex-end;
  min-width: 0;
}

.v35-designs-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 180px;
  min-width: 0;
  height: 42px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 999px;
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-ink-muted, #5E4D6B);
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.v35-designs-search:focus-within {
  border-color: var(--popomo-teal-deep, #602B87);
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
}

.v35-designs-search svg {
  flex: none;
  color: var(--popomo-teal-deep, #602B87);
}

.v35-designs-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--popomo-ink, #18071A);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
}

.v35-designs-search input:focus {
  outline: none;
  box-shadow: none;
}

.v35-designs-search input::placeholder {
  color: #847492;
  opacity: 1;
}

.v35-designs-search-clear {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--popomo-teal-soft, #F3EDF9);
  color: var(--popomo-teal-deep, #522059);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.v35-designs-search-clear[hidden] {
  display: none;
}

.v35-clear-auto-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}

.v35-clear-auto-btn[hidden] {
  display: none;
}

.v35-designs-capacity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #FFF8F4;
  border: 1px solid rgba(196, 125, 24, 0.28);
  color: #5E3A10;
  font-size: 13.5px;
  line-height: 1.5;
}

.v35-designs-capacity p {
  margin: 0;
}

.v35-designs-bulkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--popomo-teal-soft, #F3EDF9);
  border: 1px solid rgba(96, 43, 135, 0.22);
}

.v35-bulk-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--popomo-ink, #18071A);
}

.v35-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v35-bulk-actions .button {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 13px;
}

.v35-bulk-actions .v35-bulk-delete-btn:not(:disabled) {
  background: #BE123C;
  border-color: #BE123C;
  color: #FFFFFF;
}

.v35-private-badge.is-auto {
  background: rgba(96, 43, 135, 0.86);
  border-color: rgba(255, 255, 255, 0.24);
}

.v35-private-card.is-selected {
  border: 2px solid var(--popomo-teal-deep, #602B87);
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
}

.v35-private-select-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(24, 7, 26, 0.04);
  cursor: pointer;
  display: block;
}

.v35-private-card.is-selected .v35-private-select-hit {
  background: rgba(96, 43, 135, 0.08);
}

.v35-private-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(96, 43, 135, 0.48);
  background: rgba(255, 255, 255, 0.96);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(24, 7, 26, 0.14);
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.v35-private-card.is-selected .v35-private-check {
  background: var(--popomo-teal-deep, #602B87);
  border-color: var(--popomo-teal-deep, #602B87);
  transform: scale(1.04);
}

.v35-designs-pagination {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.v35-designs-page-info,
.v35-designs-cap-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-show-more-btn {
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.v35-my-designs .v35-empty {
  background: var(--popomo-surface, #FFFFFF);
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 22px;
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  padding: 56px 24px;
  text-align: center;
}

.v35-my-designs .v35-empty h2 {
  color: var(--popomo-ink, #18071A);
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 10px;
}

.v35-my-designs .v35-empty p {
  color: var(--popomo-ink-muted, #5E4D6B);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 22px;
}

.v35-private-storage {
  margin-top: 32px;
  padding: 14px 20px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 18px;
  background: var(--popomo-surface, #FFFFFF);
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  color: var(--popomo-ink-muted, #5E4D6B);
  font-size: 13px;
}

.v35-private-storage summary {
  list-style: none;
  cursor: pointer;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--popomo-ink, #18071A);
}

.v35-private-storage summary::-webkit-details-marker {
  display: none;
}

.v35-storage-chevron {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--popomo-surface-soft, #FAF8FD);
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  color: var(--popomo-ink-muted, #5E4D6B);
  font-size: 13px;
  flex: none;
  transition: transform 0.18s ease, background-color 0.15s ease, color 0.15s ease;
}

.v35-private-storage[open] .v35-storage-chevron {
  transform: rotate(180deg);
  background: var(--popomo-teal-soft, #E8DAF1);
  color: var(--popomo-teal-deep, #602B87);
}

.v35-private-storage p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
}

/* Design Share Modal (.v35-share-dialog) */
.v35-share-dialog {
  box-sizing: border-box;
  width: min(780px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 22px;
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-ink, #18071A);
  box-shadow: 0 24px 60px rgba(24, 7, 26, 0.22);
  overflow: hidden;
}

.v35-share-dialog[open] {
  display: flex;
  flex-direction: column;
}

.v35-share-dialog::backdrop {
  background: rgba(24, 7, 26, 0.48);
  backdrop-filter: blur(4px);
}

.v35-share-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.v35-share-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--popomo-ink, #18071A);
}

.v35-share-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.16));
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-ink-muted, #5E4D6B);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.v35-share-body {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 0;
  overflow-y: auto;
}

.v35-share-poster-col {
  background: var(--popomo-ai-purple-soft, #F3EDF9);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.v35-share-poster-card {
  width: 232px;
  min-height: 292px;
  border-radius: 18px;
  background: linear-gradient(145deg, #F8F7FD 0%, #E8DAF1 55%, #F9E5E7 100%);
  padding: 16px;
  box-shadow: 0 14px 32px rgba(96, 43, 135, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.v35-share-logo {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #18071A;
}

.v35-share-logo span {
  color: #602B87;
}

.v35-share-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.v35-share-mini-case {
  width: 72px;
  transform: rotate(-4deg);
  filter: drop-shadow(0 10px 18px rgba(24, 7, 26, 0.18));
}

.v35-share-mini-case > .phone-case {
  width: 100%;
  height: auto;
}

.v35-share-mini-wp {
  width: 68px;
  height: 134px;
  border-radius: 14px;
  border: 2.5px solid #18071A;
  background: linear-gradient(160deg, var(--wp-bg, #7D4AA3) 0%, #18071A 100%);
  transform: rotate(4deg);
  box-shadow: 0 12px 24px rgba(24, 7, 26, 0.20);
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.v35-share-wp-clock {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.v35-share-caption strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.08;
  color: #18071A;
}

.v35-share-caption small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #5E4D6B;
}

.v35-share-dims {
  font-size: 11px;
  font-weight: 700;
  color: #5E4D6B;
}

.v35-share-ctrl-col {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.v35-share-sec.is-divider {
  border-top: 1px solid rgba(96, 43, 135, 0.12);
  padding-top: 16px;
}

.v35-share-sec h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--popomo-ink, #18071A);
}

.v35-share-sec > p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-share-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.v35-share-btn-row .button.primary {
  background: linear-gradient(180deg, #652A6E 0%, #522059 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(92, 38, 98, 0.24);
}

.v35-share-btn-row .button.primary:hover {
  background: linear-gradient(180deg, #5C2662 0%, #4A1C50 100%);
}

.v35-share-btn-row .button,
.v35-share-sec .button.full {
  border-radius: 10px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
}

.v35-share-qr-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--popomo-surface-soft, #FAF8FD);
  border: 1px solid rgba(96, 43, 135, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
}

.v35-share-qr-box[hidden] {
  display: none;
}

.v35-share-qr-box svg {
  flex: none;
  border-radius: 8px;
  border: 1px solid rgba(96, 43, 135, 0.14);
}

.v35-share-qr-box p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--popomo-ink-soft, #3A2A42);
  line-height: 1.45;
}

.v35-share-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  margin: 10px 0;
  border-radius: 12px;
  background: var(--popomo-surface-soft, #FAF8FD);
  border: 1px solid rgba(96, 43, 135, 0.14);
  font-size: 12px;
  color: var(--popomo-ink, #18071A);
  cursor: pointer;
}

.v35-share-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex: none;
  border-radius: 5px;
  box-shadow: none;
  accent-color: #602B87;
}

.v35-share-check span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v35-share-check small {
  font-size: 11px;
  font-weight: 500;
  color: var(--popomo-ink-muted, #5E4D6B);
  line-height: 1.45;
}

.v35-share-copied {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #FAF5FE;
  border: 1px solid rgba(96, 43, 135, 0.28);
  font-size: 12px;
  font-weight: 700;
  color: var(--popomo-teal-dark, #522059);
  word-break: break-all;
}

.v35-share-copied[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .v35-share-body {
    grid-template-columns: 1fr;
  }

  .v35-share-poster-col {
    padding: 18px;
  }

  .v35-share-ctrl-col {
    padding: 18px;
  }

  .v35-share-btn-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 959px) {
  .v35-private-grid,
  .v35-saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .v35-my-designs {
    padding: 18px 0 52px;
  }

  .v35-private-grid,
  .v35-saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .v35-private-card,
  .v35-saved-card {
    border-radius: 18px;
  }

  .v35-private-preview,
  .v35-saved-preview {
    height: 226px;
    padding: 48px 12px 26px;
  }

  .v35-private-top-actions {
    right: 8px;
    top: 8px;
    gap: 4px;
  }

  .v35-private-share-btn {
    height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .v35-private-icon-btn {
    width: 28px;
    height: 28px;
  }

  .v35-private-badge {
    font-size: 10px;
    padding: 3px 8px;
    bottom: 8px;
    left: 8px;
  }

  .v35-private-body {
    padding: 14px 12px;
  }

  .v35-private-body h2 {
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    margin-bottom: 4px;
  }

  .v35-private-body .v35-private-meta {
    font-size: 11.5px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    margin-bottom: 12px;
  }

  .v35-private-actions,
  .v35-saved-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .v35-private-actions .button,
  .v35-saved-actions .button {
    min-height: 40px;
    font-size: 13px;
    padding: 8px;
  }

  .v35-private-head-actions {
    gap: 8px;
  }

  .v35-designs-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .v35-designs-tabs {
    width: 100%;
    box-sizing: border-box;
  }

  .v35-designs-toolbar-actions {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 8px;
  }

  .v35-designs-search {
    flex: 1 1 200px;
  }

  .v35-designs-search input {
    font-size: 16px;
  }

  .v35-clear-auto-btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  .v35-designs-bulkbar {
    padding: 12px 14px;
  }

  .v35-bulk-actions {
    width: 100%;
  }

  .v35-bulk-actions .button {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 6px 10px;
    font-size: 12.5px;
  }

  .v35-private-check {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 380px) {
  .v35-private-grid,
  .v35-saved-grid {
    grid-template-columns: 1fr;
  }

  .v35-private-actions,
  .v35-saved-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   4. CHECKOUT (#checkout) — Soft-Luxe 2-Column Sticky Summary + Promo Code
   ========================================================================== */
.v35-checkout,
.v35-orders {
  max-width: 1200px;
  margin: auto;
  padding: 28px 28px 72px;
  overflow-wrap: anywhere;
}

.v35-checkout .ai-heading,
.v35-orders .ai-heading {
  text-align: left;
  margin: 16px 0 26px;
}

.v35-checkout .ai-heading h1,
.v35-orders .ai-heading h1 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--popomo-ink, #18071A);
}

.v35-checkout .ai-heading p,
.v35-orders .ai-heading p {
  max-width: 65ch;
  color: var(--popomo-ink-muted, #5E4D6B);
  line-height: 1.7;
}

.v35-checkout .ai-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.v35-checkout .checkout-preview,
.v35-checkout .ai-order-card {
  min-width: 0;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 22px;
  background: var(--popomo-surface, #FFFFFF);
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  padding: 24px;
}

.v35-checkout .checkout-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  text-align: left;
}

.v35-checkout .checkout-preview > .checkout-case {
  height: 156px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px;
  background: linear-gradient(155deg, #F3EDF9 0%, #FAF8FD 100%);
  border: 1px solid rgba(96, 43, 135, 0.14);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.v35-checkout .checkout-preview > .checkout-case > .phone-case {
  height: 100%;
  width: auto;
  max-width: 100%;
  flex: none;
  margin: 0;
}

.v35-checkout .checkout-preview > .checkout-case > .phone-case:not(.vendor-template) {
  border-color: #D8CFC2;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72), 0 8px 18px rgba(24, 7, 26, 0.13);
}

.v35-checkout .checkout-design-copy {
  min-width: 0;
}

.v35-checkout .checkout-design-copy h2,
.v35-checkout .checkout-preview h2 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--popomo-ink, #18071A);
  margin: 0 0 6px;
}

.v35-checkout .checkout-design-copy p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-checkout .checkout-design-copy small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin-top: 5px;
}

.v35-checkout .device-fulfillment .checkout-case {
  height: auto;
  border-radius: 14px;
  margin-top: 16px;
  background: var(--popomo-ai-purple-soft, #F3EDF9);
  padding: 18px;
}

.v35-checkout .ai-order-card h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
  margin: 0 0 14px;
}

.v35-checkout .print-quote {
  border: 0;
  padding: 0;
  background: transparent;
}

.v35-checkout .print-quote dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.v35-checkout .print-quote dl > div,
.v35-checkout .payment-receipt dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.5;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-checkout dd {
  margin: 0;
  font-weight: 700;
  color: var(--popomo-ink, #18071A);
  overflow-wrap: anywhere;
}

.v35-checkout .quote-total {
  border-top: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  margin-top: 6px;
  padding-top: 16px;
  font-size: 20px;
  font-weight: 900;
  color: var(--popomo-ink, #18071A);
}

.v35-checkout .quote-total dd {
  font-size: 22px;
  font-weight: 900;
  color: var(--popomo-ink, #18071A);
}

.v35-checkout :is(.field-note, .quote-note, .demo-note) {
  color: var(--popomo-ink-muted, #5E4D6B);
  font-size: 13px;
  line-height: 1.65;
}

.v35-checkout :is(.payment-environment, .delivery-notice, .device-fulfillment),
.v35-order-notice {
  border: 1px solid rgba(96, 43, 135, 0.24);
  border-radius: 14px;
  background: #FAF5FE;
  color: var(--popomo-ink, #18071A);
  padding: 16px;
  line-height: 1.65;
}

.v35-checkout .payment-environment {
  border-color: var(--popomo-border, rgba(96, 43, 135, 0.12));
  background: var(--popomo-surface-soft, #FAF8FD);
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-checkout .payment-receipt {
  border-color: var(--popomo-border, rgba(96, 43, 135, 0.12));
}

.v35-checkout .payment-receipt summary {
  min-height: 44px;
  gap: 12px;
  flex-wrap: wrap;
}

.v35-checkout :is(input:not([type=checkbox]):not([type=radio]), select) {
  max-width: 100%;
  min-height: 46px;
  background: var(--popomo-surface-soft, #FAF8FD);
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  border-radius: 12px;
  color: var(--popomo-ink, #18071A);
  font-size: 15px;
}

.v35-checkout :is(input:not([type=checkbox]):not([type=radio]), select):focus {
  background: var(--popomo-surface, #FFFFFF);
  border-color: var(--popomo-teal-deep, #602B87);
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
  outline: none;
}

.v35-checkout input[type=checkbox] {
  accent-color: var(--popomo-teal-deep, #602B87);
  flex-shrink: 0;
}

.v35-checkout .ai-consent {
  line-height: 1.65;
  align-items: flex-start;
  color: var(--popomo-ink-muted, #5E4D6B);
}

/* Checkout Page Header & Semantic Badges */
.v35-checkout-design {
  width: calc(100% - 48px);
  max-width: 1200px;
  padding: 20px 0 88px;
  margin: 0 auto;
}

.v35-checkout-design > .back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--popomo-teal-deep, #602B87);
}

.checkout-heading {
  margin: 14px 0 24px;
}

.checkout-heading .eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--popomo-teal-deep, #602B87);
  margin-bottom: 10px;
}

.checkout-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.checkout-title-row h1,
.checkout-heading h1 {
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  color: var(--popomo-ink, #18071A);
}

.checkout-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--popomo-teal-soft, #E8DAF1);
  border: 1px solid rgba(96, 43, 135, 0.24);
  color: var(--popomo-teal-dark, #522059);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.checkout-status.is-pending,
.checkout-status.tone-warning,
.order-status-badge.is-pending,
.order-status-badge.tone-warning {
  background: #FFFBEB;
  border-color: rgba(217, 119, 6, 0.34);
  color: #B45309;
}

.checkout-status.is-error,
.checkout-status.tone-danger,
.order-status-badge.is-error,
.order-status-badge.tone-danger {
  background: #FFF1F4;
  border-color: rgba(190, 18, 60, 0.28);
  color: #9F1239;
}

.checkout-fulfillment-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px dashed rgba(96, 43, 135, 0.35);
  border-radius: 999px;
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-teal-dark, #522059);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.checkout-heading > p:last-child {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  color: var(--popomo-ink-muted, #5E4D6B);
}

/* PC >= 960px: 2-Column Checkout Layout */
@media (min-width: 960px) {
  .v35-checkout-design .ai-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr);
    gap: 24px;
    align-items: start;
  }

  .v35-checkout-design .ai-order-layout > .checkout-preview,
  .v35-checkout-design .ai-order-layout > .checkout-fulfillment {
    grid-column: 1;
  }

  .v35-checkout-design .ai-order-layout > .checkout-summary {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 24px;
  }

  .v35-checkout-design .checkout-summary .checkout-pay-dock {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 0 0;
    margin-top: 16px;
    border-top: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
    background: transparent;
    box-shadow: none;
  }

  .v35-checkout-design .checkout-summary .checkout-pay-dock .checkout-due {
    order: 1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 26px;
    color: var(--popomo-ink, #18071A);
  }

  .v35-checkout-design .checkout-summary .checkout-pay-dock .button.primary {
    order: 2;
    width: 100%;
    min-height: 52px;
    font-size: 15px;
    font-weight: 800;
  }

  .v35-checkout-design .checkout-summary .checkout-pay-dock .checkout-back {
    order: 3;
    width: 100%;
    min-height: 42px;
    font-size: 13px;
  }
}

@media (max-width: 959px) {
  .v35-checkout-design {
    padding-bottom: calc(126px + env(safe-area-inset-bottom));
  }

  .v35-checkout-design .ai-order-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

/* Fulfillment Option Cards */
.v35-checkout-design .checkout-fulfillment > .single-print-notice {
  margin-top: 0;
}

.v35-checkout .checkout-delivery-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.v35-checkout .checkout-delivery-options legend {
  padding: 0;
  margin-bottom: 16px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--popomo-ink, #18071A);
}

.v35-checkout .checkout-delivery-options > label {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 16px 14px;
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  border-radius: 16px;
  background: var(--popomo-surface, #FFFFFF);
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.v35-checkout .checkout-delivery-options > label:hover {
  border-color: var(--popomo-teal, #7D4AA3);
}

.v35-checkout .checkout-delivery-options > label:has(input:checked) {
  border: 1.5px solid #602B87;
  background: #FAF5FE;
  box-shadow: 0 4px 16px rgba(96, 43, 135, 0.12);
}

.v35-checkout .checkout-delivery-options label > input[type="radio"] {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #602B87;
}

.v35-checkout .checkout-delivery-options .delivery-option-icon {
  display: block;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--popomo-teal-deep, #602B87);
}

.v35-checkout .checkout-delivery-options label > span > strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
}

.v35-checkout .checkout-delivery-options > label:has(input:checked) strong,
.v35-checkout .checkout-delivery-options > label:has(input:checked) .delivery-option-icon {
  color: #522059;
}

.v35-checkout .checkout-delivery-options label > span > small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 6px;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-checkout .checkout-delivery-options > .pickup-option-details {
  grid-column: 1 / -1;
  min-width: 0;
}

.v35-checkout .checkout-delivery-options > .pickup-option-details > .pickup-stations {
  margin: 8px 0 0;
}

/* Promo Code Input Row */
.v35-promo-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 16px 0 6px;
}

.v35-promo-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  border-radius: 12px;
  background: var(--popomo-surface-soft, #FAF8FD);
  color: var(--popomo-ink, #18071A);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.v35-promo-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #847492;
}

.v35-promo-input:focus {
  background: var(--popomo-surface, #FFFFFF);
  border-color: var(--popomo-teal-deep, #602B87);
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
  outline: none;
}

.v35-promo-btn {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid #602B87;
  border-radius: 10px;
  background: #E8DAF1;
  color: #522059;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.v35-promo-btn:hover:not(:disabled) {
  background: #602B87;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.v35-promo-note {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--popomo-teal-deep, #602B87);
  margin: 4px 0 14px;
}

.v35-promo-note.is-error {
  color: #BE123C;
}

/* Fixed Bottom Pay Dock (Mobile H5) */
.checkout-pay-dock {
  position: fixed;
  z-index: 25;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(90px, 0.85fr) auto minmax(140px, 1.35fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(24, 7, 26, 0.08);
}

.v35-checkout .checkout-pay-dock .button {
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  text-decoration: none;
}

.v35-checkout .checkout-pay-dock .checkout-back {
  background: var(--popomo-surface, #FFFFFF);
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  color: var(--popomo-ink, #18071A);
  box-shadow: none;
}

.v35-checkout .checkout-pay-dock .checkout-back:hover {
  background: var(--popomo-surface-soft, #FAF8FD);
}

.checkout-due {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
  color: var(--popomo-ink, #18071A);
}

.v35-checkout-design :is(input, .ai-consent, .pickup-station-row) {
  scroll-margin-bottom: 110px;
}

/* Delivery Address & Station Selector */
.v35-checkout .ai-order-layout > #pickup-station-panel:empty {
  display: none;
}

.v35-checkout .checkout-address {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  display: grid;
  gap: 14px;
  min-width: 0;
}

.v35-checkout .checkout-address h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
}

.v35-checkout .checkout-address p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-checkout .checkout-address label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--popomo-ink, #18071A);
}

.v35-checkout .checkout-address input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  border-radius: 12px;
  background: var(--popomo-surface-soft, #FAF8FD);
  padding: 11px 13px;
  color: var(--popomo-ink, #18071A);
  font-size: 15px;
}

.v35-checkout .checkout-address input:focus {
  background: var(--popomo-surface, #FFFFFF);
  border-color: var(--popomo-teal-deep, #602B87);
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
  outline: none;
}

.v35-checkout .address-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v35-checkout .checkout-address .button {
  justify-self: start;
  white-space: normal;
}

.v35-checkout .address-status {
  color: var(--popomo-teal-deep, #602B87);
  font-weight: 700;
}

.pickup-choice {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  font-size: 14px;
  line-height: 1.65;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.pickup-choice p {
  margin: 0 0 14px;
}

.pickup-choice-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
  margin-bottom: 4px;
}

.pickup-choice > .button {
  margin-top: 4px;
}

.pickup-choice > small {
  display: block;
  margin-top: 12px;
  color: var(--popomo-ink-muted, #5E4D6B);
  font-size: 12px;
}

.pickup-choice .station-navigation {
  margin: 0 0 12px;
}

/* Station Picker Modal (.v35-station-picker) */
body.station-picker-open {
  overflow: hidden;
}

.v35-station-picker {
  padding: 0;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 22px;
  width: min(680px, calc(100% - 24px));
  max-width: 680px;
  max-height: calc(100dvh - 32px);
  background: var(--popomo-bg, #F8F7FD);
  color: var(--popomo-ink, #18071A);
  box-shadow: var(--popomo-shadow-md, 0 12px 30px rgba(96, 43, 135, 0.14));
  overflow: hidden;
}

.v35-station-picker[open] {
  display: flex;
  flex-direction: column;
}

.v35-station-picker::backdrop {
  background: rgba(24, 7, 26, 0.44);
  backdrop-filter: blur(4px);
}

.v35-station-picker > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-ink, #18071A);
  flex: none;
}

.v35-station-picker header p {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--popomo-teal-deep, #602B87);
}

.v35-station-picker h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--popomo-ink, #18071A);
}

.v35-station-picker [data-close] {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.16));
  border-radius: 50%;
  background: var(--popomo-surface-soft, #FAF8FD);
  font-size: 24px;
  color: var(--popomo-ink, #18071A);
  cursor: pointer;
}

.station-picker-content {
  padding: 20px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  scrollbar-color: var(--popomo-teal, #7D4AA3) transparent;
}

.station-picker-search {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--popomo-ink, #18071A);
}

.station-picker-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--popomo-border-strong, rgba(24, 7, 26, 0.16));
  border-radius: 12px;
  background: var(--popomo-surface, #FFFFFF);
  font: inherit;
  font-size: 15px;
  color: var(--popomo-ink, #18071A);
  box-sizing: border-box;
}

.v35-station-picker .pickup-stations {
  padding: 0;
  margin: 18px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.v35-station-picker .pickup-stations > h3 {
  font-size: 16px;
  font-weight: 800;
}

.v35-station-picker .pickup-stations > p {
  font-size: 13px;
  line-height: 1.6;
}

.v35-station-picker .pickup-station-row {
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 16px;
  background: var(--popomo-surface, #FFFFFF);
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
}

.v35-station-picker .pickup-station-row:has(.station-select:focus-visible) {
  border-color: var(--popomo-teal-deep, #602B87);
}

.v35-station-picker .pickup-row-heading strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
}

.v35-station-picker .pickup-row-address {
  margin: 8px 0;
  font-size: 13px;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-station-picker .pickup-distance,
.v35-station-picker .pickup-stock {
  color: var(--popomo-teal-deep, #602B87);
  font-weight: 700;
}

.v35-station-picker .station-select {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
}

.v35-station-picker .text-button {
  color: var(--popomo-teal-deep, #602B87);
}

.v35-station-picker .station-map-links a {
  color: var(--popomo-teal-dark, #522059);
  border-color: rgba(96, 43, 135, 0.28);
}

/* ==========================================================================
   5. ORDER SUCCESS DIALOG & PAYMENT DETAIL (#payment / #pass)
   ========================================================================== */
body.order-success-open {
  overflow: hidden;
}

.v35-order-success {
  box-sizing: border-box;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 22px;
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-ink, #18071A);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--popomo-shadow-md, 0 12px 30px rgba(96, 43, 135, 0.12));
}

.v35-order-success::backdrop {
  background: rgba(24, 7, 26, 0.44);
  backdrop-filter: blur(5px);
}

.order-success-check {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7D4AA3 0%, #602B87 100%);
  border: 0;
  box-shadow: 0 8px 22px rgba(96, 43, 135, 0.28);
  color: #FFFFFF;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.v35-order-success h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.22;
  color: var(--popomo-ink, #18071A);
}

.v35-order-success p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 0 0 20px;
}

.order-success-amount {
  display: block;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--popomo-ink, #18071A);
  margin: 20px 0;
}

.v35-order-success .order-success-reference {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--popomo-surface-soft, #FAF8FD);
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  font-size: 13px;
  font-weight: 600;
  color: var(--popomo-ink-muted, #5E4D6B);
  overflow-wrap: anywhere;
  margin-bottom: 24px;
}

.v35-order-success .order-success-reference span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--popomo-ink, #18071A);
  font-weight: 800;
}

.order-success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-success-actions .button {
  padding: 12px 14px;
  min-height: 48px;
  font-size: 14px;
}

/* Order Detail (#payment fulfilled) */
.v35-order-detail {
  width: calc(100% - 48px);
  max-width: 1120px;
  padding: 18px 0 64px;
}

.v35-order-detail .ai-heading {
  margin: 12px 0 24px;
}

.v35-order-detail .ai-heading > .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 14px;
  color: var(--popomo-teal-deep, #602B87);
  font-size: 14px;
  font-weight: 700;
}

.v35-order-detail .ai-heading h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0;
  line-height: 1.2;
}

.v35-order-detail .ai-heading > p:last-child {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

.v35-order-detail .ai-order-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.v35-order-detail .checkout-preview > .checkout-case {
  grid-row: auto;
}

.v35-order-detail .ai-order-card {
  padding: 24px;
}

.v35-order-detail .payment-environment {
  margin: 0 0 18px;
}

.v35-order-detail .pickup-choice {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}

.v35-order-detail .device-fulfillment {
  margin: 0;
  padding: 20px;
  background: #FAF5FE;
  border: 1px solid rgba(96, 43, 135, 0.24);
  border-radius: 16px;
}

.v35-order-detail .device-fulfillment h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
}

.v35-order-detail .device-fulfillment .button {
  max-width: 100%;
  margin-top: 12px;
}

.v35-order-detail .payment-refresh {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--popomo-teal-deep, #602B87);
}

.v35-order-detail .payment-receipt {
  margin-top: 14px;
}

.v35-order-detail .payment-receipt summary {
  font-size: 15px;
}

/* ==========================================================================
   6. ORDERS LIST (#orders) — Soft-Luxe Horizontal Toolbar, Pill Tabs & Soft Cards
   ========================================================================== */
.v35-orders {
  width: calc(100% - 48px);
  max-width: 1200px;
  padding: 24px 0 68px;
}

.v35-orders .orders-heading {
  margin: 10px 0 24px;
}

.v35-orders .orders-heading .eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--popomo-teal-deep, #602B87);
  margin: 0 0 10px;
}

.v35-orders .orders-heading h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.2;
  color: var(--popomo-ink, #18071A);
}

.v35-orders .orders-heading > p:last-child {
  font-size: 15px;
  line-height: 1.65;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 0;
}

.v35-orders .orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 22px;
}

/* Unified Soft-Luxe Pill Tab Bar */
.v35-orders .orders-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 999px;
  background: var(--popomo-surface, #FFFFFF);
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  min-width: 0;
  flex-wrap: wrap;
}

.v35-orders .orders-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--popomo-ink-muted, #5E4D6B);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.v35-orders .orders-tabs button:hover:not([aria-pressed=true]) {
  background: var(--popomo-surface-soft, #FAF8FD);
  color: var(--popomo-ink, #18071A);
}

.v35-orders .orders-tabs button[aria-pressed=true] {
  background: var(--popomo-ink, #18071A);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(24, 7, 26, 0.16);
  font-weight: 700;
}

.v35-orders .orders-tabs small {
  font-size: 12px;
  opacity: 0.85;
}

.v35-orders .orders-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  max-width: 460px;
  justify-content: flex-end;
  min-width: 0;
}

.v35-orders .orders-search {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 999px;
  background: var(--popomo-surface, #FFFFFF);
  overflow: hidden;
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.v35-orders .orders-search:focus-within {
  border-color: var(--popomo-teal-deep, #602B87);
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
}

.v35-orders .orders-search input {
  margin: 0;
  padding: 9px 14px 9px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  font-size: 14px;
  color: var(--popomo-ink, #18071A);
  line-height: 1.5;
  box-shadow: none;
}

.v35-orders .orders-search input:focus {
  box-shadow: none;
  outline: none;
}

.v35-orders .orders-search input::placeholder {
  color: #847492;
  opacity: 1;
}

.v35-orders .orders-search button {
  min-width: 42px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--popomo-teal-deep, #602B87);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.v35-orders .orders-refresh-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 999px;
  background: var(--popomo-surface, #FFFFFF);
  color: var(--popomo-teal-deep, #602B87);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.v35-orders .orders-refresh-btn:hover:not(:disabled) {
  background: var(--popomo-teal-soft, #E8DAF1);
  border-color: rgba(96, 43, 135, 0.28);
  color: var(--popomo-teal-dark, #522059);
}

.v35-orders .order-list {
  display: grid;
  gap: 18px;
}

.v35-orders .order-row {
  display: block;
  padding: 0;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 22px;
  background: var(--popomo-surface, #FFFFFF);
  overflow: hidden;
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
}

.v35-orders .order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  background: var(--popomo-surface-soft, #FAF8FD);
  font-size: 13px;
  line-height: 1.45;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-orders .order-card-header > span:first-child {
  min-width: 0;
}

.v35-orders .order-card-header strong {
  display: block;
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  color: var(--popomo-ink, #18071A);
  overflow-wrap: anywhere;
}

.v35-orders .order-status-badge {
  flex-shrink: 0;
  max-width: 48%;
  border-radius: 999px;
  background: var(--popomo-teal-soft, #E8DAF1);
  border: 1px solid rgba(96, 43, 135, 0.24);
  padding: 5px 13px;
  color: var(--popomo-teal-dark, #522059);
  line-height: 1.35;
  font-size: 12px;
  font-weight: 700;
}

.v35-orders .order-card-content {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px 20px;
  padding: 20px 22px;
  align-items: center;
}

.v35-orders .order-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 128px;
  padding: 9px;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.14));
  border-radius: 14px;
  background: var(--popomo-ai-purple-soft, #F3EDF9);
  overflow: hidden;
  cursor: pointer;
}

.v35-orders .order-cover > .phone-case {
  width: auto;
  height: 100%;
  max-width: 100%;
  flex: none;
  margin: 0;
  transform: none;
  box-shadow: 0 4px 10px rgba(24, 7, 26, 0.14);
}

.v35-orders .order-cover .field-note {
  display: none;
}

.v35-orders .order-cover-placeholder {
  font-size: 56px;
  color: var(--popomo-teal, #7D4AA3);
}

.v35-orders .order-preview-unavailable {
  font-size: 12px;
  font-weight: 600;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-orders .order-card-info {
  min-width: 0;
}

.v35-orders .order-card-info h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--popomo-ink, #18071A);
  margin: 0 0 8px;
}

.v35-orders .order-card-info p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 0 0 9px;
}

.v35-orders .order-delivery-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(96, 43, 135, 0.22);
  border-radius: 999px;
  background: #FAF5FE;
  color: var(--popomo-teal-dark, #522059);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  line-height: 1.35;
  margin-bottom: 9px;
}

.v35-orders .order-delivery-tag svg {
  flex: none;
}

.v35-orders .order-card-info time {
  display: block;
  font-size: 12px;
  color: var(--popomo-ink-muted, #5E4D6B);
  line-height: 1.5;
}

.v35-orders .order-scan-hint {
  margin: 8px 0 0;
  padding: 7px 11px;
  border-radius: 10px;
  background: #FAF5FE;
  border: 1px solid rgba(96, 43, 135, 0.20);
  color: var(--popomo-teal-dark, #522059);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.v35-orders .order-test-note {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--popomo-ai-purple-soft, #F3EDF9);
  border: 1px solid rgba(96, 43, 135, 0.16);
  color: var(--popomo-ink-muted, #5E4D6B);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.v35-orders .order-card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  padding-top: 16px;
  gap: 12px;
}

.v35-orders .order-card-actions > strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--popomo-ink, #18071A);
}

.v35-orders .order-card-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.v35-orders .order-card-action-group .button {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13.5px;
}

.v35-orders .order-card-next {
  grid-column: 1 / -1;
  margin-top: -4px;
}

.v35-orders .order-card-next .button {
  padding: 11px 18px;
  font-size: 14px;
  min-height: 44px;
}

.v35-orders .orders-empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px solid var(--popomo-border, rgba(96, 43, 135, 0.12));
  border-radius: 22px;
  background: var(--popomo-surface, #FFFFFF);
  box-shadow: var(--popomo-shadow-sm, 0 4px 14px rgba(24, 7, 26, 0.045));
}

.v35-orders .orders-empty h2 {
  font-size: 23px;
  font-weight: 900;
  color: var(--popomo-ink, #18071A);
  margin: 0 0 10px;
}

.v35-orders .orders-empty p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--popomo-ink-muted, #5E4D6B);
  margin: 0 0 22px;
}

.v35-orders .pass-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

/* ==========================================================================
   7. MOBILE H5 RESPONSIVE ERGONOMICS (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .v35-checkout,
  .v35-orders {
    width: calc(100% - 32px);
    padding: 16px 0 56px;
  }

  .v35-checkout-design {
    width: calc(100% - 32px);
    padding: 12px 0 calc(122px + env(safe-area-inset-bottom));
  }

  .v35-checkout .ai-order-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .v35-checkout .checkout-preview,
  .v35-checkout .ai-order-card {
    padding: 16px;
    border-radius: 18px;
  }

  .v35-checkout .checkout-preview {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .v35-checkout .checkout-preview > .checkout-case {
    height: 132px;
    padding: 8px;
  }

  .v35-checkout .checkout-delivery-options {
    gap: 10px;
  }

  .v35-checkout .checkout-delivery-options > label {
    padding: 14px 12px;
  }

  .v35-checkout .checkout-delivery-options strong {
    font-size: 14px;
  }

  .v35-checkout .checkout-delivery-options small {
    font-size: 11px;
  }

  .checkout-pay-dock {
    gap: 10px;
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(76px, 0.85fr) auto minmax(112px, 1.35fr);
  }

  .v35-checkout .checkout-pay-dock .button {
    font-size: 13px;
    padding: 9px 10px;
  }

  .checkout-due {
    font-size: 20px;
  }

  .v35-orders .orders-heading h1 {
    font-size: 28px;
  }

  .v35-orders .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .v35-orders .orders-tabs {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .v35-orders .orders-tabs button {
    padding: 0 13px;
    font-size: 13px;
    min-height: 36px;
    flex: none;
  }

  .v35-orders .orders-toolbar-actions {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    gap: 8px;
  }
  .v35-orders .orders-search input {
    font-size: 13.5px;
    padding: 9px 10px 9px 0;
  }
  .v35-orders .orders-search button {
    min-width: 36px;
  }

  .v35-orders .order-row {
    border-radius: 18px;
  }

  .v35-orders .order-card-header {
    padding: 12px 14px;
    font-size: 12px;
  }

  .v35-orders .order-card-content {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px 12px;
    padding: 16px 14px;
  }

  .v35-orders .order-cover {
    width: 72px;
    height: 102px;
    padding: 7px;
  }

  .v35-orders .order-card-info h2 {
    font-size: 16px;
  }

  .v35-orders .order-card-info p {
    font-size: 13px;
  }

  .v35-orders .order-card-next .button {
    width: 100%;
  }

  .v35-order-detail {
    width: calc(100% - 32px);
  }
}

@media (max-width: 480px) {
  .v35-checkout .address-pair {
    grid-template-columns: 1fr;
  }

  .v35-station-picker {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .v35-station-picker > header {
    padding: 16px 18px;
  }

  .v35-station-picker h2 {
    font-size: 20px;
  }

  .station-picker-content {
    padding: 16px 18px;
  }

  .v35-station-picker .pickup-station-row {
    padding: 14px;
  }

  .v35-order-success {
    padding: 24px 18px;
  }

  .v35-order-success h2 {
    font-size: 24px;
  }

  .order-success-check {
    width: 64px;
    height: 64px;
    font-size: 36px;
    margin-bottom: 18px;
  }

  .order-success-amount {
    font-size: 32px;
  }

  .order-success-actions .button {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .v35-checkout-design,
  .v35-orders,
  .v35-order-detail {
    width: calc(100% - 24px);
  }

  .v35-checkout .checkout-preview {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .v35-checkout .checkout-preview > .checkout-case {
    height: 112px;
    padding: 6px;
  }

  .checkout-pay-dock {
    padding-inline: 12px;
    gap: 6px;
    grid-template-columns: minmax(68px, 0.8fr) auto minmax(98px, 1.3fr);
  }

  .checkout-due {
    font-size: 18px;
  }

  .v35-checkout .checkout-pay-dock .button {
    font-size: 11px;
    padding: 8px 6px;
  }

  .order-success-actions {
    grid-template-columns: 1fr;
  }

  .v35-orders .order-card-content {
    padding: 14px 12px;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px 10px;
  }

  .v35-orders .order-cover {
    width: 60px;
    height: 88px;
  }
}

/* ==========================================================================
   Smart Dual-Fulfillment Cards & US-First Shipping Address Form (Plan F)
   ========================================================================== */
.v35-checkout .checkout-delivery-options > label {
  touch-action: manipulation;
}

.v35-checkout .checkout-delivery-options > label:has(input:checked) {
  border: 1.5px solid #602B87;
  background: #FAF5FE;
  box-shadow: 0 6px 18px rgba(96, 43, 135, 0.14);
}

.v35-kiosk-linked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #E8DAF1;
  border: 1px solid rgba(96, 43, 135, 0.32);
  color: #522059;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.v35-checkout .checkout-delivery-options > label:has(input:checked) .v35-kiosk-linked-badge {
  background: #FFFFFF;
}

#courier-address-form.checkout-address .address-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#courier-address-form.checkout-address .address-us-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 0.75fr);
  gap: 12px;
}

#courier-address-form.checkout-address :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 1.5px solid rgba(96, 43, 135, 0.18);
  border-radius: 12px;
  background-color: #FAF8FD;
  padding: 10px 13px;
  color: #18071A;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

#courier-address-form.checkout-address select {
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: auto;
  padding-right: 12px;
  background-image: none;
  cursor: pointer;
}

#courier-address-form.checkout-address :is(input, select):focus {
  background-color: #FFFFFF;
  border-color: #602B87;
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
  outline: none;
}

#courier-address-form.checkout-address [hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .v35-checkout .checkout-delivery-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #courier-address-form.checkout-address .address-pair,
  #courier-address-form.checkout-address .address-us-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #courier-address-form.checkout-address :is(input, select) {
    font-size: 16px;
  }
}

/* ==========================================================================
   Checkout Desktop/Mobile Layout & Promo/Dock Polish (Plan F, Zero Fixed Overlap)
   ========================================================================== */
.v35-checkout :is(.checkout-preview, .checkout-fulfillment, .checkout-summary) {
  border: 1px solid rgba(96, 43, 135, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(96, 43, 135, 0.07);
}

.checkout-heading .checkout-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.checkout-heading .checkout-fulfillment-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(96, 43, 135, 0.22);
  border-radius: 999px;
  background: #E8DAF1;
  color: #522059;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 10px;
}

.v35-promo-box {
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: #FAF8FD;
  border: 1px solid rgba(96, 43, 135, 0.12);
}

.v35-promo-box .v35-promo-row {
  margin: 0;
}

.v35-promo-input {
  border: 1.5px solid rgba(96, 43, 135, 0.18);
  background: #FFFFFF;
  border-radius: 10px;
}

.v35-promo-btn {
  background: #E8DAF1;
  color: #522059;
  border: 1.5px solid #602B87;
  box-shadow: none;
  border-radius: 10px;
}

.v35-promo-btn:hover:not(:disabled) {
  background: #602B87;
  color: #FFFFFF;
  transform: none;
}

.checkout-pay-dock .checkout-back {
  width: auto;
  flex: 0 0 auto;
}

.checkout-pay-dock .button.primary:disabled {
  background: #EDE8F3 !important;
  color: #7C6E8A !important;
  border-color: rgba(96, 43, 135, 0.16) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

@media (min-width: 960px) {
  .v35-checkout-design > .checkout-pay-dock {
    position: static !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    width: 100%;
    max-width: none;
    margin-top: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(96, 43, 135, 0.12);
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(96, 43, 135, 0.08);
  }

  .v35-checkout-design > .checkout-pay-dock .checkout-due {
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 900;
    color: #18071A;
  }

  .v35-checkout-design > .checkout-pay-dock .button.primary {
    flex: 0 1 280px;
    margin-left: auto;
  }
}

@media (max-width: 959px) {
  body[data-v35-route="checkout"] {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .v35-checkout {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .checkout-pay-dock {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .checkout-pay-dock .checkout-due {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .checkout-pay-dock .checkout-back {
    white-space: nowrap !important;
    width: auto !important;
    flex: 0 0 auto !important;
    padding-inline: 14px;
    font-size: 13px;
  }

  .checkout-pay-dock .button.primary {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Two-Step Checkout Flow: Step 1 (Delivery Method) & Step 2 (Payment Review)
   ========================================================================== */
.v35-checkout-step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.v35-step-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid rgba(96, 43, 135, 0.18);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--popomo-ink, #18071A);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.v35-step-back:hover {
  background: #FAF8FD;
  border-color: #602B87;
  color: #522059;
}

.v35-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #F3EDF9;
  border: 1px solid rgba(96, 43, 135, 0.22);
  color: #522059;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.v35-checkout .checkout-delivery-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.v35-checkout-unified .checkout-delivery-options > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v35-checkout-tabbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border-radius: 16px;
  background: #F3EEF9;
  border: 1px solid rgba(96, 43, 135, 0.14);
}

.v35-checkout .v35-checkout-tabbar > label.v35-checkout-tab {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 13px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  min-width: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.v35-checkout .v35-checkout-tabbar > label.v35-checkout-tab:hover {
  background: rgba(255, 255, 255, 0.56);
}

.v35-checkout .v35-checkout-tabbar > label.v35-checkout-tab.is-active {
  background: #FFFFFF;
  border-color: #602B87;
  box-shadow: 0 4px 14px rgba(96, 43, 135, 0.12);
}

.v35-checkout .v35-checkout-tabbar > label.v35-checkout-tab:has(input[type="radio"]:focus-visible) {
  outline: 2px solid #602B87;
  outline-offset: 1px;
}

.v35-checkout .v35-checkout-tabbar > label.v35-checkout-tab input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.v35-tab-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(96, 43, 135, 0.1);
  color: #602B87;
  font-size: 14px;
  font-weight: 800;
}

.v35-checkout-tab.is-active .v35-tab-icon {
  background: #602B87;
  color: #FFFFFF;
}

.v35-tab-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v35-tab-copy strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--popomo-ink, #18071A);
}

.v35-tab-copy small {
  font-size: 12px;
  line-height: 1.35;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-kiosk-linked-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ECE1F9;
  color: #522059;
  font-size: 10.5px;
  font-weight: 800;
}

.v35-checkout-unified .pickup-option-details,
.v35-checkout-unified .courier-option-details {
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(96, 43, 135, 0.14);
  background: #FAF8FD;
}

.v35-checkout-unified .pickup-option-details .pickup-choice {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.v35-checkout-unified #courier-address-form.checkout-address {
  margin: 0;
  padding: 0;
  border: 0;
}

.v35-checkout-unified #courier-address-form.checkout-address h3 {
  font-size: 15px;
}

.v35-checkout .checkout-delivery-options #courier-address-form.checkout-address label,
.v35-addr-modal-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: default;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--popomo-ink, #18071A);
}

.v35-checkout .checkout-delivery-options #courier-address-form.checkout-address label:focus-within,
.v35-addr-modal-form label:focus-within {
  outline: none;
}

.v35-checkout .checkout-delivery-options #courier-address-form.checkout-address input,
.v35-addr-modal-form input:not([type="checkbox"]) {
  position: static;
  inset: auto;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 13px;
  border: 1.5px solid rgba(96, 43, 135, 0.18);
  border-radius: 12px;
  background-color: #FFFFFF;
  color: #18071A;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
}

.v35-checkout .checkout-delivery-options #courier-address-form.checkout-address input:focus,
.v35-addr-modal-form input:not([type="checkbox"]):focus {
  background-color: #FFFFFF;
  border-color: #602B87;
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
  outline: none;
}

.v35-checkout-unified #courier-address-form.checkout-address > button[type="submit"] {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 13px;
}

.v35-checkout select,
.v35-checkout .checkout-delivery-options #courier-address-form.checkout-address select,
.v35-addr-modal-form select {
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: auto;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px !important;
  border: 1.5px solid rgba(96, 43, 135, 0.18);
  border-radius: 12px;
  background-color: #FFFFFF !important;
  background-image: none !important;
  color: #18071A;
  font-family: inherit;
  font-size: 15px;
}

.v35-checkout select:focus,
.v35-checkout .checkout-delivery-options #courier-address-form.checkout-address select:focus,
.v35-addr-modal-form select:focus {
  background-color: #FFFFFF !important;
  border-color: #602B87;
  box-shadow: 0 0 0 3px rgba(96, 43, 135, 0.16);
  outline: none;
}

/* Saved Address Book summary card */
.v35-address-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(96, 43, 135, 0.18);
}

.v35-addr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v35-addr-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #602B87;
}

.v35-addr-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #F1E8FA;
  color: #522059;
  font-size: 11px;
  font-weight: 800;
}

.v35-addr-card-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--popomo-ink, #18071A);
}

.v35-addr-card-who strong {
  font-size: 15px;
  font-weight: 800;
}

.v35-addr-card-who span {
  font-size: 13.5px;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-addr-card-line {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--popomo-ink-muted, #5E4D6B);
  word-break: break-word;
}

.v35-addr-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.v35-addr-btn {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 12.5px;
}

/* Address Picker Modal */
dialog.v35-address-picker {
  max-width: 560px;
}

.v35-addr-scope-note {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--popomo-ink-muted, #5E4D6B);
}

.v35-address-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.v35-address-item {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1.5px solid rgba(96, 43, 135, 0.16);
  border-radius: 14px;
  background: #FFFFFF;
}

.v35-address-item.is-active {
  border-color: #602B87;
  background: #FAF5FE;
}

.v35-addr-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v35-addr-item-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #18071A;
}

.v35-addr-use-btn {
  flex: none;
  min-height: 32px;
  padding: 4px 12px;
  font-size: 12.5px;
}

.v35-addr-item-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.v35-addr-item-ops .text-button {
  min-height: auto;
  padding: 2px 0;
  font-size: 12.5px;
}

.v35-addr-item-ops .is-danger {
  color: #A61B44;
}

.v35-addr-list-foot {
  margin-top: 14px;
}

.v35-addr-modal-form {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.v35-addr-modal-form label.v35-addr-default-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.v35-addr-default-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #602B87;
  flex: none;
}

.v35-addr-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* Order summary and fees */
.v35-checkout-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v35-checkout-unified .checkout-preview.is-compact {
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 16px;
  gap: 14px;
}

.v35-checkout-unified .checkout-preview.is-compact > .checkout-case {
  height: 92px;
  padding: 6px;
}

.checkout-preview-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--popomo-teal-deep, #602B87);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.checkout-payment-note,
.checkout-due-label {
  color: var(--popomo-ink-muted, #5E4D6B);
  font-size: 13px;
}

.checkout-payment-note {
  margin: 12px 0 0;
}

.checkout-due-label {
  font-weight: 600;
}

.v35-checkout-unified .checkout-pay-dock .checkout-due {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.v35-checkout-quote-card {
  padding: 18px 20px;
  border-radius: 20px;
}

.v35-checkout-quote-card .print-quote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.v35-promo-fold {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(96, 43, 135, 0.16);
}

.v35-promo-toggle {
  min-height: auto;
  padding: 2px 0;
  font-size: 13px;
  font-weight: 700;
  color: #602B87;
}

.v35-promo-fold .v35-promo-box {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.v35-checkout-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 22px;
  min-width: 0;
}

.v35-checkout-right .checkout-fulfillment,
.v35-checkout-right .checkout-summary {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v35-checkout-right .checkout-summary {
  padding-top: 14px;
  border-top: 1px solid rgba(96, 43, 135, 0.12);
}

.v35-checkout-unified .checkout-pay-dock .checkout-back {
  display: none;
}

@media (min-width: 960px) {
  .v35-checkout-unified .v35-checkout-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
    gap: 24px;
    align-items: start;
  }

  .v35-checkout-unified .v35-checkout-left {
    grid-column: 1;
    position: sticky;
    top: 20px;
  }

  .v35-checkout-unified .v35-checkout-right {
    grid-column: 2;
  }

  .v35-checkout-unified .checkout-pay-dock {
    justify-content: space-between;
  }
}

@media (max-width: 959px) {
  .v35-checkout-unified {
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

  .v35-checkout-unified .v35-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .v35-checkout-unified .v35-checkout-left {
    display: contents;
  }

  .v35-checkout-unified .checkout-preview.is-compact {
    order: 1;
  }

  .v35-checkout-unified .v35-checkout-right {
    display: contents;
  }

  .v35-checkout-unified .v35-checkout-right :is(.checkout-fulfillment, .checkout-summary) {
    padding: 16px 14px;
    border: 1px solid var(--popomo-border);
    border-radius: 18px;
    background: var(--popomo-surface, #FFFFFF);
  }

  .v35-checkout-unified .checkout-fulfillment {
    order: 2;
  }

  .v35-checkout-unified .checkout-summary {
    order: 4;
  }

  .v35-checkout-unified .v35-checkout-quote-card {
    order: 3;
    padding: 16px 14px;
  }

  .v35-checkout-tabbar {
    gap: 6px;
  }

  .v35-checkout .v35-checkout-tabbar > label.v35-checkout-tab {
    padding: 10px 10px;
    gap: 8px;
  }

  .v35-checkout-unified .checkout-pay-dock {
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: space-between;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .v35-checkout-unified .checkout-pay-dock .checkout-due {
    font-size: 21px;
  }

  .v35-checkout-unified .checkout-pay-dock .button.primary {
    width: 100%;
  }
}


/* Match the shell reset's specificity. This sheet loads after the shell. */
body:is([data-v35-route="orders"], [data-v35-route="my-designs"]):not(.v35-home-page) {
  background-color: var(--pf-canvas);
  background-image: var(--pf-page-aura);
  background-size: 100% 340px;
  background-repeat: no-repeat;
  background-position: 0 0;
}

.v35-orders .orders-heading h1,
.v35-private-heading h1 {
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.v35-orders .orders-heading h1 em,
.v35-private-heading h1 em {
  color: var(--popomo-teal-deep, #602B87);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* CJK has no true italic: keep the orchid accent upright */
html:lang(zh-CN) .v35-orders .orders-heading h1 em,
html:lang(zh-CN) .v35-private-heading h1 em {
  font-family: inherit;
  font-style: normal;
}

.v35-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--popomo-ink, #18071A);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v35-page-kicker span {
  color: var(--popomo-teal-deep, #602B87);
}

@media (max-width: 767px) {
  body:is([data-v35-route="orders"], [data-v35-route="my-designs"]):not(.v35-home-page) {
    background-size: 100% 260px;
  }
}
