:root {
  color-scheme: light;
  --bg: #fffaf5;
  --surface: #ffffff;
  --ink: #201815;
  --muted: #6d625e;
  --line: #e5ded8;
  --rose: #c85a74;
  --coral: #ea7d5e;
  --sage: #66836a;
  --plum: #774c67;
  --gold: #c99b4b;
  --shadow: 0 18px 50px rgba(55, 36, 28, 0.14);
  --tryon-button-icon: url("./assets/p0/generated/icon-product-tryon.png");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.checkout-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(200, 90, 116, 0.35);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.p0-app {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #fffaf5;
  box-shadow: 0 0 0 1px rgba(229, 222, 216, 0.55);
}

.p0-app[data-screen="p0-business-page"] {
  width: 100%;
  max-width: none;
  box-shadow: none;
}

.p0-screen {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  padding: 18px 18px 112px;
}

.business-route-screen {
  min-height: 100vh;
  background: var(--bg);
}

.brand-mark {
  margin: 0;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark span {
  color: var(--rose);
  font-style: italic;
}

.p0-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.app-topbar {
  min-height: 44px;
}

.landing-top .brand-mark {
  justify-self: center;
  font-size: 1.42rem;
}

.landing-top-spacer {
  width: 44px;
  height: 44px;
}

.app-topbar-spacer {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}

.shop-cart-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.shop-cart-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.round-icon,
.back-button,
.cart-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: transparent;
  position: relative;
}

.round-icon {
  background: #fff url("./assets/p0/generated/icon-profile-header.png") center / 26px 26px no-repeat;
}

.p0-topbar .back-button {
  width: 36px;
  height: 36px;
  border-color: transparent;
  background: transparent url("./assets/p0/generated/icon-back-header.png") center / 22px 22px no-repeat;
}

.p0-topbar .round-icon,
.p0-topbar .cart-icon {
  width: 38px;
  height: 38px;
}

.p0-topbar .round-icon::before {
  width: 16px;
  height: 16px;
}

.p0-topbar .round-icon::after {
  bottom: 8px;
  width: 21px;
  height: 10px;
}

.round-icon::before {
  width: 19px;
  height: 19px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.round-icon::after {
  position: absolute;
  bottom: 9px;
  width: 25px;
  height: 13px;
  border: 2px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  content: "";
}

.round-icon::before,
.round-icon::after {
  content: none;
}

.back-button::before {
  color: var(--ink);
  content: "<";
  font-size: 2rem;
  line-height: 1;
}

.p0-topbar .back-button::before {
  content: none;
}

.cart-icon {
  color: var(--ink);
}

.cart-icon::before {
  width: 20px;
  height: 20px;
  background: url("./assets/p0/generated/icon-cart-header.png") center / contain no-repeat;
  content: "";
}

.cart-icon span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
}

.hero-photo {
  width: calc(100% + 36px);
  height: 250px;
  margin: 18px -18px 0;
  background: var(--hero-photo) center / cover no-repeat;
}

.p0-landing {
  padding-top: 0;
}

.p0-landing .landing-top {
  min-height: 68px;
  padding: 12px 0;
}

.p0-landing .hero-photo {
  height: 249px;
  margin-top: 0;
}

.landing-copy {
  padding: 22px 0 0;
  text-align: center;
}

.landing-copy h2,
.screen-title {
  margin: 0;
  color: #111;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 2.02rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

.landing-copy h2 {
  max-width: 354px;
  margin: 0 auto;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.02;
}

.landing-copy p {
  margin: 8px 0 14px;
  font-size: 0.94rem;
}

.landing-copy h2 span {
  display: block;
}

.landing-copy p,
.screen-subtitle {
  margin: 12px 0 20px;
  color: #8b7b73;
  font-size: 1rem;
  line-height: 1.42;
}

.p0-landing .landing-copy p {
  margin: 10px 0 14px;
  font-size: 0.9rem;
  line-height: 1.34;
}

.p0-landing .landing-copy > .text-button {
  min-height: 34px;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-button {
  background: linear-gradient(135deg, var(--rose), #d24762);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 90, 116, 0.22);
}

.secondary-button {
  border: 1px solid rgba(200, 90, 116, 0.35);
  background: #fff;
  color: var(--ink);
}

.tryon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tryon-button::before {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: var(--tryon-button-icon) center / contain no-repeat;
  content: "";
  filter: saturate(1.35) contrast(1.2);
}

.text-button {
  background: transparent;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-cta {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  font-size: 1.04rem;
}

.p0-landing .hero-cta {
  width: 305px;
  max-width: 100%;
  min-height: 50px;
}

.hero-cta span {
  width: 30px;
  height: 34px;
  overflow: hidden;
  background: url("./assets/p0/generated/icon-upload-white.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.trust-chip-row,
.priority-chips,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip-row {
  margin: 20px 0 16px;
  justify-content: center;
}

.p0-landing .trust-chip-row {
  flex-wrap: nowrap;
  gap: 7px;
  margin: 14px 0 21px;
}

.p0-landing .trust-chip {
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.64rem;
}

.p0-landing .trust-chip::before {
  margin-right: 5px;
}

.trust-chip,
.priority-chips span,
.tag-row span,
.size-kit-chip,
.preview-mode,
.secure-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.trust-chip::before,
.priority-chips span::before {
  margin-right: 7px;
  color: var(--sage);
  content: "✓";
}

.trust-chip.gold::before {
  color: var(--gold);
  content: "✦";
}

.saved-profile-strip,
.process-card,
.instruction-panel,
.consent-panel,
.analysis-card,
.trouble-panel,
.occasion-hero-panel,
.occasion-context-card,
.saved-profile-card,
.context-strip,
.checkout-product-card,
.saved-size-panel,
.order-context,
.totals-card,
.trust-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 26px rgba(78, 54, 44, 0.06);
}

.saved-profile-strip {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.p0-landing .saved-profile-strip {
  grid-template-columns: 34px 1fr auto;
  width: 334px;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  min-height: 40px;
  padding: 4px 10px;
  font-size: 0.68rem;
}

.p0-landing .saved-profile-strip .text-button.inline {
  min-height: 30px;
}

.p0-landing .profile-avatar {
  width: 34px;
  height: 34px;
  background: url("./assets/p0/generated/profile-strip-avatar.jpg") center / cover no-repeat;
}

.home-recent-section {
  width: 100%;
  margin: 26px auto 0;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.home-section-head h3 {
  margin: 0;
  color: #16100e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.08;
}

.home-section-head p {
  margin: 5px 0 0;
  color: #8b7b73;
  font-size: 0.7rem;
  line-height: 1.2;
}

.home-section-head button {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(200, 90, 116, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rose);
  font-size: 0.66rem;
  font-weight: 800;
}

.home-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.home-recent-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 168px;
  flex-direction: column;
  padding: 5px 5px 8px;
  border: 1px solid rgba(229, 222, 216, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(78, 54, 44, 0.05);
  color: var(--ink);
  text-align: left;
}

.home-recent-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f8eee7;
  object-fit: cover;
}

.home-recent-card span {
  position: absolute;
  top: 9px;
  left: 9px;
  display: inline-flex;
  min-height: 19px;
  align-items: center;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.94);
  color: var(--sage);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0;
}

.home-recent-card strong {
  display: block;
  min-height: 32px;
  margin-top: 6px;
  color: #251b18;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.18;
}

.home-recent-card small {
  display: block;
  margin-top: auto;
  color: var(--rose);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
}

.profile-avatar,
.mini-hand {
  border-radius: 50%;
  background: linear-gradient(135deg, #f4d7d8, #f8eee7);
}

.profile-avatar {
  width: 44px;
  height: 44px;
}

.text-button.inline {
  text-decoration: none;
}

.process-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 18px 10px;
  text-align: center;
}

.p0-landing .process-card {
  gap: 8px;
  margin-top: 12px;
  padding: 14px 8px 8px;
}

.p0-landing .process-visual {
  width: 64px;
  height: 64px;
}

.p0-landing .process-card strong {
  margin-top: 7px;
  font-size: 0.76rem;
}

.p0-landing .process-card p {
  font-size: 0.6rem;
  line-height: 1.22;
}

.process-card p {
  margin: 7px 0 0;
  color: #8b7b73;
  font-size: 0.72rem;
  line-height: 1.3;
}

.process-card strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
}

.process-card b {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
}

.process-visual {
  display: block;
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 50%;
  background: #f8f2ec center / contain no-repeat;
  position: relative;
}

.process-visual::after {
  content: none;
}

.process-visual.camera { background-image: url("./assets/p0/generated/process-photo.webp"); }
.process-visual.nail { background-image: url("./assets/p0/generated/process-ai-match.webp"); }
.process-visual.tryon { background-image: url("./assets/p0/generated/process-tryon.webp"); }

.bar-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
}

.bar-stepper strong {
  color: var(--rose);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.bar-stepper .active,
.bar-stepper i {
  background: var(--rose);
}

.bar-stepper span {
  overflow: hidden;
  flex: 1;
  height: 4px;
  margin-left: 8px;
  border-radius: 99px;
  background: #e5ded8;
}

.bar-stepper i {
  display: block;
  width: 100%;
  height: 100%;
}

.hand-match-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 223, 216, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(78, 54, 44, 0.06);
}

.hand-match-progress span {
  min-width: 58px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #9a8b83;
}

.hand-match-progress b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #eadfd8;
  border-radius: 50%;
  background: #fffaf5;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1;
}

.hand-match-progress small {
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.hand-match-progress i {
  height: 2px;
  border-radius: 999px;
  background: #e9dfd8;
}

.hand-match-progress .is-complete b,
.hand-match-progress .is-complete + i,
.hand-match-progress i.is-complete {
  border-color: #66836a;
  background: #66836a;
  color: #fff;
}

.hand-match-progress .is-complete small {
  color: #66836a;
}

.hand-match-progress .is-active b {
  border-color: rgba(200, 90, 116, 0.3);
  background: #fff4f6;
  color: var(--rose);
  box-shadow: 0 8px 18px rgba(200, 90, 116, 0.14);
}

.hand-match-progress .is-active small {
  color: var(--rose);
}

.screen-title {
  margin-top: 12px;
}

#p0-upload .screen-title,
#p0-analysis .screen-title {
  margin: 8px 0 14px;
  font-size: 1.78rem;
  line-height: 1;
}

.upload-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upload-choice-card {
  display: grid;
  min-height: 104px;
  place-items: center;
  gap: 3px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

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

.choice-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: transparent;
  position: relative;
  background: center / contain no-repeat;
}

.choice-icon::before {
  content: none;
}

.choice-icon.image { background-image: url("./assets/p0/generated/icon-upload-photo.png"); }
.choice-icon.camera { background-image: url("./assets/p0/generated/icon-camera.png"); }

.upload-choice-card strong,
.upload-choice-card small {
  display: block;
}

.upload-choice-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.1;
}

.example-photo-panel,
.analysis-photo {
  position: relative;
  overflow: hidden;
  height: 222px;
  margin: 12px 0;
  border-radius: 8px;
  background: center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(229, 222, 216, 0.65);
}

.live-badge,
.instruction-caption,
.quality-badge,
.speed-chip {
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--sage);
  font-weight: 900;
}

.live-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.instruction-caption {
  right: 28px;
  bottom: 14px;
  left: 28px;
  padding: 7px 8px;
  color: var(--sage);
  font-size: 0.78rem;
  text-align: center;
}

.instruction-panel {
  display: grid;
  gap: 9px;
  padding: 12px 14px;
}

.instruction-panel p,
.checkbox-row {
  margin: 0;
}

.instruction-panel p::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  content: "✓";
}

.consent-panel {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  padding: 12px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.34;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--rose);
}

.checkbox-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0), #fffaf5 22%);
}

.sticky-actions .primary-button {
  width: 100%;
  min-height: 50px;
  font-size: 0.94rem;
}

.sticky-actions .secondary-button {
  width: 100%;
  min-height: 42px;
  font-size: 0.86rem;
}

.occasion-screen .sticky-actions {
  bottom: 84px;
  margin-bottom: 82px;
}

.quality-badge {
  display: inline-flex;
  align-items: center;
  top: 12px;
  right: 10px;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 7px 10px;
  background: rgba(102, 131, 106, 0.9);
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
}

.quality-badge::before {
  width: 17px;
  height: 17px;
  background: url("./assets/p0/generated/icon-quality-pass.png") center / contain no-repeat;
  content: "";
}

.analysis-photo .nail-box {
  display: none;
}

.scan-line {
  position: absolute;
  right: 12px;
  bottom: 44%;
  left: 12px;
  height: 2px;
  background: #ff8ba1;
  box-shadow: 0 0 20px #ff8ba1;
}

.nail-box {
  position: absolute;
  width: 42px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
}

.nail-box.one { left: 19%; top: 34%; }
.nail-box.two { left: 31%; top: 20%; }
.nail-box.three { left: 46%; top: 13%; }
.nail-box.four { left: 62%; top: 20%; }
.nail-box.five { right: 14%; top: 48%; }

.analysis-card {
  padding: 12px;
}

.analysis-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analysis-card h3,
.trouble-panel h3,
.fit-drawer h2,
.checkout-product-card h3,
.saved-size-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.analysis-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.analysis-card h3::before {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  background: url("./assets/p0/generated/icon-analysis-sparkle.png") center / contain no-repeat;
  content: "";
}

.analysis-card-head span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.analysis-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.status-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  font-size: 0.82rem;
  line-height: 1.16;
}

.status-list li::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  place-items: center;
  border: 2px solid #d7cec8;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  content: "";
  vertical-align: middle;
}

.status-list .done::before {
  border-color: var(--sage);
  background: var(--sage);
  color: #fff;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.status-list .active::before {
  border-color: transparent;
  background: url("./assets/p0/generated/icon-status-loading.png") center / contain no-repeat;
}

.tag-stack {
  display: grid;
  align-content: start;
  gap: 6px;
}

.tag-stack span {
  padding: 5px 8px;
  border: 1px solid #efc4c9;
  border-radius: 999px;
  color: var(--rose);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.trouble-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
}

.trouble-panel h3 {
  grid-column: 1 / -1;
}

.occasion-screen {
  padding-bottom: 104px;
}

.occasion-hero-panel {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 14px;
  background: linear-gradient(135deg, #fff, #fff4f6 64%, #f4f7ef);
}

.occasion-hero-panel > span {
  width: max-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: #fff;
  color: var(--rose);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
}

.occasion-hero-panel .screen-title {
  margin: 0;
  font-size: 1.64rem;
  line-height: 1.05;
}

.occasion-hero-panel p {
  margin: 0;
  color: #6d625e;
  font-size: 0.78rem;
  line-height: 1.32;
}

.occasion-context-card,
.saved-profile-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 18px 0 12px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.occasion-context-card {
  grid-template-columns: 38px 1fr auto;
  gap: 8px;
  margin: 10px 0;
  padding: 9px 10px;
  font-size: 0.72rem;
}

.occasion-context-card strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.occasion-context-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 36%, #fff 0 19%, transparent 20%),
    radial-gradient(circle at 66% 64%, #fff 0 12%, transparent 13%),
    linear-gradient(135deg, #c85a74, #edbd57);
}

.mini-hand {
  width: 46px;
  height: 46px;
  background: url("./assets/p0/generated/profile-mini-hand.jpg") center / cover;
  border-radius: 8px;
}

.occasion-context-card span,
.saved-profile-card span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #dce8d9;
  color: #4c5c45;
  font-weight: 900;
}

.occasion-context-card span {
  padding: 6px 8px;
  font-size: 0.68rem;
}

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.occasion-tile {
  min-width: 0;
  padding: 4px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  position: relative;
}

.occasion-tile.selected {
  border: 2px solid var(--coral);
  color: var(--coral);
}

.occasion-tile.selected::after {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
}

.occasion-image {
  display: block;
  height: 62px;
  margin-bottom: 7px;
  border-radius: 6px;
  background: center / cover no-repeat;
}

.occasion-tile strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.08;
}

.occasion-tile small {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.16;
}

.occasion-screen .priority-block {
  margin: 10px 0 14px;
}

.occasion-screen .priority-block > strong {
  margin-bottom: 8px;
  font-size: 0.82rem;
  line-height: 1.1;
}

.occasion-screen .priority-chips {
  gap: 6px;
}

.occasion-screen .priority-chips span {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.68rem;
  font-weight: 700;
}

.occasion-screen .priority-chips span::before {
  margin-right: 5px;
}

.occasion-screen .sticky-actions .primary-button {
  min-height: 46px;
  font-size: 0.86rem;
}

.occasion-screen .sticky-actions .secondary-button {
  min-height: 38px;
  font-size: 0.78rem;
}

.priority-block {
  margin: 14px 0 18px;
}

.priority-block > strong {
  display: block;
  margin-bottom: 10px;
}

.top-icons {
  display: flex;
  gap: 10px;
}

.hand-match-results {
  padding-bottom: 146px;
}

.hand-match-hero {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 12px;
  align-items: center;
  margin: 4px 0 12px;
  padding: 16px 14px;
  border: 1px solid rgba(234, 223, 216, 0.96);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(78, 54, 44, 0.07);
}

.hand-match-hero span {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef5eb;
  color: #66836a;
  font-size: 0.66rem;
  font-weight: 880;
  line-height: 1;
  text-transform: uppercase;
}

.hand-match-hero .screen-title {
  margin: 8px 0 7px;
  font-size: 1.72rem;
  line-height: 0.98;
}

.hand-match-hero p {
  margin: 0;
  color: #6f625c;
  font-size: 0.78rem;
  line-height: 1.32;
}

.hand-match-score {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 6px solid #66836a;
  border-radius: 50%;
  background: #fffaf5;
  color: #4c5c45;
  text-align: center;
}

.hand-match-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 0.92;
}

.hand-match-score small {
  margin-top: -10px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.hand-signal-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.hand-signal-panel div {
  min-width: 0;
  border: 1px solid rgba(234, 223, 216, 0.9);
  border-radius: 8px;
  padding: 9px 8px;
  background: #fff;
}

.hand-signal-panel span,
.hand-signal-panel strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hand-signal-panel span {
  color: #9b8d86;
  font-size: 0.62rem;
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
}

.hand-signal-panel strong {
  margin-top: 5px;
  color: #2b211d;
  font-size: 0.72rem;
  line-height: 1.08;
}

.recommendation-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
}

.recommendation-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1;
}

.recommendation-head .screen-title {
  margin-top: 0;
  font-size: 1.62rem;
  line-height: 1;
  white-space: nowrap;
}

.speed-chip {
  position: static;
  justify-self: end;
  min-width: max-content;
  padding: 8px 10px;
  background: #eef8e9;
  font-size: 0.72rem;
}

.context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 10px 0;
  padding: 5px 8px;
  font-size: 0.62rem;
}

.context-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  white-space: nowrap;
}

.context-strip button[hidden] {
  display: none;
}

.tiny {
  min-height: 28px;
  padding: 0 8px;
  color: var(--rose);
  font-size: 0.68rem;
  white-space: nowrap;
}

.product-list {
  display: grid;
  gap: 9px;
  padding-bottom: 128px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  height: 160px;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(78, 54, 44, 0.08);
}

.rank-ribbon {
  display: none;
}

.product-image {
  min-height: 160px;
  background: center / cover no-repeat;
}

.product-info {
  display: grid;
  grid-template-rows: 52px minmax(0, 2.4em) 19px 31px;
  gap: 3px;
  height: 100%;
  padding: 7px 9px 8px;
  overflow: hidden;
}

.product-title-row {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 52px;
  padding-right: 50px;
}

.product-title-row h3 {
  margin: 0 0 3px;
  display: -webkit-box;
  max-height: 2.16em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: anywhere;
}

.product-title-row strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1;
}

.fit-confidence-badge,
.fit-score-ring {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 4px solid var(--sage);
  border-radius: 50%;
  background: #fff;
  color: #4c5c45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  line-height: 1;
}

.product-card .fit-confidence-badge {
  position: absolute;
  top: 0;
  right: 0;
}

.fit-confidence-badge small,
.fit-score-ring small {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 0.66rem;
}

.product-info p {
  margin: 0;
  color: #5f5450;
  display: block;
  min-width: 0;
  max-height: 2.35em;
  overflow: hidden;
  padding-right: 0;
  font-size: 0.56rem;
  line-height: 1.18;
}

.product-info .tag-row {
  min-width: 0;
  height: 19px;
  overflow: hidden;
  flex-wrap: nowrap;
  gap: 5px;
}

.tag-row span {
  min-height: 18px;
  padding: 0 6px;
  background: #f8efec;
  color: var(--rose);
  font-size: 0.56rem;
  line-height: 1;
  white-space: nowrap;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-self: end;
}

.product-actions .primary-button,
.product-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding-inline: 5px;
  font-size: 0.74rem;
  line-height: 1;
}

.product-actions .primary-button::before,
.product-actions .tryon-button::before {
  width: 12px;
  height: 12px;
  background: center / contain no-repeat;
  content: "";
  filter: saturate(1.35) contrast(1.2);
}

.product-actions .tryon-button::before {
  background-image: var(--tryon-button-icon);
}

.product-actions .primary-button::before {
  background-image: url("./assets/shop/icons/shop-add-cart-white.png");
}

.cart-bar {
  position: fixed;
  right: max(12px, calc((100vw - 480px) / 2 + 12px));
  bottom: 12px;
  left: max(12px, calc((100vw - 480px) / 2 + 12px));
  z-index: 20;
  display: grid;
  grid-template-columns: 54px 1fr 132px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

#p0-recommendations .cart-bar {
  bottom: 88px;
}

.cart-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: center / cover no-repeat;
}

.cart-bar strong,
.cart-bar p {
  margin: 0;
}

.cart-bar strong {
  font-size: 0.86rem;
  white-space: nowrap;
}

.cart-bar p {
  color: var(--muted);
  font-size: 0.74rem;
}

.cart-add-feedback[hidden] {
  display: none;
}

.cart-add-feedback {
  position: fixed;
  right: max(14px, calc((100vw - 480px) / 2 + 14px));
  bottom: 96px;
  left: max(14px, calc((100vw - 480px) / 2 + 14px));
  z-index: 35;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(234, 223, 216, 0.94);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(55, 36, 28, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
}

.p0-app[data-route="recommendations"] .cart-add-feedback {
  bottom: 166px;
}

.p0-app[data-route="product-detail"] .cart-add-feedback {
  bottom: 166px;
}

.cart-add-feedback.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cart-add-feedback > img,
.cart-add-feedback-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff4f6 center / cover no-repeat;
  object-fit: cover;
}

.cart-add-feedback-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cart-add-feedback-copy strong,
.cart-add-feedback-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-add-feedback-copy strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.08;
}

.cart-add-feedback-copy small {
  color: var(--muted);
  font-size: 0.7rem;
}

.cart-add-feedback button {
  min-height: 38px;
  border-radius: 10px;
  background: var(--rose);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.fit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(32, 24, 21, 0.58);
}

.fit-drawer,
.tryon-drawer {
  position: fixed;
  right: max(0px, calc((100vw - 480px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 480px) / 2));
  z-index: 50;
  display: grid;
  gap: 10px;
  max-height: 66vh;
  overflow-y: auto;
  padding: 12px 18px 18px;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.drawer-handle {
  justify-self: center;
  width: 48px;
  height: 5px;
  border-radius: 99px;
  background: #d6ceca;
}

.fit-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fit-product-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.fit-product-image {
  height: 62px;
  border-radius: 8px;
  background: center / cover no-repeat;
}

.fit-breakdown {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fit-row {
  display: grid;
  grid-template-columns: 42px 1fr 38px;
  gap: 10px;
  align-items: center;
}

.fit-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fbf4f1 center / cover no-repeat;
}

.fit-row:nth-child(1) .fit-icon { background-image: url("./assets/p0/generated/fit-icon-skin.png"); }
.fit-row:nth-child(2) .fit-icon { background-image: url("./assets/p0/generated/fit-icon-shape.png"); }
.fit-row:nth-child(3) .fit-icon { background-image: url("./assets/p0/generated/fit-icon-size.png"); }
.fit-row:nth-child(4) .fit-icon { background-image: url("./assets/p0/generated/fit-icon-occasion.png"); }
.fit-row:nth-child(5) .fit-icon { background-image: url("./assets/p0/generated/fit-icon-beginner.png"); }

.fit-row strong,
.fit-row p,
.fit-row em {
  margin: 0;
}

.fit-row i {
  display: block;
  height: 5px;
  margin: 5px 0;
  border-radius: 99px;
  background: #e8e1dc;
}

.fit-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rose);
}

.fit-row p {
  color: var(--muted);
  font-size: 0.82rem;
}

.fit-row em {
  color: var(--rose);
  font-style: normal;
  font-weight: 900;
}

.fit-note {
  margin: 0;
  padding: 10px;
  border: 1px dashed #cfc5be;
  border-radius: 8px;
  color: var(--muted);
}

.drawer-actions,
.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drawer-actions .tryon-button::before {
  width: 16px;
  height: 16px;
}

.size-kit-chip,
.preview-mode {
  justify-self: center;
  color: #786250;
}

.tryon-preview {
  position: relative;
  height: 260px;
  border-radius: 8px;
  background: center / cover no-repeat;
}

.tryon-preview::after {
  position: absolute;
  inset: 18% 35% 20% 35%;
  border-radius: 999px 999px 38px 38px;
  background: var(--tryon-nail, #ea7d5e);
  box-shadow:
    -54px 20px 0 -6px var(--tryon-nail, #ea7d5e),
    54px 18px 0 -7px var(--tryon-nail, #ea7d5e);
  content: "";
  opacity: 0.88;
}

.checkout-screen {
  overflow-x: hidden;
  padding: 0 18px 28px;
}

.checkout-screen .screen-title {
  margin-top: 12px;
  font-size: 1.82rem;
}

.checkout-screen .screen-subtitle {
  margin: 6px 0 12px;
  font-size: 0.74rem;
  line-height: 1.25;
}

.secure-chip {
  min-width: 0;
  padding: 0 9px;
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.secure-chip::before {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  background: url("./assets/p0/generated/icon-lock-small.png") center / contain no-repeat;
  content: "";
}

.checkout-product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
}

.checkout-line-list {
  display: grid;
  gap: 8px;
}

.checkout-line-item {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.checkout-product-image {
  min-height: 112px;
  border-radius: 8px;
  background: center / cover no-repeat;
}

.checkout-product-copy span {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fae8eb;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
}

.checkout-product-copy h3 {
  overflow-wrap: anywhere;
  margin-top: 5px;
  font-size: 0.9rem;
  line-height: 1.05;
}

.checkout-product-copy p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
}

.checkout-product-copy > strong {
  display: block;
  margin: 4px 0;
  color: var(--rose);
  font-size: 0.9rem;
}

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 27px 32px 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quantity-stepper button {
  min-height: 27px;
  background: #fff;
  font-size: 0.92rem;
}

.quantity-stepper b {
  display: grid;
  place-items: center;
}

.checkout-line {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 9px;
  font-size: 0.74rem;
  border-top: 1px solid var(--line);
}

.checkout-line strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.checkout-form-card {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.checkout-form-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.1;
}

.checkout-shipping-form,
.checkout-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-shipping-form .wide,
.checkout-review-grid .wide {
  grid-column: 1 / -1;
}

.checkout-shipping-form label,
.checkout-review-grid div {
  display: grid;
  gap: 4px;
}

.checkout-shipping-form span,
.checkout-review-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.checkout-shipping-form input {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: #fffdfb;
  color: var(--ink);
  font-size: 0.78rem;
}

.checkout-review-grid strong {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.2;
}

.checkout-payment-options {
  display: grid;
  gap: 7px;
}

.checkout-payment-options label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  background: #fff;
}

.checkout-payment-options label.selected {
  border-color: rgba(200, 90, 116, 0.45);
  background: #fff7f9;
}

.checkout-payment-options label.disabled {
  background: #f8f4f2;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.checkout-payment-options input {
  accent-color: var(--rose);
}

.checkout-payment-options strong,
.checkout-payment-options small {
  display: block;
}

.checkout-payment-options strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.checkout-payment-options small,
.checkout-payment-note,
.checkout-feedback {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.checkout-payment-note,
.checkout-feedback {
  margin: 0;
}

.checkout-feedback[data-tone="error"] {
  color: #b64055;
  font-weight: 800;
}

.checkout-size-fit-list {
  display: grid;
  gap: 7px;
}

.checkout-size-fit-list span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.checkout-size-fit-list strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.checkout-size-fit-list small,
.totals-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
}

.saved-size-panel {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border-color: rgba(102, 131, 106, 0.42);
  background: #fbfff8;
}

.saved-size-panel::before {
  grid-row: 1;
  width: 36px;
  height: 44px;
  align-self: center;
  background: url("./assets/p0/generated/checkout-icon-shield-large.png") center / contain no-repeat;
  content: "";
}

.saved-size-panel h3 {
  color: var(--sage);
  font-size: 1rem;
}

.saved-size-panel p {
  margin: 4px 0 7px;
  color: var(--muted);
  font-size: 0.74rem;
}

.checkout-screen .saved-size-panel .priority-chips {
  grid-column: 1 / -1;
  gap: 7px;
}

.checkout-screen .saved-size-panel .priority-chips span {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.order-context,
.totals-card {
  display: grid;
  margin-top: 10px;
  padding: 7px 11px;
}

.order-context div,
.totals-card div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--line);
}

.order-context div {
  grid-template-columns: 24px minmax(0, 1fr) minmax(0, auto);
}

.order-context div::before {
  width: 16px;
  height: 18px;
  background: center / contain no-repeat;
  content: "";
}

.order-context div:nth-child(1)::before { background-image: url("./assets/p0/generated/checkout-icon-order.png"); }
.order-context div:nth-child(2)::before { background-image: url("./assets/p0/generated/checkout-icon-profile.png"); }
.order-context div:nth-child(3)::before { background-image: url("./assets/p0/generated/checkout-icon-learning.png"); }

.order-context div:last-child,
.totals-card div:last-child {
  border-bottom: 0;
}

.order-context span,
.totals-card span {
  min-width: 0;
  color: var(--muted);
}

.order-context strong,
.totals-card strong {
  min-width: 0;
  max-width: 100%;
  text-align: right;
  overflow-wrap: anywhere;
}

.total strong {
  color: var(--rose);
  font-size: 1.08rem;
}

.trust-note {
  margin: 8px 0;
  padding: 8px 11px;
  font-size: 0.7rem;
  border-color: rgba(201, 155, 75, 0.45);
  line-height: 1.4;
}

.preview-mode {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 27px;
  margin: 8px auto 0;
  padding: 0 11px;
  font-size: 0.7rem;
  border-style: dashed;
}

.preview-mode::before {
  width: 14px;
  height: 14px;
  background: url("./assets/p0/generated/icon-preview-eye.png") center / contain no-repeat;
  content: "";
}

.checkout-screen .checkout-actions {
  gap: 10px;
}

.checkout-screen .checkout-actions .primary-button,
.checkout-screen .checkout-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding-inline: 8px;
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
}

.checkout-screen .checkout-actions .secondary-button::before {
  width: 16px;
  height: 16px;
  background: url("./assets/p0/generated/icon-checkout-cart.png") center / contain no-repeat;
  content: "";
}

.checkout-screen .checkout-actions .primary-button::after {
  width: 12px;
  height: 14px;
  background: url("./assets/p0/generated/icon-checkout-arrow.png") center / contain no-repeat;
  content: "";
}

@media (max-width: 420px) {
  .p0-screen {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-photo {
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
  }

  .landing-copy h2,
  .screen-title {
    font-size: 2.08rem;
  }

  .p0-landing .landing-copy h2 {
    font-size: 1.55rem;
    line-height: 1.02;
  }

  .product-card {
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .product-title-row {
    display: block;
    padding-right: 48px;
  }

  .fit-confidence-badge {
    width: 48px;
    height: 48px;
  }

  .cart-bar {
    grid-template-columns: 52px 1fr 114px;
  }

  .cart-add-feedback {
    grid-template-columns: 40px minmax(0, 1fr) 78px;
    gap: 8px;
    padding: 9px;
  }

  .cart-add-feedback > img,
  .cart-add-feedback-thumb {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .p0-landing .hero-photo {
    height: 226px;
  }

  .checkout-screen .screen-title {
    margin-top: 8px;
    font-size: 1.66rem;
    line-height: 1;
  }

  .checkout-screen .screen-subtitle {
    margin: 4px 0 8px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .checkout-product-card {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 8px;
    padding: 8px;
  }

  .checkout-line-item {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 7px;
  }

  .checkout-product-image {
    min-height: 82px;
  }

  .checkout-product-copy span {
    padding: 3px 7px;
    font-size: 0.72rem;
  }

  .checkout-product-copy h3 {
    margin-top: 4px;
    font-size: 0.84rem;
  }

  .checkout-product-copy > strong {
    margin: 3px 0;
  }

  .quantity-stepper {
    grid-template-columns: 25px 30px 25px;
  }

  .quantity-stepper button {
    min-height: 25px;
  }

  .checkout-line {
    padding-top: 5px;
  }

  .saved-size-panel {
    margin-top: 6px;
    padding: 8px;
  }

  .saved-size-panel h3 {
    font-size: 0.92rem;
  }

  .saved-size-panel p {
    margin: 3px 0 6px;
  }

  .checkout-screen .saved-size-panel .priority-chips span {
    min-height: 25px;
    padding: 0 9px;
    font-size: 0.68rem;
  }

  .order-context,
  .totals-card {
    margin-top: 6px;
    padding: 7px 10px;
  }

  .order-context div,
  .totals-card div {
    padding: 3px 0;
  }

  .trust-note {
    margin: 6px 0;
    padding: 7px 10px;
    line-height: 1.3;
  }

  .preview-mode {
    min-height: 24px;
    margin-top: 5px;
  }

  .checkout-screen .checkout-actions .primary-button,
  .checkout-screen .checkout-actions .secondary-button {
    min-height: 34px;
  }
}

@media (min-width: 760px) {
  body {
    background: #f3eee9;
  }

  .p0-app {
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 24px;
    overflow: hidden;
  }
}
