/* Shared question surfaces and compact composer actions across all skins. */
#customer-view #current-step.integrated-question{min-width:min(280px,100%)}
#customer-view #current-step #chat-actions{border-top:1px solid var(--chat-line,var(--line));margin-top:14px;padding:12px 0 0;gap:8px;max-width:100%}
#customer-view #current-step #chat-actions:not(:empty){margin-bottom:2px}
#customer-view #current-step #chat-actions:empty{display:none}
#customer-view #current-step #chat-actions>.flow-choice{min-height:40px;padding:9px 12px;border-radius:8px;font-size:12px;box-shadow:none!important}
#customer-view #current-step #chat-actions:not(.tile-choices):not(:empty){display:grid;grid-template-columns:minmax(0,1fr);width:100%}
#customer-view #current-step #chat-actions:not(.tile-choices)>.flow-choice{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;width:100%;min-width:0;text-align:left;gap:10px}
#customer-view #current-step #chat-actions .choice-label{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
#customer-view #current-step #chat-actions .choice-arrow{margin:0;justify-self:end}
#customer-view #current-step #chat-actions.confirmation-choices:not(.tile-choices):not(:empty),#customer-view #current-step #chat-actions:has(>.simple-choice):not(:has(>.flow-choice:not(.simple-choice))){grid-template-columns:repeat(2,minmax(0,1fr))}
#customer-view #current-step #chat-actions>.flow-choice.confirmation-choice,#customer-view #current-step #chat-actions>.flow-choice.simple-choice{display:flex;justify-content:center;text-align:center;min-width:0}
#customer-view #current-step #chat-actions.tile-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#customer-view #current-step #chat-actions .choice-icon{width:18px;height:18px;padding:0;border:0;background:none}
#customer-view #current-step #chat-actions .choice-label{font-size:12px}
#customer-view #current-step #chat-actions .simple-choice:is(.choice-icon,.choice-arrow){display:none}
#customer-view #current-step #chat-actions .simple-choice{min-width:80px;justify-content:center}
#customer-view .question-selection{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;margin-top:12px;padding-top:10px;border-top:1px solid var(--chat-line,var(--line));font-size:11px;line-height:1.5;white-space:normal;color:var(--chat-muted,var(--muted))}
#customer-view .question-selection .selection-check{color:var(--accent)}
#customer-view .question-selection .selection-value{font-size:11px;font-weight:600;color:var(--chat-text,var(--ink))}
#customer-view #chat-back svg{width:16px;height:16px}
@media(max-width:700px){#chat-back span{display:none}#customer-view #current-step #chat-actions>.flow-choice{min-height:44px}}

#customer-view .bubble-row>.message-content:has(>.form-answer){width:380px;max-width:100%;flex-shrink:1}
#customer-view .bubble.form-answer{width:100%;min-width:0}
#customer-view .submitted-form{margin-top:12px;padding-top:12px;border-top:1px solid var(--chat-line,var(--line));white-space:normal}
#customer-view .submitted-form-state{display:block;margin-bottom:10px;font-size:10px;color:var(--chat-muted,var(--muted))}
#customer-view .submitted-form-details{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;margin:0;font-size:12px;line-height:1.6}
#customer-view .submitted-form-details dt{color:var(--chat-muted,var(--muted))}
#customer-view .submitted-form-details dd{margin:0;min-width:0;overflow-wrap:anywhere;font-weight:600;color:var(--chat-text,var(--ink))}

/* Paragraph spacing comes from layout, rather than imported blank blocks. */
#customer-view .step-copy,#customer-view .bubble.formatted-message,.admin-mode .bubble.formatted-message{white-space:normal}
#customer-view .rich-copy p,.admin-mode .bubble.formatted-message p{margin:0 0 10px;line-height:1.65}
#customer-view .rich-copy p:last-child,.admin-mode .bubble.formatted-message p:last-child{margin-bottom:0}
#customer-view .rich-copy pre,.admin-mode .bubble.formatted-message pre{white-space:pre-wrap}
#customer-view .rich-copy code,.admin-mode .bubble.formatted-message code{white-space:pre-wrap}

#customer-view #current-step:has(.reseller-package-options){width:min(560px,100%)}
#customer-view .source-form:has(.reseller-package-options){margin-top:12px}
#customer-view .reseller-package-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:7px;width:100%}
#customer-view .reseller-package-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 8px;text-align:left;min-width:0;min-height:56px;padding:9px 11px;background:var(--chat-raised,var(--raised));border:1px solid var(--chat-line,var(--line));border-radius:8px}
#customer-view .reseller-package-option strong{font-size:13px}
#customer-view .reseller-package-detail{grid-column:1;min-width:0;font-size:11px;line-height:1.5;white-space:normal;color:var(--chat-muted,var(--muted))}
#customer-view .reseller-package-arrow{grid-column:2;grid-row:1 / span 2;color:var(--chat-muted,var(--muted))}
#customer-view .reseller-package-option:hover:not(:disabled){border-color:var(--chat-accent,var(--accent))}
@media(max-width:600px){
 #customer-view .reseller-package-option{grid-template-columns:minmax(0,1fr);padding:9px 10px}
 #customer-view .reseller-package-arrow{display:none}
}
@media(max-width:359px){
 #customer-view .reseller-package-options{grid-template-columns:minmax(0,1fr);gap:6px}
 #customer-view .reseller-package-option{grid-template-columns:minmax(0,80px) minmax(0,1fr);gap:8px;min-height:44px;padding:7px 10px}
 #customer-view .reseller-package-detail{grid-column:2;grid-row:1}
}

#customer-view .menu-selection-row{padding-left:36px;justify-content:flex-start}
#customer-view .menu-selection-row .bubble{padding:0;border:0;background:none;box-shadow:none;color:var(--chat-muted,var(--muted))}
#customer-view .menu-selection-row .question-selection{margin:0;padding:0;border:0}
@media(max-width:700px){#customer-view .menu-selection-row{padding-left:34px}}

/* Authored category menus share the same compact layout on every skin. */
#customer-view #current-step:has(.grouped-menu){width:min(620px,100%)}
#customer-view #current-step #chat-actions.grouped-menu{display:block}
#customer-view .menu-search{display:block;margin-bottom:8px}
#customer-view .menu-search-label{display:block;margin-bottom:6px;font-size:11px;color:var(--chat-muted,var(--muted))}
#customer-view .menu-search input{width:100%;min-width:0;height:40px;padding:9px 12px;border:1px solid var(--chat-line,var(--line));border-radius:8px;background:var(--chat-bg,var(--bg));color:var(--chat-text,var(--ink));font:inherit;font-size:12px}
#customer-view .menu-result-count{display:block;font-size:11px;color:var(--chat-muted,var(--muted));margin-bottom:8px}
#customer-view .menu-result-count:empty{display:none}
#customer-view .menu-results{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
#customer-view .menu-results[data-layout=cards]{grid-template-columns:repeat(2,minmax(0,1fr))}
#customer-view #current-step .menu-results>.flow-choice{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:center;min-width:0;width:100%;min-height:44px;padding:10px 12px;border-radius:8px;text-align:left;box-shadow:none!important}
#customer-view .menu-choice-copy{display:block;min-width:0}
#customer-view .menu-results .choice-label{display:block;font-size:12px;font-weight:600;white-space:normal;line-height:1.45}
#customer-view .menu-results .choice-description{display:block;margin-top:3px;font-size:11px;line-height:1.45;white-space:normal;color:var(--chat-muted,var(--muted))}
#customer-view .menu-results[data-layout=cards]>.flow-choice{min-height:80px}
#customer-view .menu-empty{margin:6px 0;font-size:12px;color:var(--chat-muted,var(--muted))}
@media(max-width:420px){#customer-view .menu-results[data-layout=cards]{grid-template-columns:minmax(0,1fr)}#customer-view .menu-results[data-layout=cards]>.flow-choice{min-height:60px}}

#customer-view .identity-fields:has(>.source-field:only-child){grid-template-columns:minmax(0,1fr)}

#customer-view #current-step:has(.report-form){width:min(560px,100%)}
#customer-view .report-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%}
#customer-view .report-fields textarea{min-height:88px;resize:vertical}
#customer-view .report-help{margin:0 0 14px;padding:10px 12px;border:1px solid var(--chat-line,var(--line));border-radius:8px;font-size:12px}
#customer-view .report-help summary{cursor:pointer;color:var(--chat-text,var(--ink))}
#customer-view .report-help[open] summary{margin-bottom:10px}
#customer-view .report-help .rich-copy{line-height:1.65;overflow-wrap:anywhere}
#customer-view .report-alternative{display:block;clear:both;border:0;background:none;box-shadow:none;margin:12px 0 0;padding:4px 0;text-align:left;font-size:11px;text-decoration:underline;color:var(--chat-muted,var(--muted))}
#customer-view .submitted-form-details dd,.admin-mode .submitted-form-details dd{white-space:pre-wrap}
@media(max-width:420px){#customer-view .report-form .source-send{width:100%}}

#customer-view .source-field select{width:100%;min-width:0;min-height:40px;padding:10px 12px;border:1px solid var(--chat-line,var(--line));border-radius:8px;background:var(--chat-bg,#11161d);color:var(--chat-text,var(--ink));font:inherit}
#customer-view .confirmation-field{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:center}#customer-view .confirmation-field input{grid-column:1;grid-row:1;width:16px;min-height:16px;height:16px;padding:0;accent-color:var(--accent)}#customer-view .confirmation-field .field-label{grid-column:2;grid-row:1}#customer-view .confirmation-field small{grid-column:2}
#customer-view .source-form [data-layout=stacked]{grid-template-columns:minmax(0,1fr)}#customer-view .source-form [data-layout=columns]{grid-template-columns:repeat(2,minmax(0,1fr))}
#customer-view .menu-results[data-layout=cards][data-columns=1]{grid-template-columns:minmax(0,1fr)}#customer-view .menu-results[data-layout=cards][data-columns=3]{grid-template-columns:repeat(3,minmax(0,1fr))}#customer-view .menu-results[data-layout=cards][data-columns=4]{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:600px){#customer-view .source-form [data-layout=columns]{grid-template-columns:minmax(0,1fr)}}@media(max-width:420px){#customer-view .menu-results[data-layout=cards][data-columns]{grid-template-columns:minmax(0,1fr)}}
