/* Compact, project-specific benefits belong with the enquiry, not in a second screen. */
.mana-enquiry[data-popup-project] { --rich-line:#d8cfc5;--rich-ink:#231f20;--muted:#615c58;--popup-button-text:#fff;--rich-accent:#51383b;--project-deep:#36272a;--rich-label:#51383b;--rich-wash:#f5f1ed;font-family:var(--lp-body); }
.mana-enquiry[data-popup-theme="vista"] { --rich-accent:#5e724d;--project-deep:#34462f;--rich-label:#5e724d;--rich-wash:#f3f4ed;--lp-body:'Wix Madefor Display',sans-serif;--lp-heading:'Wix Madefor Display',sans-serif; }
.mana-enquiry[data-popup-theme="jardin"] { --rich-accent:#3e2a2d;--project-deep:#302225;--rich-label:#6d5642;--rich-wash:#f6f2ec;--lp-body:'Jost',sans-serif;--lp-heading:'Cormorant Garamond',serif; }
.mana-enquiry[data-popup-theme="verdant"] { --rich-accent:#51383b;--project-deep:#36272a;--rich-label:#51383b;--rich-wash:#f5f1ed;--lp-body:'Poppins',sans-serif;--lp-heading:'Cormorant',serif; }
.mana-enquiry[data-popup-theme="dale"] { --rich-accent:#014d4a;--project-deep:#063e3c;--rich-label:#014d4a;--rich-wash:#f0f5f1;--lp-body:'Urbanist',sans-serif;--lp-heading:'Unna',serif; }
.mana-enquiry[data-popup-theme="solitaire"] { --rich-accent:#ab5900;--project-deep:#5c2f00;--rich-label:#5c2f00;--rich-wash:#efebe5;--lp-body:'Red Hat Display',sans-serif;--lp-heading:'Philosopher',serif; }
.mana-enquiry[data-popup-theme="beach"] { --rich-accent:#ffcc02;--project-deep:#171717;--rich-label:#555;--rich-wash:#f2f2ef;--rich-line:#d7d7d2;--rich-ink:#171717;--popup-button-text:#171717;--lp-body:'Manrope',sans-serif;--lp-heading:'Manrope',sans-serif; }
html body dialog.mana-enquiry[data-popup-project] h2 { font-family:var(--lp-heading); }
html body dialog.mana-enquiry[data-popup-project] .popup-config button,
html body dialog.mana-enquiry[data-popup-project] .explorer-enquiry-config button { font-family:var(--lp-body); }
html body dialog.mana-enquiry[data-popup-project] .popup-config button[aria-pressed="true"],
html body dialog.mana-enquiry[data-popup-project] .explorer-enquiry-config button[aria-pressed="true"] { background:var(--rich-accent)!important;border-color:var(--rich-accent)!important;color:var(--popup-button-text)!important; }
.rich-page dialog.mana-enquiry { overflow:auto; overscroll-behavior:contain; }
.rich-page dialog.mana-enquiry .popup-benefits {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;
 margin:14px 0 16px;padding:0;border:1px solid var(--rich-line,#dedbd5);border-radius:5px;
 background:var(--rich-wash,#f5f3ee);color:var(--rich-ink,#231f20);
}
.popup-benefits li { display:flex;align-items:center;gap:10px;min-width:0;min-height:59px;padding:10px 12px; }
.popup-benefits li:nth-child(odd) { border-right:1px solid var(--rich-line,#dedbd5); }
.popup-benefits li:nth-child(-n+2) { border-bottom:1px solid var(--rich-line,#dedbd5); }
.popup-benefit-icon { flex:0 0 20px;color:var(--rich-label,#65563e);display:flex; }
.popup-benefit-icon svg { width:20px;height:20px; }
.popup-benefit-copy { min-width:0;display:block; }
.popup-benefit-copy strong { display:block;font-family:var(--lp-body,inherit);font-size:13px;line-height:1.25;font-weight:700; }
.popup-benefit-copy>span { display:block;margin-top:3px;font-size:11px;line-height:1.3;color:var(--muted,#5c5b57); }
html body dialog.mana-enquiry iframe { display:block;width:100%;border:0; }
html body dialog.mana-enquiry:not(.hero-enquiry-drawer) { padding:26px 22px 10px !important; }
.rich-page dialog.mana-enquiry h2 { margin:8px 26px 8px 0;font-size:27px;line-height:1.15; }
.rich-page dialog.mana-enquiry>.eyebrow { margin:0 32px 5px 0; }
html body #enquiry-dialog.mana-enquiry .enquiry-brand { margin:0 32px 5px 0;font-size:11px;line-height:1.3; }
.rich-page dialog.mana-enquiry #selected-layout,
.rich-page dialog.mana-enquiry #portfolio-selection { margin:6px 0 10px;font-size:13px;line-height:1.4; }
.mana-enquiry .hero-form-label,
.mana-enquiry .hero-enquiry-facts,
.mana-enquiry .hero-enquiry-details>p { display:none !important; }
.mana-enquiry.hero-enquiry-drawer .hero-enquiry-details { padding:0;border:0;margin:3px 0 0; }
.mana-enquiry.hero-enquiry-drawer .hero-enquiry-photo { height:120px;margin:0; }
.mana-enquiry.hero-enquiry-drawer .hero-enquiry-form { margin-top:0; }
.mana-enquiry[data-form-stage="otp"] .popup-benefits,
.mana-enquiry[data-form-stage="complete"] .popup-benefits,
.mana-enquiry[data-form-stage="otp"] .popup-config,
.mana-enquiry[data-form-stage="complete"] .popup-config,
.mana-enquiry[data-form-stage="otp"] .explorer-enquiry-config,
.mana-enquiry[data-form-stage="complete"] .explorer-enquiry-config,
.mana-enquiry[data-form-stage="otp"] .hero-enquiry-details,
.mana-enquiry[data-form-stage="complete"] .hero-enquiry-details { display:none !important; }
@media(max-width:700px) {
 html body dialog.mana-enquiry:not(.hero-enquiry-drawer),html body dialog.mana-enquiry.hero-enquiry-drawer,html body #enquiry-dialog.mana-enquiry {
  padding:23px 16px 5px !important;max-height:calc(100dvh - 20px) !important;
 }
 html body dialog.mana-enquiry h2,html body #enquiry-dialog.mana-enquiry #enquiry-title { font-size:23px !important;margin:6px 26px 10px 0;line-height:1.15;padding:0; }
 .rich-page dialog.mana-enquiry .popup-benefits { margin:11px 0 13px; }
 .popup-benefits li { min-height:52px;padding:8px;gap:7px; }
 .popup-benefit-icon { flex-basis:18px; }.popup-benefit-icon svg{width:18px;height:18px}
 .popup-benefit-copy strong { font-size:12px; }.popup-benefit-copy>span{font-size:10.5px;margin-top:2px}
 .mana-enquiry #selected-layout:not(.popup-selection-detail),
 .mana-enquiry #request-summary:not(.popup-selection-detail),
 .mana-enquiry #portfolio-selection,
 .mana-enquiry .explorer-enquiry-project,
 .mana-enquiry .hero-enquiry-details { display:none !important; }
 html body #enquiry-dialog.mana-enquiry .popup-config,html body dialog.mana-enquiry .popup-config,
 html body dialog.mana-enquiry .explorer-enquiry-config { margin:0 0 10px !important; }
 html body dialog.mana-enquiry .popup-config button,
 html body dialog.mana-enquiry .explorer-enquiry-config button { min-height:40px; }
 /* Mobile enquiries use the configuration carried by the selected CTA. */
 html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry).mana-enquiry :is(.popup-config,.explorer-enquiry-config) { display:none!important; }
 /* Keep complete highlights on one line; longer facts receive the space they need. */
 html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry).mana-enquiry[data-form-stage=details] .popup-benefits { display:flex!important;flex-wrap:wrap;gap:6px; }
 html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry).mana-enquiry .popup-benefits li { flex:1 1 auto;min-width:max-content;max-width:100%; }
 html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry).mana-enquiry .popup-benefits li:nth-child(-n+2) { flex-basis:calc(50% - 3px); }
 html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry).mana-enquiry .popup-benefit-copy strong { white-space:nowrap; }
}
@media(max-width:350px) {
 html body dialog.mana-enquiry:not(.hero-enquiry-drawer),html body dialog.mana-enquiry.hero-enquiry-drawer,html body #enquiry-dialog.mana-enquiry { padding-inline:12px !important; }
 .popup-benefits li { padding:8px 6px;gap:6px; }
 .popup-benefit-copy strong{font-size:11.5px}.popup-benefit-copy>span{font-size:10px}
}
@media(max-width:700px) and (max-height:650px) {
 .rich-page dialog.mana-enquiry .popup-benefits { margin:8px 0; }
 .popup-benefits li { min-height:48px;padding-block:6px; }
 html body #enquiry-dialog.mana-enquiry,html body dialog.mana-enquiry:not(.hero-enquiry-drawer) { padding-top:20px !important; }
}

/* Shared close controls: comfortable targets, no native button border. */
html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry,#rich-video-dialog,#gallery) .dialog-close,html body #plan-viewer .plan-viewer-close{
 display:grid!important;place-items:center;width:44px!important;height:44px!important;min-height:44px;padding:0!important;
 border:0!important;border-radius:50%!important;background:#eeece7!important;color:#37332f!important;box-shadow:none!important;outline:0!important;
}
html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry,#rich-video-dialog,#gallery) .dialog-close svg,html body #plan-viewer .plan-viewer-close svg{width:22px;height:22px;pointer-events:none}
html:not([data-mana-input=pointer]) body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry,#rich-video-dialog,#gallery) .dialog-close:focus-visible,html:not([data-mana-input=pointer]) body #plan-viewer .plan-viewer-close:focus-visible{outline:2px solid var(--rich-ink,#231f20)!important;outline-offset:3px;box-shadow:none!important}
@media(hover:hover){html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry,#rich-video-dialog,#gallery) .dialog-close:hover,html body #plan-viewer .plan-viewer-close:hover{background:#dfdcd5!important}}
html body dialog.mana-enquiry:focus{outline:0}
.mana-enquiry[data-popup-brand=trl]:not([data-popup-theme=solitaire]){--rich-accent:#ffcc02;--project-deep:#171717;--rich-label:#555;--rich-wash:#f2f2ef;--popup-button-text:#171717;--lp-body:'Manrope',sans-serif;--lp-heading:'Manrope',sans-serif}
body.rich-page header .header-visit,body.rich-page header .header-visit span{font-size:16px!important;font-weight:700;line-height:1.25}
@media(max-width:700px){body.rich-page header .header-visit,body.rich-page header .header-visit span{font-size:14px!important}body.rich-page header .header-visit{min-height:44px;padding:10px 12px}}
/* Switching projects must not briefly retain the previous project's colours. */
html body dialog.mana-enquiry .popup-config button,html body dialog.mana-enquiry .explorer-enquiry-config button{transition:none!important}
html body dialog#enquiry-dialog.mana-enquiry[data-form-stage=otp] .popup-config,
html body dialog#enquiry-dialog.mana-enquiry[data-form-stage=complete] .popup-config{display:none!important}

/* Beach's label sits inside a content wrapper; other projects use a direct child.
   Centre both against the heading, with equal clearance around the close button. */
html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry).mana-enquiry :is(.enquiry-brand,.eyebrow){display:block;width:auto;text-align:center!important;margin:0 44px 8px!important;padding:0}
html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry).mana-enquiry h2{width:auto;max-width:none;text-align:center!important;margin-inline:0!important;padding-inline:0!important}

/* Pointer actions do not show keyboard focus rings. Fields keep their own
   focus and validation borders, and intentional button borders stay intact. */
html[data-mana-input=pointer] body.rich-page :is(button,a,[role=button],.rich-rail):focus{outline:none!important}
html body.rich-page :is(button,a,[role=button],.rich-rail){-webkit-tap-highlight-color:transparent}

/* Mobile popup enquiries: retain highlight markup, hide it without keyboard JS. */
@media (max-width: 700px) {
 html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry).mana-enquiry[data-form-stage] .popup-benefits,
 html body dialog:is(#enquiry-dialog,#portfolio-dialog,#explorer-enquiry).mana-enquiry .popup-benefits { display:none!important; }
}
