/* Gracia Makeovers door designer, v7: a quiet configurator.
   The door is the hero on a soft studio backdrop; a calm panel on the right scrolls on its own,
   with the current choice beside each heading and one clear action pinned to the bottom. */
.gm-door{--ink:#171A20;--sub:#5C5E62;--faint:#8E9196;--line:#E8E8E8;--soft:#F4F4F4;--ring:#171A20;--accent:#21B8CF;
  font-family:Poppins,ui-sans-serif,system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
.gm-door *{box-sizing:border-box}
.elementor-widget-html:has(.gm-door){width:100%;max-width:1240px;align-self:center}
.gm-door{width:100%}
.gm-door [hidden]{display:none !important}

/* Frame */
.gmd-wrap{display:grid;grid-template-columns:minmax(0,1fr) 440px;height:min(780px,calc(100vh - 80px));min-height:640px;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 40px 80px -40px rgba(0,0,0,.6)}

/* Stage */
.gmd-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:36px 32px 28px;
  background:radial-gradient(90% 70% at 50% 45%,#FBFBFA 0%,#EFEFEC 55%,#E3E3DF 100%)}
.gmd-stagehead{position:absolute;top:34px;left:0;right:0;text-align:center;padding:0 24px}
.gm-door .gmd-doorname{margin:0;font-size:30px;line-height:1.15;font-weight:500;letter-spacing:-.4px;color:var(--ink);text-transform:none}
.gmd-caption{margin:8px 0 0;font-size:14px;font-weight:400;color:var(--sub)}
.gmd-door{height:min(500px,62%);width:auto;aspect-ratio:400/640;margin-top:70px;filter:drop-shadow(0 34px 26px rgba(23,26,32,.20)) drop-shadow(0 6px 8px rgba(23,26,32,.10))}
.gmd-door svg{width:100%;height:100%;display:block;border-radius:2px}
.gmd-door{position:relative;z-index:1}
.gmd-fine{position:absolute;left:24px;right:24px;bottom:18px;margin:0;font-size:11.5px;color:var(--faint);text-align:center;line-height:1.5}
.gm-door .gmd-anim svg{animation:gmdIn .45s cubic-bezier(.2,.7,.2,1)}
@keyframes gmdIn{from{opacity:.4;transform:translateY(6px) scale(.99)}to{opacity:1;transform:none}}

/* Panel */
.gmd-controls{display:flex;flex-direction:column;min-height:0;background:#fff;border-left:1px solid var(--line)}
.gmd-steps{flex:1;min-height:0;overflow-y:auto;padding:34px 34px 24px;display:flex;flex-direction:column;gap:34px;scrollbar-width:thin;scrollbar-color:#D0D0D0 transparent}
.gmd-intro{display:flex;flex-direction:column;gap:4px}
.gm-door .gmd-kicker{margin:0;font-size:12px;font-weight:500;letter-spacing:1.4px;text-transform:uppercase;color:var(--faint)}
.gm-door .gmd-h{margin:0;font-size:26px;line-height:1.2;font-weight:500;letter-spacing:-.3px;color:var(--ink);text-transform:none}
.gmd-step{display:flex;flex-direction:column;gap:16px}
.gmd-steph{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.gm-door .gmd-steph h3{margin:0;font-size:17px;font-weight:500;letter-spacing:-.1px;color:var(--ink);text-transform:none}
.gmd-val{font-size:13.5px;color:var(--sub);text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Buttons: neutralise the theme */
.gm-door button,.gm-door button:hover,.gm-door button:focus,.gm-door button:active{font-family:inherit;cursor:pointer;background-color:transparent;color:var(--ink);text-transform:none;letter-spacing:normal;line-height:1.3;white-space:normal;box-shadow:none;text-decoration:none;font-weight:inherit;min-height:0;margin:0}
.gm-door button:focus-visible,.gm-door a:focus-visible,.gm-door input:focus-visible{outline:2px solid var(--ring);outline-offset:3px}

/* Style: doors only, the name sits in the header */
.gmd-styles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 4px}
.gm-door .gmd-style,.gm-door .gmd-style:hover,.gm-door .gmd-style:focus{border:0;border-radius:10px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:0;background:transparent;transition:background-color .2s}
.gm-door .gmd-style:hover{background:var(--soft)}
.gmd-mini{width:40px;aspect-ratio:400/640;display:block;border-radius:2px;transition:box-shadow .2s}
.gmd-mini svg{width:100%;height:100%;display:block}
.gm-door .gmd-style[aria-pressed="true"]{background:var(--soft)}
.gm-door .gmd-style[aria-pressed="true"] .gmd-mini{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ring)}
.gmd-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gm-door .gmd-style.gmd-off{opacity:.25;cursor:not-allowed}
.gm-door .gmd-stylenote{margin-top:10px}

/* Material: one segmented control, then swatches */
.gmd-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--soft);border-radius:10px;padding:4px}
.gm-door .gmd-seg button{white-space:nowrap;border:0;border-radius:7px;padding:9px 2px;font-size:12.5px;font-weight:500;color:var(--sub);text-align:center;transition:background-color .2s,color .2s}
.gm-door .gmd-seg button[aria-selected="true"]{background-color:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.10)}
.gmd-matbody{display:flex;flex-direction:column;gap:14px;margin-top:18px}
.gmd-swatches{display:flex;flex-wrap:wrap;gap:12px}
.gm-door .gmd-sw,.gm-door .gmd-sw:hover,.gm-door .gmd-sw:focus{border:0;padding:0;background:transparent;display:block}
.gmd-chip{display:block;width:40px;height:40px;border-radius:50%;background-size:cover;background-position:center;box-shadow:inset 0 0 0 1px rgba(0,0,0,.10);transition:box-shadow .2s,transform .2s}
.gm-door .gmd-sw:hover .gmd-chip{transform:scale(1.06)}
.gm-door .gmd-sw[aria-pressed="true"] .gmd-chip{box-shadow:inset 0 0 0 1px rgba(0,0,0,.10),0 0 0 2px #fff,0 0 0 4px var(--ring)}
.gm-door .gmd-sw-img .gmd-chip{width:56px;height:56px}
.gmd-swl,.gmd-sws{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gmd-brands{display:flex;flex-wrap:wrap;gap:6px}
.gm-door .gmd-brands button{border:1px solid var(--line);background-color:#fff;border-radius:999px;padding:7px 14px;font-size:12.5px;color:var(--sub);transition:all .2s}
.gm-door .gmd-brands button[aria-pressed="true"]{border-color:var(--ink);color:var(--ink);font-weight:500}
.gm-door .gmd-search,.gm-door .gmd-text{width:100%;border:0;border-radius:10px;padding:12px 14px;font:inherit;font-size:14px;color:var(--ink);background:var(--soft);outline:none}
.gm-door .gmd-search:focus,.gm-door .gmd-text:focus{box-shadow:0 0 0 2px var(--ring)}
.gm-door .gmd-scroll{max-height:220px;overflow-y:auto;padding:6px 4px;scrollbar-width:thin}
.gmd-paint{gap:10px}
.gm-door .gmd-paint .gmd-chip{width:36px;height:36px}
.gm-door .gmd-empty{width:100%}
.gmd-note{margin:0;font-size:12.5px;color:var(--faint);line-height:1.55}
.gm-door .gmd-count{margin:-4px 0 0}
.gm-door .gmd-custom{border-top:1px solid var(--line);padding-top:16px;display:flex;flex-direction:column;gap:10px}
.gm-door .gmd-customh{margin:0;font-size:14px;font-weight:500;color:var(--ink)}
.gm-door .gmd-customrow{display:flex;gap:10px;align-items:center}
.gm-door .gmd-customrow input[type=color]{width:44px;height:44px;border:0;border-radius:50%;padding:0;background:none;cursor:pointer;flex:0 0 auto}
.gm-door .gmd-hex{max-width:150px;font-family:ui-monospace,Menlo,monospace;font-size:13px}

/* Box */
.gmd-boxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gm-door .gmd-box,.gm-door .gmd-box:hover,.gm-door .gmd-box:focus{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border:1px solid var(--line);border-radius:12px;background-color:#fff;overflow:hidden;text-align:left;transition:border-color .2s,box-shadow .2s}
.gm-door .gmd-box:hover{border-color:#C9C9C9}
.gm-door .gmd-box[aria-pressed="true"]{border-color:var(--ring);box-shadow:0 0 0 1px var(--ring)}
.gmd-box img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#fff}
.gmd-boxtext{display:flex;flex-direction:column;gap:2px;padding:10px 12px 12px}
.gmd-boxname{font-size:14px;font-weight:500;color:var(--ink)}
.gmd-boxdesc{display:none}
.gm-door .gmd-tag{align-self:flex-start;font-size:11px;font-weight:500;letter-spacing:.3px;text-transform:none;color:var(--sub);background:none;padding:0;border-radius:0}

/* Footer: summary + one action */
.gmd-final{flex:none;border-top:1px solid var(--line);padding:18px 34px 20px;display:flex;flex-direction:column;gap:12px;background:#fff}
.gmd-final.gmd-open{flex:1;overflow-y:auto;border-top:0;padding-top:30px}
.gm-door .gmd-sumk{margin:0;font-size:11.5px;letter-spacing:1.2px;text-transform:uppercase;color:var(--faint)}
.gm-door .gmd-sumtext{margin:2px 0 0;font-size:14.5px;font-weight:500;color:var(--ink);line-height:1.4}
.gmd-summary{display:flex;flex-direction:column}
.gmd-ctas{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gm-door .gmd-cta,.gm-door button.gmd-cta,.gm-door button.gmd-cta:hover,.gm-door button.gmd-cta:focus{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 12px;border:0;border-radius:8px;background-color:var(--ink);color:#fff !important;font-size:13.5px;white-space:nowrap;font-weight:500;text-decoration:none !important;transition:background-color .2s}
.gm-door .gmd-cta:hover,.gm-door button.gmd-cta:hover{background-color:#000}
.gm-door .gmd-cta-alt,.gm-door a.gmd-cta-alt:hover{background-color:var(--soft) !important;color:var(--ink) !important}
.gm-door .gmd-cta-alt:hover{background-color:#EBEBEB !important}
.gm-door .gmd-trust{margin:0;font-size:12px;color:var(--faint);text-align:center}
.gm-door button.gmd-cta:disabled{opacity:.6;cursor:wait}

/* Quote steps (panel takes over) */
.gm-door .gmd-fhead{display:flex;justify-content:space-between;align-items:center;gap:10px}
.gm-door .gmd-back,.gm-door .gmd-back:hover,.gm-door .gmd-back:focus{border:0;padding:4px 0;font-size:13px;font-weight:500;color:var(--sub);align-self:flex-start}
.gm-door .gmd-back:hover{color:var(--ink)}
.gm-door .gmd-progress{font-size:12px;font-weight:500;letter-spacing:1px;text-transform:uppercase;color:var(--faint)}
.gm-door .gmd-bar{height:3px;border-radius:99px;background:var(--soft);overflow:hidden}
.gm-door .gmd-bar span{display:block;height:100%;background:var(--ink);border-radius:99px;transition:width .3s ease}
.gm-door .gmd-yourdoor{display:flex;align-items:center;gap:14px;background:var(--soft);border-radius:12px;padding:10px 14px}
.gm-door .gmd-yourdoor-mini{width:30px;aspect-ratio:400/640;flex:0 0 auto}
.gm-door .gmd-yourdoor-mini svg{width:100%;height:100%;display:block}
.gm-door .gmd-yourdoor > span{display:flex;flex-direction:column;gap:2px;min-width:0}
.gm-door .gmd-yourdoor-t{font-size:13.5px;font-weight:500;color:var(--ink);line-height:1.35}
.gm-door .gmd-fh{margin:8px 0 0;font-size:22px;font-weight:500;letter-spacing:-.2px;color:var(--ink);text-transform:none;line-height:1.25}
.gm-door .gmd-field{display:flex;flex-direction:column;gap:8px}
.gm-door .gmd-flabel{font-size:12.5px;font-weight:500;color:var(--sub)}
.gm-door .gmd-chips{display:flex;flex-wrap:wrap;gap:8px}
.gm-door .gmd-chips button,.gm-door .gmd-chips button:hover,.gm-door .gmd-chips button:focus{border:1px solid var(--line);background-color:#fff;border-radius:999px;padding:9px 14px;font-size:13.5px;color:var(--ink)}
.gm-door .gmd-chips button:hover{border-color:#C9C9C9}
.gm-door .gmd-chips button[aria-checked="true"]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.gm-door .gmd-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gm-door .gmd-wide{width:100%}
.gm-door .gmd-error{margin:0;font-size:13px;color:#B42318}
.gm-door .gmd-error:empty{display:none}
.gm-door .gmd-fine2{margin:0;font-size:12px;color:var(--faint);text-align:center}
.gm-door .gmd-check{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--ink);font-size:24px;font-weight:500}

/* Tablet and phone: door on top, panel below, action pinned to the screen */
@media (max-width:980px){
  .gmd-wrap{grid-template-columns:1fr;height:auto;min-height:0}
  .gmd-stage{padding:28px 20px 22px}
  .gmd-stagehead{position:static;padding:0 0 8px}
  .gm-door .gmd-doorname{font-size:24px}
  .gmd-door{height:auto;width:min(210px,52vw);margin-top:16px}
  .gmd-fine{position:static;margin-top:20px}
  .gmd-controls{border-left:0;border-top:1px solid var(--line)}
  .gmd-steps{overflow:visible;padding:26px 20px 18px;gap:28px}
  .gmd-final{position:sticky;bottom:0;z-index:5;padding:14px 20px 16px;box-shadow:0 -10px 30px -18px rgba(0,0,0,.35)}
  .gmd-final.gmd-open{position:static;box-shadow:none;padding:24px 20px}
  .gmd-final .gmd-summary,.gmd-final .gmd-trust{display:none}
  .gmd-final.gmd-open .gmd-summary{display:flex}
  .gmd-styles{grid-template-columns:repeat(5,minmax(0,1fr))}
  .gm-door .gmd-row2{grid-template-columns:1fr}
}
@media (max-width:600px){.gmd-seg{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.gm-door .gmd-seg button{white-space:normal;padding:10px 6px;font-size:13px}}
@media (prefers-reduced-motion:reduce){.gm-door *{transition:none !important;animation:none !important}}

/* ── Mobile fixes (2026-10-14): 13px text floor, 44px tap targets ── */
.gmd-fine{font-size:13px}
.gm-door .gmd-tag{font-size:13px}
.gm-door .gmd-sumk{font-size:13px}
.gm-door .gmd-seg button{min-height:44px}
.gm-door .gmd-brands button{min-height:44px}
