/* =========================================================
   Engraving Studio (gpe-*) — one neutral plate for every product
   ========================================================= */
:root{
  --gpe-ink:#141414; --gpe-ink-2:#4a4a4a; --gpe-mute:#8a8a8a; --gpe-line:#e6e1d8;
  --gpe-gold:#a8803a; --gpe-gold-d:#8a6a2c; --gpe-cream:#faf8f4;
  --gpe-serif:'EB Garamond','GP Garamond',Georgia,serif; --gpe-sans:Inter,system-ui,-apple-system,sans-serif;
}
html body.gpe-modal-open{overflow:hidden!important}

/* -- product page card -- */
html body .gpe-card{margin:18px 0;border:1px solid var(--gpe-line);background:var(--gpe-cream);font-family:var(--gpe-sans)}
html body .gpe-card-btn{all:unset;box-sizing:border-box;width:100%;display:flex;align-items:center;gap:14px;padding:14px 16px;cursor:pointer}
html body .gpe-card-btn:hover{background:#f5f1ea}
html body .gpe-card-btn:focus-visible{outline:2px solid var(--gpe-gold);outline-offset:-2px}
html body .gpe-card-thumb{flex:0 0 46px;height:46px;border-radius:6px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#f3dfa6,#c89b45 55%,#e7c977);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 1px 2px rgba(0,0,0,.15);
  font-family:var(--gpe-serif);font-style:italic;font-size:19px;color:#6e4f17;text-shadow:0 1px 0 rgba(255,255,255,.55),0 -1px 0 rgba(0,0,0,.25)}
html body .gpe-card-txt{flex:1;min-width:0}
html body .gpe-card-title{display:block;font-size:14px;font-weight:600;color:var(--gpe-ink);letter-spacing:.01em}
html body .gpe-card-sub{display:block;font-size:12.5px;color:var(--gpe-ink-2);margin-top:2px;line-height:1.4}
html body .gpe-card-price{font-size:13px;color:var(--gpe-gold-d);font-weight:600;white-space:nowrap}
html body .gpe-card-arrow{font-size:18px;color:var(--gpe-mute);margin-left:2px}
html body .gpe-card.is-added{border-color:#cdb680;background:#fbf7ee}
html body .gpe-card-added{display:none;align-items:center;gap:10px;padding:0 16px 14px 76px;font-size:12.5px;color:var(--gpe-ink-2);flex-wrap:wrap}
html body .gpe-card.is-added .gpe-card-added{display:flex}
html body .gpe-card.is-added .gpe-card-sub{display:none}
html body .gpe-card.is-added .gpe-card-btn{padding-bottom:6px}
html body .gpe-card-added b{color:var(--gpe-ink);font-weight:600}
html body .gpe-link{all:unset;cursor:pointer;color:var(--gpe-gold-d);text-decoration:underline;text-underline-offset:2px;font-size:12.5px}

/* -- overlay / modal -- */
html body .gpe-overlay{position:fixed;inset:0;z-index:2147483646;background:rgba(10,10,10,.62);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
html body .gpe-overlay.is-open{display:flex;animation:gpeFade .2s ease}
@keyframes gpeFade{from{opacity:0}to{opacity:1}}
@keyframes gpeUp{from{transform:translateY(18px);opacity:0}to{transform:none;opacity:1}}
html body .gpe-modal{position:relative;background:#fff;width:980px;max-width:100%;max-height:calc(100vh - 48px);display:grid;grid-template-columns:1fr 1fr;
  box-shadow:0 30px 90px rgba(0,0,0,.4);font-family:var(--gpe-sans);color:var(--gpe-ink);animation:gpeUp .25s ease;overflow:hidden}
html body .gpe-close{all:unset;position:absolute;top:14px;right:14px;z-index:5;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  cursor:pointer;background:rgba(255,255,255,.92);color:var(--gpe-ink);font-size:22px;line-height:1;box-shadow:0 1px 4px rgba(0,0,0,.15)}
html body .gpe-close:focus-visible{outline:2px solid var(--gpe-gold)}

/* -- stage (left) -- */
html body .gpe-stage{position:relative;background:radial-gradient(120% 90% at 50% 40%,#2a2724 0%,#141312 60%,#0b0b0b 100%);display:flex;flex-direction:column;min-height:520px;overflow:auto}
html body .gpe-stage-top{padding:18px 20px 0;color:#cfc6b6;font-size:11px;letter-spacing:.16em;text-transform:uppercase}
html body .gpe-canvas{flex:1;display:flex;align-items:center;justify-content:center;padding:20px 28px}
html body .gpe-hint{text-align:center;color:#9d9486;font-size:12px;padding:0 24px 18px;line-height:1.5}

/* the neutral engraving plate: grows taller as lines are added */
html body .gpe-plate{--m1:#f4e0a6;--m2:#d9b866;--m3:#b88d3c;--m4:#ecd28f;--cut:#7a5716;--cutlo:rgba(60,40,5,.55);--cuthi:rgba(255,246,214,.85);
  position:relative;box-sizing:border-box;width:400px;max-width:100%;min-height:250px;padding:34px 30px;border-radius:16px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.07) 0 1px,rgba(0,0,0,.035) 1px 2px,rgba(255,255,255,0) 2px 3px),
    linear-gradient(115deg,var(--m1) 0%,var(--m2) 22%,var(--m4) 38%,var(--m3) 58%,var(--m2) 76%,var(--m1) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 -2px 3px rgba(0,0,0,.22),0 28px 50px rgba(0,0,0,.55),0 4px 10px rgba(0,0,0,.4)}
html body .gpe-plate::before{content:"";position:absolute;inset:12px;border-radius:9px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.16),inset 0 0 0 2px rgba(255,255,255,.3);pointer-events:none}
html body .gpe-plate[data-metal=rose]{--m1:#f7d9cb;--m2:#dca58f;--m3:#b97a64;--m4:#f0c3b0;--cut:#7c4433;--cutlo:rgba(70,25,15,.5);--cuthi:rgba(255,236,226,.85)}
html body .gpe-plate[data-metal=platinum]{--m1:#f7f8fa;--m2:#d3d6db;--m3:#a2a7ae;--m4:#e8eaee;--cut:#555a61;--cutlo:rgba(20,22,26,.5);--cuthi:rgba(255,255,255,.9)}
html body .gpe-plate-logo{display:none;max-width:52%;max-height:96px;object-fit:contain;filter:grayscale(1) contrast(1.6) brightness(.9);mix-blend-mode:multiply;opacity:.8}
html body .gpe-plate-logo.is-on{display:block}
html body .gpe-engr{display:flex;flex-direction:column;align-items:center;max-width:100%;color:var(--cut);font-size:34px;line-height:1.2;
  text-shadow:0 -1px 0 var(--cutlo),0 1px 0 var(--cuthi),0 0 1px rgba(0,0,0,.15)}
html body .gpe-engr span{display:block;white-space:nowrap}
html body .gpe-engr.is-placeholder{opacity:.45}

/* lettering styles: every style renders at the SAME size */
html body .gpe-f-Italic{font-family:var(--gpe-serif);font-style:italic;font-weight:600}
html body .gpe-f-Roman{font-family:var(--gpe-serif);font-weight:600;text-transform:uppercase;letter-spacing:.06em}
html body .gpe-f-Script{font-family:'Great Vibes',cursive}
html body .gpe-f-ChopinScript{font-family:'Pinyon Script',cursive}
html body .gpe-f-Regular{font-family:Montserrat,sans-serif;font-weight:600;letter-spacing:.03em}

/* -- controls (right) -- */
html body .gpe-panel{display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 48px)}
html body .gpe-scroll{overflow:auto;padding:30px 32px 10px;flex:1}
html body .gpe-eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--gpe-gold)}
html body .gpe-h{font-family:var(--gpe-serif);font-weight:500;font-size:31px;line-height:1.1;margin:6px 0 8px;color:var(--gpe-ink)}
html body .gpe-lede{font-size:14px;line-height:1.55;color:var(--gpe-ink-2);margin:0 0 22px}
html body .gpe-step{border-top:1px solid var(--gpe-line);padding:18px 0}
html body .gpe-step-h{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}
html body .gpe-step-n{font-family:var(--gpe-serif);font-size:15px;color:var(--gpe-gold);font-style:italic}
html body .gpe-step-t{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
html body .gpe-step-o{margin-left:auto;font-size:12px;color:var(--gpe-mute)}
html body .gpe-lines{display:grid;gap:8px}
html body .gpe-line{display:flex;gap:8px;align-items:center}
html body .gpe-field{position:relative;flex:1}
html body .gpe-input{width:100%;box-sizing:border-box;height:50px;border:1px solid #d9d3c8;background:#fff;padding:0 50px 0 16px;font-size:17px;font-family:var(--gpe-serif);color:var(--gpe-ink);border-radius:0;outline:none;transition:border-color .2s}
html body .gpe-input:focus{border-color:var(--gpe-gold);box-shadow:0 0 0 3px rgba(168,128,58,.12)}
html body .gpe-count{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:12px;color:var(--gpe-mute);font-variant-numeric:tabular-nums}
html body .gpe-count.is-low{color:#b5652b}
html body .gpe-line-x{all:unset;cursor:pointer;flex:0 0 36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gpe-mute);font-size:20px;border:1px solid var(--gpe-line)}
html body .gpe-line-x:hover{color:#a4442b;border-color:#e3c3b8}
html body .gpe-line-x:focus-visible{outline:2px solid var(--gpe-gold)}
html body .gpe-line:only-child .gpe-line-x{display:none}
html body .gpe-addline{all:unset;cursor:pointer;margin-top:10px;display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--gpe-gold-d)}
html body .gpe-addline span{width:24px;height:24px;border-radius:50%;border:1px solid #cdb680;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:400}
html body .gpe-addline:hover{color:var(--gpe-ink)}
html body .gpe-addline:focus-visible{outline:2px solid var(--gpe-gold);outline-offset:3px}
html body .gpe-ideas{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
html body .gpe-idea{all:unset;cursor:pointer;font-size:12px;padding:5px 10px;border:1px solid var(--gpe-line);color:var(--gpe-ink-2);border-radius:20px}
html body .gpe-idea:hover{border-color:var(--gpe-gold);color:var(--gpe-gold-d)}
html body .gpe-metal-row{display:flex;align-items:center;gap:8px;margin-top:16px;flex-wrap:wrap}
html body .gpe-metal-l{font-size:12px;color:var(--gpe-mute);margin-right:4px}
html body .gpe-metal{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px 0 6px;border:1px solid var(--gpe-line);border-radius:20px;font-size:12.5px;color:var(--gpe-ink-2);background:#fff}
html body .gpe-metal i{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
html body .gpe-metal[data-metal=gold] i{background:linear-gradient(135deg,#f6e2a8,#c9a04a)}
html body .gpe-metal[data-metal=rose] i{background:linear-gradient(135deg,#f6d2c2,#c88b74)}
html body .gpe-metal[data-metal=platinum] i{background:linear-gradient(135deg,#f2f3f5,#a9adb3)}
html body .gpe-metal:hover{border-color:#bfa877}
html body .gpe-metal.is-active{border-color:var(--gpe-ink);color:var(--gpe-ink);box-shadow:inset 0 0 0 1px var(--gpe-ink)}
html body .gpe-metal:focus-visible{outline:2px solid var(--gpe-gold);outline-offset:2px}
html body .gpe-mnote{display:none;font-size:11.5px;color:var(--gpe-mute);margin-top:8px;line-height:1.45}
html body .gpe-fonts{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
html body .gpe-font{all:unset;box-sizing:border-box;cursor:pointer;border:1px solid #ddd6ca;padding:12px 10px 9px;text-align:center;background:#fff;transition:border-color .15s,box-shadow .15s}
html body .gpe-font:hover{border-color:#bfa877}
html body .gpe-font.is-active{border-color:var(--gpe-ink);box-shadow:inset 0 0 0 1px var(--gpe-ink)}
html body .gpe-font:focus-visible{outline:2px solid var(--gpe-gold);outline-offset:2px}
html body .gpe-font-s{display:block;font-size:20px;color:var(--gpe-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
html body .gpe-font-n{display:block;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--gpe-mute);margin-top:4px}
html body .gpe-drop{display:flex;align-items:center;gap:14px;border:1px dashed #cfc4ae;padding:14px 16px;cursor:pointer;background:var(--gpe-cream);transition:border-color .2s,background .2s}
html body .gpe-drop:hover,html body .gpe-drop.is-over{border-color:var(--gpe-gold);background:#f6f0e3}
html body .gpe-drop:focus-visible{outline:2px solid var(--gpe-gold);outline-offset:2px}
html body .gpe-drop-ic{flex:0 0 44px;height:44px;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--gpe-gold);font-size:18px;box-shadow:0 0 0 1px var(--gpe-line);overflow:hidden}
html body .gpe-drop-ic img{width:100%;height:100%;object-fit:contain}
html body .gpe-drop-body{flex:1;min-width:0}
html body .gpe-drop-t{display:block;font-size:13.5px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .gpe-drop-s{display:block;font-size:12px;color:var(--gpe-mute);margin-top:2px}
html body .gpe-drop-x{display:none}
html body .gpe-drop.has-file .gpe-drop-x{display:inline}
html body .gpe-warn{display:flex;gap:10px;margin-top:10px;padding:11px 13px;background:#fbf4e6;border-left:3px solid #c9a04a;font-size:12.5px;line-height:1.5;color:#5b4a2a}
html body .gpe-warn b{color:#3e3018}
html body .gpe-warn-ic{flex:0 0 18px;height:18px;border-radius:50%;background:#c9a04a;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}
html body .gpe-dyi-l{display:block;margin-top:10px;font-size:12px;color:var(--gpe-mute)}
html body .gpe-dyi-l a{color:var(--gpe-gold-d)}
html body .gpe-info{border-top:1px solid var(--gpe-line)}
html body .gpe-info summary{list-style:none;cursor:pointer;padding:16px 0;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;display:flex;justify-content:space-between}
html body .gpe-info summary::-webkit-details-marker{display:none}
html body .gpe-info summary::after{content:"+";font-weight:400;font-size:18px;color:var(--gpe-gold)}
html body .gpe-info[open] summary::after{content:"–"}
html body .gpe-how{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:12px}
html body .gpe-how li{display:grid;grid-template-columns:28px 1fr;gap:10px;font-size:13px;line-height:1.5;color:var(--gpe-ink-2)}
html body .gpe-how li span{font-family:var(--gpe-serif);font-style:italic;color:var(--gpe-gold);font-size:17px}
html body .gpe-how b{color:var(--gpe-ink);font-weight:600}
html body .gpe-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--gpe-line);border:1px solid var(--gpe-line);margin:4px 0 18px}
html body .gpe-facts div{background:#fff;padding:11px 12px;font-size:12.5px;line-height:1.45;color:var(--gpe-ink-2)}
html body .gpe-facts b{display:block;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--gpe-mute);font-weight:500;margin-bottom:3px}
html body .gpe-foot{border-top:1px solid var(--gpe-line);padding:16px 32px 20px;display:flex;align-items:center;gap:14px;background:#fff}
html body .gpe-total{flex:1;min-width:0}
html body .gpe-total small{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--gpe-mute)}
html body .gpe-total strong{font-family:var(--gpe-serif);font-size:22px;font-weight:500}
html body .gpe-btn{all:unset;box-sizing:border-box;cursor:pointer;height:50px;padding:0 26px;display:inline-flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;transition:background .2s,opacity .2s}
html body .gpe-btn-primary{background:var(--gpe-ink);color:#fff}
html body .gpe-btn-primary:hover{background:#2c2c2c}
html body .gpe-btn-primary[aria-disabled=true]{opacity:.35;cursor:not-allowed}
html body .gpe-btn-ghost{color:var(--gpe-ink-2);padding:0 8px;text-decoration:underline;text-underline-offset:3px;text-transform:none;letter-spacing:0;font-weight:500;font-size:13px}
html body .gpe-btn:focus-visible{outline:2px solid var(--gpe-gold);outline-offset:2px}

@media(max-width:1000px){html body .gpe-plate{width:340px}}
@media(max-width:820px){
  html body .gpe-overlay{padding:0;align-items:flex-end}
  html body .gpe-modal{grid-template-columns:1fr;grid-template-rows:auto 1fr;width:100%;max-height:100dvh;height:100dvh}
  html body .gpe-panel{max-height:none;min-height:0;overflow:hidden}
  html body .gpe-stage{min-height:0;height:auto;max-height:42dvh;padding-bottom:18px}
  html body .gpe-stage-top{padding:14px 16px 0}
  html body .gpe-canvas{padding:14px 20px 0}
  html body .gpe-hint{display:none}
  html body .gpe-plate{width:min(76vw,300px);min-height:170px;padding:22px 18px;gap:8px;border-radius:12px}
  html body .gpe-plate::before{inset:8px;border-radius:7px}
  html body .gpe-plate-logo{max-height:60px}
  html body .gpe-scroll{padding:20px 16px 8px}
  html body .gpe-h{font-size:25px}
  html body .gpe-lede{font-size:13.5px;margin-bottom:12px}
  html body .gpe-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  html body .gpe-btn{padding:0 18px}
  html body .gpe-fonts{grid-template-columns:repeat(2,1fr)}
  html body .gpe-close{top:10px;right:10px}
  html body .gpe-metal-row{flex-wrap:nowrap;gap:6px}
  html body .gpe-metal-l{display:none}
  html body .gpe-metal{padding:0 10px 0 5px;font-size:12px;gap:5px;flex:1;justify-content:center}
  html body .gpe-metal i{width:18px;height:18px}
  html body .gpe-mnote{display:block}
}
@media(prefers-reduced-motion:reduce){html body .gpe-overlay.is-open,html body .gpe-modal{animation:none}}

/* v4.0.1: hold layout against theme button/input rules (Woodmart sets button{position:relative}, input heights) */
html body .gpe-modal .gpe-close{position:absolute!important;top:14px!important;right:14px!important;left:auto!important;margin:0!important;padding:0!important;min-height:0!important;width:38px!important;height:38px!important}
html body .gpe-modal .gpe-input{height:50px!important;padding:0 50px 0 16px!important;border-radius:0!important;margin:0!important;box-shadow:none}
html body .gpe-modal .gpe-input:focus{box-shadow:0 0 0 3px rgba(168,128,58,.12)}
html body .gpe-modal button{min-height:0}
@media(max-width:820px){
  html body .gpe-modal{display:flex!important;flex-direction:column}
  html body .gpe-stage{flex:0 0 auto}
  html body .gpe-panel{flex:1 1 auto}
  html body .gpe-modal .gpe-close{top:10px!important;right:10px!important}
}
