/* Layout for enquiry controls; shared native ChatGPT template owns appearance. */
.ep-enquiry-chat { max-width: 1000px; margin: 0 auto; }
/* One card surface; counter only the corporate page rules inherited by chat. */
body.ep-cc-page #g1-content .ep-contact .form-card:has(.ep-enquiry-chat) { min-width: 0; padding: 0; background: #fff; border-color: #d8e3e9; box-shadow: 0 8px 24px rgba(32,52,71,.05); }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat { font: 15px/1.6 "Segoe UI",Arial,sans-serif; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat :is(.mwai-chat,.mwai-body) { border: 0; background: transparent; font-family: inherit; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-conversation { padding: 20px; gap: 18px; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-name-text { font-size: 11px; line-height: 1.4; color: #657681; margin-bottom: 6px; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-text { padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.6; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-text p { margin: 0 0 8px; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-text p:last-child { margin-bottom: 0; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-text :is(ul,ol) { margin: 8px 0 0; padding-left: 20px; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-input { margin: 4px 20px 0; padding: 6px; min-height: 58px; gap: 4px; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-input-text { min-width: 0; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-input textarea { min-height: 44px; font: 15px/1.5 "Segoe UI",Arial,sans-serif; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-input :is(.mwai-input-submit,.ep-ec-add) { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .ep-ec-file-hint { margin: 8px 20px 16px; font: 12px/1.5 "Segoe UI",Arial,sans-serif; color: #657681; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .ep-ec-privacy { margin: 0; padding: 14px 20px; border-top: 1px solid #e6edf1; border-radius: 0 0 16px 16px; background: #f8fafb; font: 13px/1.6 "Segoe UI",Arial,sans-serif; color: #586975; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .ep-ec-panel { margin: 0 20px 16px; padding: 16px; background: #f7f9fb; border-color: #dde5eb; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat h2 { font: 600 18px/1.4 "Segoe UI",Arial,sans-serif; letter-spacing: 0; margin: 0 0 16px; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .ep-ec-panel p { margin: 0 0 14px; font-size: 14px; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .ep-ec-actions button { min-height: 44px; padding: 10px 16px; border-radius: 10px; font: 600 14px/1.4 "Segoe UI",Arial,sans-serif; }
body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat :is(input,textarea,button,a):focus-visible { outline: 2px solid rgba(123,196,232,.3); outline-offset: 2px; }
.ep-ec-intro,.ep-ec-privacy { font: 13px/1.6 "Segoe UI",Arial,sans-serif; color: #64727b; }
.ep-ec-privacy { margin: 14px 8px; }
.ep-enquiry-chat .mwai-chat { border: 1px solid #d5dfe4; border-radius: 12px; }
.ep-enquiry-chat .ep-ec-panel { margin: 12px 20px; padding: 20px; background: var(--ep-chat-surface); border: 1px solid var(--ep-chat-border); border-radius: 12px; color: var(--ep-chat-text); }
.ep-enquiry-chat .ep-ec-panel[hidden],.ep-enquiry-chat [hidden] { display: none !important; }
.ep-enquiry-chat .ep-ec-panel h2 { margin: 0 0 14px; font: 600 20px/1.4 "Segoe UI",Arial,sans-serif; color: inherit; }
.ep-enquiry-chat .ep-ec-panel dl { display: grid; grid-template-columns: minmax(100px,135px) minmax(0,1fr); gap: 10px 16px; font: 14px/1.5 "Segoe UI",Arial,sans-serif; margin: 0 0 16px; }
/* Theme clearfix pseudo-elements must not become extra grid cells. */
.ep-enquiry-chat .ep-ec-panel dl::before,.ep-enquiry-chat .ep-ec-panel dl::after { content: none; }
.ep-enquiry-chat .ep-ec-panel :is(dt,dd) { float: none; clear: none; width: auto; min-width: 0; padding: 0; }
.ep-enquiry-chat .ep-ec-panel dt { font-weight: 600; margin: 0; color: #586975; }
.ep-enquiry-chat .ep-ec-panel dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #263f4e; }
.ep-enquiry-chat .ep-ec-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-enquiry-chat .ep-ec-button { border: 1px solid var(--ep-chat-action-border); background: var(--ep-chat-action-surface); color: var(--ep-chat-action-text); cursor: pointer; }
.ep-enquiry-chat .ep-ec-button:hover { background: var(--ep-chat-action-hover); }
.ep-enquiry-chat .ep-ec-button:disabled { opacity: .55; cursor: default; }
/* Managed enquiries use only the private, scanned four-image uploader. */
.ep-enquiry-chat .mwai-file-upload { display: none !important; }
/* Match the latest UK native-template waiting control without its old orange. */
.ep-enquiry-chat .mwai-chatgpt-theme .mwai-input-submit.mwai-busy { background: var(--ep-chat-action-surface) !important; border: 1px solid var(--ep-chat-action-border) !important; color: var(--ep-chat-action-text) !important; opacity: 1 !important; box-shadow: 0 2px 4px rgba(42,78,96,.12); }
.ep-enquiry-chat .mwai-chatgpt-theme .mwai-input-submit.mwai-busy .mwai-timer { color: inherit !important; opacity: 1; font-size: 14px; font-variant-numeric: tabular-nums; }
.ep-enquiry-chat .mwai-input .ep-ec-add { flex: 0 0 36px; width: 36px; min-width: 36px; font-size: 24px !important; padding: 0 !important; border: 0; box-shadow: none; background: transparent; color: #76848b; }
.ep-enquiry-chat .ep-ec-images,.ep-enquiry-chat .ep-ec-notice,.ep-enquiry-chat .ep-ec-file-hint { margin: 6px 24px; font: 13px/1.5 "Segoe UI",Arial,sans-serif; color: #64727b; }
.ep-enquiry-chat .ep-ec-image-row { display: flex; align-items: center; gap: 12px; margin: 5px 0; }
.ep-enquiry-chat .ep-ec-image-row button { min-height: 32px; padding: 4px 12px !important; }
.ep-ec-mobile-bar { display: none; }
@media(max-width:700px) {
 body.ep-ec-chat-open #g1-content { z-index: 701; }
 body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-conversation { padding: 16px; }
 body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .mwai-input { margin: 4px 16px 0; }
 body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .ep-ec-file-hint { margin: 8px 16px 16px; }
 body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .ep-ec-privacy { padding: 12px 16px; }
 body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .ep-ec-panel { margin: 0 16px 16px; }
 body.ep-cc-page #g1-content .ep-contact .ep-enquiry-chat .ep-ec-actions button { flex: 1 1 120px; }
 .ep-enquiry-chat .ep-ec-panel { margin: 8px; padding: 16px; }
 .ep-enquiry-chat .ep-ec-panel dl { grid-template-columns: 1fr; gap: 2px; }
 .ep-enquiry-chat .ep-ec-panel dd { margin-bottom: 10px; }
 .ep-enquiry-chat .ep-ec-images,.ep-enquiry-chat .ep-ec-notice,.ep-enquiry-chat .ep-ec-file-hint { margin: 5px 14px; }
 body.ep-ec-chat-open { overflow: hidden; }
 .ep-enquiry-chat .ep-ec-fullscreen { position: fixed; z-index: 1000000; top: var(--ep-ec-top,0); left: 0; width: 100%; height: var(--ep-ec-height,100dvh); margin: 0 !important; border: 0; border-radius: 0; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
 .ep-ec-fullscreen .ep-ec-mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; border-bottom: 1px solid #d5dfe4; flex: 0 0 auto; }
 .ep-ec-fullscreen .mwai-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
 .ep-enquiry-chat .ep-ec-fullscreen .mwai-conversation { flex: 1 1 auto; min-height: 0; max-height: none !important; }
 .ep-ec-fullscreen .mwai-input { flex-shrink: 0; }
 .ep-ec-fullscreen .ep-ec-panel { max-height: var(--ep-ec-panel-height,44dvh); overflow-y: auto; flex-shrink: 0; }
}
