/* Customer surfaces share the optional neutral theme with the staff console. */
.customer-appearance {display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:var(--muted,var(--neom-muted));min-height:44px}
.customer-appearance select {width:auto;min-height:44px;padding:7px 10px;border:1px solid var(--neom-border);border-radius:9px;background:var(--neom-surface);color:var(--neom-text);font-size:13px}
.home-language {gap:18px;flex-wrap:wrap}
.visitor-survey {padding:17px;border:1px solid var(--line);border-radius:14px;background:var(--wash);color:var(--ink)}
.visitor-survey h2 {margin:0 0 6px;font-size:16px;line-height:1.45;font-weight:650}
.visitor-survey>p {margin:0 0 15px;font-size:13px;color:var(--muted)}
.visitor-survey fieldset {margin:0;padding:0;border:0}
.visitor-survey legend,.survey-comment {display:block;font-size:13px;font-weight:600;margin:0 0 8px}
.survey-rating {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.survey-rating label {position:relative;cursor:pointer}
.survey-rating input {position:absolute;width:1px;height:1px;opacity:0;min-height:0}
.survey-rating span {display:grid;place-items:center;min-height:44px;background:var(--neom-surface);color:var(--neom-text);border:1px solid var(--neom-border);border-radius:9px;font-size:16px;font-weight:600}
.survey-rating input:checked+span {background:var(--neom-action);color:var(--neom-on-action);border-color:var(--neom-action)}
.survey-rating input:focus-visible+span {outline:3px solid var(--neom-focus);outline-offset:3px}
.survey-scale {display:flex;justify-content:space-between;gap:12px;margin:7px 0 17px;font-size:11px;color:var(--muted)}
.visitor-survey textarea {width:100%;min-height:76px;resize:vertical;border:1px solid var(--neom-border);border-radius:9px;padding:10px;color:var(--neom-text);background:var(--neom-surface);font-size:16px}
.visitor-survey button[type=submit] {margin-top:10px;width:100%;background:var(--neom-action);color:var(--neom-on-action);border-radius:9px;justify-content:space-between}
.survey-thanks {display:flex;align-items:center;gap:10px}
.survey-thanks p {flex:1;margin:0!important;color:var(--ink)}
.survey-error {color:var(--neom-danger);font-size:13px}
.resolution-confirmation {padding:15px 16px;border:1px solid var(--line);border-radius:12px;background:var(--wash)}
.resolution-confirmation p {margin:0 0 12px;font-size:14px;font-weight:600}
.resolution-confirmation>div {display:flex;flex-wrap:wrap;gap:8px}
.resolution-confirmation button {flex:1;padding:10px;border:1px solid var(--neom-border);border-radius:9px;background:var(--neom-surface);color:var(--neom-text);font-size:13px}
.resolution-confirmation button:first-child {background:var(--neom-action);color:var(--neom-on-action);border-color:var(--neom-action)}
:root[data-theme=dark] {--ink:var(--neom-text);--muted:var(--neom-muted);--line:var(--neom-border);--wash:var(--neom-raised);--focus:var(--neom-focus);--green:#8bd5b5;--forest:#9cdabd;--canvas:var(--neom-bg);--surface:var(--neom-surface)}
:root[data-theme=dark] .widget,:root[data-theme=dark] .widget-header,:root[data-theme=dark] .widget-content,:root[data-theme=dark] .widget-nav,:root[data-theme=dark] .contact-card,:root[data-theme=dark] .home-help-card,:root[data-theme=dark] .visitor-profile-card,:root[data-theme=dark] .choice-grid button,:root[data-theme=dark] .chat-compose,:root[data-theme=dark] .chat-support,:root[data-theme=dark] .help-search,:root[data-theme=dark] .help-collection,:root[data-theme=dark] .help-article-list {background:var(--neom-surface);color:var(--neom-text);border-color:var(--neom-border)}
:root[data-theme=dark] .home-header {background:linear-gradient(145deg,#282a2c,#202123)}
:root[data-theme=dark] .home-search,:root[data-theme=dark] .continue-card,:root[data-theme=dark] .contact-card-icon,:root[data-theme=dark] .widget-message .bubble,:root[data-theme=dark] .handoff-note,:root[data-theme=dark] .choice-utilities button,:root[data-theme=dark] .chat-compose-box,:root[data-theme=dark] .chat-compose textarea {background:var(--neom-raised);color:var(--neom-text);border-color:var(--neom-border)}
:root[data-theme=dark] .widget-message.customer .bubble {background:#3b4146;color:#f0f1f3;border:1px solid #535960}
:root[data-theme=dark] .widget-message.agent .bubble {background:#2b3530;color:#e6f2ea;border-color:#3f5146}
:root[data-theme=dark] .chat-support button,:root[data-theme=dark] .choice-grid button,:root[data-theme=dark] .home-suggested,:root[data-theme=dark] a {color:var(--neom-brand)}
:root[data-theme=dark] .widget-nav button.active {background:var(--neom-brand-wash);color:var(--neom-brand)}
:root[data-theme=dark] .widget-nav button,:root[data-theme=dark] .icon-button,:root[data-theme=dark] .language-control select,:root[data-theme=dark] .choices-label,:root[data-theme=dark] .widget-message .meta,:root[data-theme=dark] .chat-day,:root[data-theme=dark] .compose-label,:root[data-theme=dark] .compose-hint {color:var(--neom-muted)}
:root[data-theme=dark] .widget-mark {background:#eceef2}
:root[data-theme=dark] .home-brand-row .widget-mark {background:transparent}
:root[data-theme=dark] .widget input,:root[data-theme=dark] .widget textarea,:root[data-theme=dark] select option {background:var(--neom-surface);color:var(--neom-text);border-color:var(--neom-border)}
:root[data-theme=dark] button:hover:not(:disabled),:root[data-theme=dark] .help-collection:hover,:root[data-theme=dark] .help-article-row:hover {background:var(--neom-hover);border-color:var(--neom-border)}
:root[data-theme=dark] .widget-error,:root[data-theme=dark] .visitor-profile-error {background:var(--neom-danger-bg);color:var(--neom-danger);border-color:var(--neom-danger)}
:root[data-theme=dark] .help-header,:root[data-theme=dark] .help-hero,:root[data-theme=dark] .help-search-strip {background:var(--neom-surface);border-color:var(--neom-border)}
:root[data-theme=dark] .help-hero h1,:root[data-theme=dark] .help-reader>h1,:root[data-theme=dark] .reader-body,:root[data-theme=dark] .reader-body h2,:root[data-theme=dark] .help-footer strong,:root[data-theme=dark] .reader-contact h2,:root[data-theme=dark] .help-breadcrumbs span {color:var(--neom-text)}
:root[data-theme=dark] .help-hero p,:root[data-theme=dark] .eyebrow,:root[data-theme=dark] .hero-company,:root[data-theme=dark] .help-collection p,:root[data-theme=dark] .collection-card-foot,:root[data-theme=dark] .section-heading p,:root[data-theme=dark] .content-count,:root[data-theme=dark] .help-article-row>span:nth-child(2)>span,:root[data-theme=dark] .help-footer small,:root[data-theme=dark] .help-breadcrumbs,:root[data-theme=dark] .article-meta,:root[data-theme=dark] .reader-kicker,:root[data-theme=dark] .collection-heading p,:root[data-theme=dark] .reader-contact p,:root[data-theme=dark] .help-contact p,:root[data-theme=dark] .help-availability,:root[data-theme=dark] .help-empty p,:root[data-theme=dark] .reader-toc strong {color:var(--neom-muted)}
:root[data-theme=dark] .help-contact,:root[data-theme=dark] .reader-contact,:root[data-theme=dark] .header-contact,:root[data-theme=dark] .collection-symbol,:root[data-theme=dark] .article-symbol,:root[data-theme=dark] .contact-symbol,:root[data-theme=dark] .search-collection-filters a {background:var(--neom-raised);color:var(--neom-text);border-color:var(--neom-border)}
:root[data-theme=dark] .help-search input,:root[data-theme=dark] .help-search button.search-clear {color:var(--neom-text);background:transparent}
:root[data-theme=dark] .help-search input::placeholder {color:var(--neom-muted)}
:root[data-theme=dark] .help-search .search-submit,:root[data-theme=dark] .primary,:root[data-theme=dark] .reader-contact button,:root[data-theme=dark] .help-contact>.primary {background:var(--neom-action);border-color:var(--neom-action);color:var(--neom-on-action)}
:root[data-theme=dark] .help-brand .neom-funded-wordmark {filter:brightness(0) invert(1)}
:root[data-theme=dark] .help-header,:root[data-theme=dark] .help-footer,:root[data-theme=dark] .help-article-row,:root[data-theme=dark] .article-meta,:root[data-theme=dark] .reader-related {border-color:var(--neom-border)}
.help-footer .customer-appearance {margin-left:auto}
@media(max-width:620px){.customer-appearance select{font-size:16px}.home-language{gap:10px}.help-footer .customer-appearance{margin-left:0}.survey-rating{gap:6px}}

:root[data-theme=dark] .attachment-pick,:root[data-theme=dark] .widget-prepared-trigger,:root[data-theme=dark] .attachment-draft button,:root[data-theme=dark] .help-search>.icon,:root[data-theme=dark] .language-picker>.icon {color:var(--neom-brand)}

/* WebKit paints native menu controls shorter than min-height; use an explicit
   neutral control while retaining the native select interaction and semantics. */
:root :is(.language-control,.language-picker,.customer-appearance) {position:relative}
:root :is(.language-control,.language-picker,.customer-appearance)::after {content:'';position:absolute;right:12px;top:calc(50% - 5px);width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg);pointer-events:none}
:root :is(.language-control,.language-picker,.customer-appearance) select {appearance:none;-webkit-appearance:none;height:44px;min-height:44px;padding-right:30px!important;line-height:normal}
:root :is(.language-control,.language-picker)::after {right:8px}
.visitor-profile-body {padding-bottom:28px}
.visitor-profile input {flex-shrink:0}
.visitor-profile-save {flex-shrink:0}

.intake-trap {position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;pointer-events:none}
/* Language selection is a compact labelled control with a readable native
   dialog on touch screens; customer surfaces always use the light palette. */
.customer-language-trigger {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 15px;border:1px solid #dce7df;border-radius:12px;background:#fff;color:#40584c;font-size:14px;font-weight:500;line-height:1.4;white-space:nowrap}
.customer-language-trigger>.icon {width:18px;height:18px;color:#587362}
.customer-language-trigger .language-chevron {width:16px;height:16px;flex-shrink:0;margin-left:5px;color:#6b7c72}
.customer-language-trigger:hover {background:#f4f9f5;border-color:#aac8b7}
.customer-language-trigger:focus-visible {outline:3px solid #087f5b;outline-offset:3px}
.customer-language-dialog {position:fixed;inset:auto;margin:0;padding:8px;border:1px solid #dbe5df;border-radius:16px;background:#fff;color:#203d2d;box-shadow:0 14px 44px #17332626;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.customer-language-dialog::backdrop {background:#10251b20}
.customer-language-dialog>header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1px 4px 5px 12px;border-bottom:1px solid #e7eee9;margin-bottom:5px}
.customer-language-dialog header strong {font-size:13px;font-weight:650}
.customer-language-dialog button {min-height:44px;font:inherit;cursor:pointer;border:0;background:transparent;color:inherit;touch-action:manipulation}
.customer-language-close {display:grid;place-items:center;width:44px;padding:10px;border-radius:9px}
.customer-language-close .icon {width:18px;height:18px}
.customer-language-options {display:flex;flex-direction:column;gap:3px}
.customer-language-options button {display:flex;align-items:center;gap:11px;padding:10px 12px;width:100%;border-radius:10px;text-align:left}
.customer-language-options button[aria-pressed=true] {background:#edf7f1;color:#076846}
.customer-language-options button:hover,.customer-language-close:hover {background:#f2f7f4}
.customer-language-options button:focus-visible,.customer-language-close:focus-visible {outline:3px solid #087f5b;outline-offset:-1px}
.customer-language-options button>.icon,.language-check-placeholder {margin-left:auto;flex-shrink:0;width:18px;height:18px}
.language-code {display:grid;place-content:center;width:29px;min-height:25px;border:1px solid #cbdcd1;border-radius:6px;font-size:10px;font-weight:650;letter-spacing:.4px;color:#486554;background:#fff}
.home-language {justify-content:center;padding:8px 20px 18px}
.help-header .customer-language-trigger {min-width:126px}
@media(max-width:600px){.customer-language-trigger{font-size:16px;min-height:46px}.help-header .customer-language-trigger{min-width:0;padding:9px;gap:6px;font-size:13px}.help-header .customer-language-trigger .language-chevron{margin-left:0}.help-header .customer-language-trigger>.icon{display:none}}
.help-search.compact .search-submit{min-height:44px}

/* Keep the conversation readable inside the actual embedded viewport. */
.widget-header{min-height:56px;padding:6px 10px;gap:6px}
.widget-header small{margin-top:2px;font-size:11px}
.widget-header .customer-language-trigger{min-height:40px;padding:6px 9px;font-size:12px}
.widget-nav{min-height:54px;padding:3px 8px max(3px,env(safe-area-inset-bottom))}
.widget-nav button{min-height:44px;padding:3px 5px;font-size:11px;gap:1px}
.widget-nav .icon{width:19px;height:19px}
.chat-scroll{padding:12px 12px 6px}
.widget-message{margin-bottom:11px}
.widget-message .bubble{padding:9px 11px;line-height:1.5}
.widget-message .meta{margin:3px 5px;font-size:10px}
.widget-options{gap:7px;padding-bottom:6px}
.choice-grid,.choice-grid.is-main-menu{gap:5px}
.choice-grid button,.choice-grid.is-main-menu button{min-height:44px;padding:7px 9px;font-size:13px;border-radius:9px;line-height:1.35}
.choice-utilities{gap:5px;padding-top:0}
.choice-utilities button{min-height:44px;padding:6px 9px;font-size:12px}
.chat-compose{padding:7px 10px}
.compose-label{margin-bottom:5px;font-size:12px}
.compose-hint{margin-top:4px;font-size:11px}
@media(max-height:560px){.widget-header small{display:none}.compose-label,.compose-hint{display:none}.chat-compose{padding:5px 8px}}
@media(pointer:coarse){.widget-header .customer-language-trigger{min-height:44px}}

/* Decorative brand portraits: no availability or staff identity is implied. */
.home-team-avatars {display:flex;align-items:center;flex-shrink:0;padding-left:6px}
.home-team-avatars>span {display:grid;place-items:center;width:31px;height:31px;margin-left:-6px;overflow:hidden;border:2px solid #0b6e53;border-radius:50%;background:#14241f;box-shadow:0 2px 5px #001f1940}
.home-team-avatars img {display:block;width:19px;height:19px;object-fit:contain;filter:brightness(0) invert(1)}
.home-brand-row {gap:8px}
.home-brand-name strong,.home-brand-name small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:340px){.home-team-avatars>span{width:27px;height:27px}.home-team-avatars img{width:17px;height:17px}.home-brand-row{gap:5px}}

/* Help entries must keep their natural height inside the scrolling flex column. */
.widget-content .collection-row,.widget-content .article-row,.widget-content .help-count,.widget-content .article-view {flex:0 0 auto;min-width:0;height:auto}
.widget-content .collection-row {align-items:flex-start;gap:12px}
.widget-content .collection-row>span {display:block;flex:1 1 auto;min-width:0;overflow-wrap:anywhere;word-break:normal}
.widget-content .collection-row strong,.widget-content .collection-row p,.widget-content .collection-row small {white-space:normal;overflow-wrap:anywhere}
.widget-content .collection-row>svg {flex:0 0 16px;margin-top:3px}
.widget-content .article-row {overflow-wrap:anywhere;word-break:normal}
@media(max-width:420px){.widget-content .collection-row{padding:14px 16px}.widget-content .collection-row p{line-height:1.5}}
@media(max-width:620px){.widget-content .help-search input{font-size:16px}}

/* Give the conversation room on phones while keeping every control touchable. */
@media(max-width:480px){
  .chat-scroll{padding:12px 14px 8px}
  .widget-message{max-width:92%;margin-bottom:12px}
  .widget-message .bubble{padding:10px 12px;font-size:14px;line-height:1.45}
  .widget-message .meta{margin:4px 4px 0;font-size:11px}
  .choice-utilities{gap:8px}
  .choice-utilities button{min-width:0;justify-content:center;padding:8px;font-size:12px}
  .chat-compose{padding:6px 8px}
  .chat-compose .compose-label{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .chat-compose .compose-hint{display:none}
  .chat-compose-box{align-items:center;gap:0;padding:2px}
  .chat-compose button,.chat-compose .widget-prepared-trigger{margin:0}
  .chat-compose textarea{height:44px;min-height:44px;padding:10px 4px;line-height:24px;font-size:16px}
}

/* Persisted, optional product collection sits in the scrollable chat body. */
.visitor-product{margin:10px 0;padding:12px;border:1px solid #dce7e1;border-radius:12px;background:#f8fbf9;color:#203c30;min-width:0}
.visitor-product fieldset{min-width:0;margin:0;padding:0;border:0}
.visitor-product legend{font-size:14px;font-weight:650;padding:0}
.visitor-product fieldset p,.visitor-product small,.product-expectation{font-size:12px;line-height:1.5;color:#60766b;margin:4px 0 8px}
.product-expectation{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.product-options{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.visitor-product .product-options button{flex:1 1 110px;min-width:0;min-height:44px;padding:8px 10px;line-height:1.4;font-size:14px;white-space:normal;overflow-wrap:anywhere;border:1px solid #cbded3;border-radius:9px;background:#fff;color:#156449}
.visitor-product .product-options button[aria-pressed=true]{border-color:#087b57;background:#e8f6ef;color:#07593e}
.visitor-product .product-options button:focus-visible{outline:2px solid #087b57;outline-offset:2px}
.visitor-product fieldset:disabled button{opacity:.6;cursor:wait}
.visitor-product .product-error{color:#a13535;font-size:13px;line-height:1.5}
