/* FLOORSHIFT 3D v8.16.4 — public Customer Care mobile presentation. */
.care-mobile-menu-button,
.care-mobile-tools,
.care-mobile-return-button { display: none; }

@media (max-width: 740px) {
  .care-shell { padding: 0 10px; }
  .care-header { position: relative; z-index: 30; height: 66px; gap: 10px; }
  .care-brand { min-width: 0; gap: 9px; }
  .care-brand strong { font-size: 15px; }
  .care-brand small { max-width: 195px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 7px; }
  .care-mark { width: 38px; height: 38px; flex: 0 0 38px; }
  .care-mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 68px; min-height: 42px; border: 1px solid rgba(34,197,217,.35); border-radius: 10px; background: #102b3b; color: #d7f8fb; font: 700 12px Manrope, sans-serif; }
  .header-meta { display: none; }
  .care-header.care-header-nav-open .header-meta { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 50; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #0b1d2b; box-shadow: 0 18px 48px rgba(0,0,0,.48); font-size: 10px; }
  .care-header.care-header-nav-open .header-meta > span:last-of-type { font-size: 10px; }
  .care-header.care-header-nav-open .header-meta a { display: flex; align-items: center; justify-content: flex-start; min-height: 42px; margin: 0; padding: 9px 11px; border: 1px solid rgba(171,203,225,.14); border-radius: 9px; background: rgba(255,255,255,.025); font-size: 12px; }
  .care-layout { display: flex; flex-direction: column; min-height: 0; gap: 10px; padding: 10px 0 14px; }
  .assistant-panel { order: 1; min-height: min(760px, calc(100svh - 92px)); min-height: min(760px, calc(100dvh - 92px)); padding: 13px; border-radius: 16px; }
  .portfolio-panel { order: 2; display: none; padding: 14px; border-radius: 16px; }
  body.care-mobile-products-open .assistant-panel { display: none; }
  body.care-mobile-products-open .portfolio-panel { display: block; }
  .portfolio-panel h1 { max-width: 100%; font-size: 25px; }
  .platform-list { grid-template-columns: 1fr; gap: 8px; margin-top: 13px; }
  .platform-card { min-height: 60px; padding: 9px 10px; }
  .platform-card strong { font-size: 12px; }
  .platform-card small { font-size: 10px; }
  .external { display: inline; }
  .privacy-note { margin-top: 12px; }
  .care-mobile-return-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid rgba(34,197,217,.35); border-radius: 10px; background: rgba(34,197,217,.09); color: #c9f5f7; font: 700 12px Manrope, sans-serif; }
  .assistant-heading { gap: 9px; align-items: center; }
  .assistant-heading h2 { font-size: clamp(23px, 7vw, 27px); }
  .assistant-heading .muted { max-width: 100%; font-size: 11px; line-height: 1.45; }
  .assistant-avatar { width: 40px; height: 40px; flex: 0 0 40px; }
  .care-mobile-tools { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin: 12px 0 7px; }
  .care-mobile-tools button { min-width: 0; min-height: 43px; padding: 9px 8px; border: 1px solid rgba(34,197,217,.26); border-radius: 10px; background: rgba(34,197,217,.07); color: #c9f4f6; font: 700 11px "DM Sans", sans-serif; }
  .care-mobile-tools button:first-child { grid-column: 1 / -1; }
  .care-mobile-tools button:disabled { opacity: .45; }
  .topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; margin: 10px 0; }
  .topic-chip { min-height: 42px; padding: 8px 7px; border-radius: 10px; font-size: 10px; line-height: 1.3; }
  .conversation { flex: 1 1 auto; width: 100%; min-height: clamp(220px, 35svh, 330px); max-height: 46svh; max-height: 46dvh; padding: 10px; overscroll-behavior: contain; scroll-padding-bottom: 14px; }
  .message { max-width: 100%; padding: 11px; font-size: 13px; line-height: 1.55; }
  .message p { overflow-wrap: anywhere; }
  .message-meta { gap: 5px; }
  .meta-chip { font-size: 10px; }
  .answer-block ul { font-size: 13px; line-height: 1.5; }
  .source-link, .copy-answer, .follow-up { min-height: 38px; display: inline-flex; align-items: center; font-size: 11px; }
  .case-tools { display: none; }
  .case-tools button { min-height: 43px; width: 100%; font-size: 11px; }
  .case-lookup { margin-bottom: 9px; }
  .case-lookup-form { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .case-lookup-form input, .case-form input, .case-form select, .case-form textarea { min-height: 44px; font-size: 16px; }
  .case-lookup-form button { min-height: 44px; }
  .composer { padding: 10px; margin-top: 2px; }
  .composer textarea { min-height: 68px; max-height: 25svh; resize: vertical; font-size: 16px; line-height: 1.45; }
  .composer-footer { align-items: stretch; flex-direction: column; gap: 8px; }
  .composer-footer span { max-width: none; font-size: 10px; line-height: 1.4; }
  .composer-footer button { width: 100%; min-height: 46px; font-size: 12px; }
  .care-status { padding: 7px 2px; min-height: 30px; font-size: 11px; line-height: 1.4; }
  .care-disclaimer { font-size: 10px; line-height: 1.5; }
  .case-dialog { width: calc(100vw - 12px); max-width: 720px; max-height: calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: auto; border-radius: 14px; overscroll-behavior: contain; }
  .case-form { gap: 11px; padding: 12px; }
  .case-dialog-heading { gap: 8px; }
  .case-dialog-heading h2 { font-size: 20px; line-height: 1.2; }
  .case-dialog-heading p { font-size: 11px; }
  .case-contact-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  /* The base label rule can override the browser hidden attribute; keep optional contact detail genuinely hidden until chosen. */
  .case-form > #case-contact-label[hidden] { display: none !important; }
  .case-consent { gap: 9px; padding: 10px; font-size: 11px; }
  .case-consent input { width: 22px; height: 22px; flex-basis: 22px; }
  .case-form-footer { position: static; margin: 0 -12px -12px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: rgba(11,28,41,.98); border-radius: 0 0 12px 12px; }
  .case-form-footer button { min-height: 46px; }
  .case-created-result { overflow-wrap: anywhere; }
  .case-created-result code { overflow-wrap: anywhere; word-break: break-word; }
  .case-copy-row button { min-height: 40px; }
  .care-footer { min-height: 42px; font-size: 8px; line-height: 1.4; }
  .care-footer span:last-child { display: none; }
}

@media (max-width: 360px) {
  .care-shell { padding: 0 8px; }
  .care-brand small { max-width: 160px; }
  .assistant-panel { padding: 11px; }
  .topic-chip { font-size: 9px; }
  .care-mobile-tools button { font-size: 10px; }
  .message { padding: 9px; }
  .case-form { padding: 10px; }
  .case-form-footer { margin: 0 -10px -10px; padding-left: 10px; padding-right: 10px; }
}

@media (min-width: 741px) {
  .care-mobile-menu-button, .care-mobile-tools, .care-mobile-return-button { display: none !important; }
  .portfolio-panel { display: block !important; }
  .assistant-panel { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .care-mobile-tools button, .care-mobile-menu-button { transition: none !important; }
}
