/* The conversation, not optional account/provider settings, is the first action. */
#shopperRoom .guest-shopping-more summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
}
#shopperRoom #guestShopperChatHost .sc-conversation {
  min-height: 0;
}
#shopperRoom #guestShopperChatHost .sc-heading h2 {
  font-size: 26px;
  line-height: 1.15;
}
/* Guest shopping: honest search without a photo or account.
   Paper/russet room language; restrained, 44px targets, fits 320px. */

#shopperRoom .guest-shopping,
body.guest-shopping-active .guest-shopping {
  --gs-ink: var(--room-cocoa, #3d3028);
  --gs-muted: #5c4e43;
  --gs-line: var(--room-line, #d9cdbd);
  --gs-accent: var(--room-russet, #985638);
  --gs-deep: var(--room-russet-dark, #75402b);
  --gs-paper: #fffaf2;
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  width: min(100%, 1080px);
  min-width: 0;
  margin: 0 auto 24px;
  color: var(--gs-ink);
  font: 400 16px/1.6 var(--room-body, "DM Sans", sans-serif);
}

:is(#shopperRoom, body.guest-shopping-active) .guest-shopping *,
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping *::before,
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping *::after {
  box-sizing: border-box;
  min-width: 0;
}

:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-intro {
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--gs-line);
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-intro h2 {
  margin: 0 0 6px;
  color: var(--gs-ink);
  font: 400 clamp(28px, 6vw, 42px)/1.02 var(--room-display, Georgia, serif);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-intro p {
  max-width: 58ch;
  margin: 0;
  color: var(--gs-muted);
  font-size: 16px;
}

/* Mode choice: real merchandise / sample concepts */
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #cbb7a2;
  border-radius: 3px;
  overflow: hidden;
  background: var(--gs-paper);
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-options button {
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--gs-deep);
  font: 700 14px/1.25 var(--room-mono, monospace);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-options button + button {
  border-left: 1px solid #cbb7a2;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-options button:hover {
  background: #f4ecdf;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-options button[aria-pressed="true"] {
  background: var(--gs-ink);
  color: #fff8ed;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping :is(button, a, input, textarea):focus-visible {
  outline: 3px solid rgba(152, 86, 56, .55);
  outline-offset: 2px;
}

:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-disclosure {
  margin: 0;
  padding: 11px 14px;
  border-left: 3px solid var(--gs-accent);
  background: #f6ecdf;
  color: #4f4036;
  font-size: 15px;
  line-height: 1.55;
}

/* Optional AI / cloud sharing */
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-ai {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  column-gap: 6px;
  min-height: 44px;
  padding: 6px 12px 8px 4px;
  border: 1px solid var(--gs-line);
  border-radius: 3px;
  background: var(--gs-paper);
  color: var(--gs-ink);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-ai input[type="checkbox"] {
  justify-self: center;
  width: 20px;
  height: 20px;
  margin: 6px 0 0;
  accent-color: var(--gs-deep);
  cursor: pointer;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-ai > :not(input) {
  grid-column: 2;
  padding-top: 4px;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-ai :is(small, p, span + span) {
  display: block;
  margin: 2px 0 0;
  color: var(--gs-muted);
  font-size: 14px;
}

/* Chat host: keep compose reachable on phones */
:is(#shopperRoom, body.guest-shopping-active) #guestShopperChatHost {
  min-width: 0;
}
:is(#shopperRoom, body.guest-shopping-active) #guestShopperChatHost .shopper-chat {
  width: 100%;
  max-width: none;
  margin: 0;
}
:is(#shopperRoom, body.guest-shopping-active) #guestShopperChatHost .sc-conversation {
  max-height: min(52dvh, 560px);
  min-height: 180px;
}
:is(#shopperRoom, body.guest-shopping-active) #guestShopperChatHost .sc-compose textarea {
  min-height: 56px;
  font-size: 16px;
}
:is(#shopperRoom, body.guest-shopping-active) #guestShopperChatHost :is(.sc-send, .sc-reset, .sc-starter, .sc-action) {
  min-height: 44px;
}
/* No fitting or try-on controls in guest view */
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping :is([data-try-on], [data-fit], .sc-try-on, .sc-fit, .sc-collapse) {
  display: none !important;
}

/* Results */
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-shopping-results > [role="status"] {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gs-muted);
  font: 600 14px/1.45 var(--room-mono, monospace);
  letter-spacing: .03em;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9cbb9;
  border-radius: 3px;
  background: #fffcf7;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-product img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: contain;
  background: #ece3d7;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-product h3 {
  margin: 12px 14px 4px;
  color: var(--gs-ink);
  font: 400 21px/1.1 var(--room-display, Georgia, serif);
  overflow-wrap: anywhere;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-product p {
  margin: 0 14px 10px;
  color: var(--gs-muted);
  font-size: 15px;
  line-height: 1.5;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-product a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: auto 14px 14px;
  padding: 10px 14px;
  border: 1px solid var(--gs-deep);
  border-radius: 3px;
  background: var(--gs-deep);
  color: #fff8ed;
  font: 700 14px/1.2 var(--room-mono, monospace);
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-product a:hover {
  background: #603422;
}

/* Sample concepts: unmistakably not for sale */
:is(#shopperRoom, body.guest-shopping-active) .guest-product:not(:has(a)) {
  border-style: dashed;
  background: #f8f2e8;
}
:is(#shopperRoom, body.guest-shopping-active) .guest-product:not(:has(a))::before {
  order: -1;
  display: block;
  padding: 8px 14px;
  border-bottom: 1px dashed #cbb7a2;
  background: #efe5d7;
  color: var(--gs-deep);
  content: var(--language-sample-not-for-sale, "Sample concept \2014  not for sale");
  font: 700 13px/1.35 var(--room-mono, monospace);
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  :is(#shopperRoom, body.guest-shopping-active) .guest-shopping { gap: 14px; }
  :is(#shopperRoom, body.guest-shopping-active) .guest-shopping-options button {
    padding-inline: 8px;
    font-size: 13px;
    letter-spacing: .02em;
  }
  :is(#shopperRoom, body.guest-shopping-active) #guestShopperChatHost :is(.sc-heading, .sc-conversation, .sc-compose) {
    padding-inline: 12px;
  }
  :is(#shopperRoom, body.guest-shopping-active) #guestShopperChatHost .sc-conversation {
    max-height: 44dvh;
    min-height: 160px;
  }
  :is(#shopperRoom, body.guest-shopping-active) #guestShopperChatHost .sc-compose-row {
    grid-template-columns: minmax(0, 1fr);
  }
  :is(#shopperRoom, body.guest-shopping-active) #guestShopperChatHost .sc-send {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#shopperRoom, body.guest-shopping-active) .guest-shopping * {
    transition: none !important;
    animation: none !important;
  }
}

/* Guest-only consent and optional audio, within the existing two-field chat. */
#guestShopperChatHost .guest-claire-consent {
  align-items: start;
  gap: 4px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
}
#guestShopperChatHost .guest-claire-consent input {
  width: 20px;
  height: 20px;
  margin: 3px 0;
}
#guestShopperChatHost .guest-claire-consent small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gs-muted);
}
#guestShopperChatHost .guest-voice-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
#guestShopperChatHost .guest-voice-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--gs-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
#guestShopperChatHost .guest-voice-tools button { min-width: 44px; min-height: 44px; touch-action: manipulation; }
#guestShopperChatHost :is(.guest-voice-tools button, .guest-voice-dismiss, .guest-voice-consent input):focus-visible {
  outline: 2px solid var(--gs-deep, #75402b);
  outline-offset: 3px;
}
#guestShopperChatHost textarea { font-size: max(16px, 1rem); }
#guestShopperChatHost .guest-voice-tools button:disabled { opacity: .45; cursor: default; }
#guestShopperChatHost .guest-voice-tools button[aria-pressed="true"] { color: var(--gs-deep); background: #f6ecdf; }
#guestShopperChatHost .guest-voice-tools svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#guestShopperChatHost .guest-voice-consent {
  display: flex;
  align-items: start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
}
#guestShopperChatHost .guest-voice-consent input { width: 20px; height: 20px; flex-shrink: 0; }
#guestShopperChatHost .guest-voice-dismiss { background: transparent; border: 0; padding: 8px; min-height: 44px; text-decoration: underline; }
#guestShopperChatHost .guest-voice-status { margin: 0; font-size: 13px; line-height: 1.4; }
#guestShopperChatHost .guest-voice-status:empty { display: none; }

/* Source catalog previews reuse the existing results grid, not purchase cards. */
#shopperRoom .guest-shopping-results > :is(h3, .guest-preview-note) {
  grid-column: 1 / -1;
  margin: 0;
}
#shopperRoom .guest-product[data-kind="catalog-preview"]::before {
  content: "Catalog preview — not purchasable";
}
#shopperRoom .guest-product[data-kind="catalog-preview"] img {
  object-fit: contain;
  background: #f3ede3;
}
#shopperRoom .guest-preview-description {
  max-height: 13em;
  overflow-y: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
}
