/* Landing-page engraving popup. Layout mirrors the product-page popup; colours/type follow the landing page tokens. */
.rlpe-modal{
  --rlpe-ink:var(--text,#1C2025);
  --rlpe-body:var(--body,#3E4248);
  --rlpe-muted:var(--muted,#62666D);
  --rlpe-accent:var(--crown,#F2B51C);
  --rlpe-accent-deep:var(--crown-deep,#C98F00);
  --rlpe-accent-text:var(--crown-text,#946700);
  --rlpe-accent-bg:rgba(242,181,28,.12);
  --rlpe-cream:var(--ink-2,#F5F4F1);
  --rlpe-line:var(--line,#E3E1DC);
  --rlpe-font:var(--sans,"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif);
  --rlpe-r:12px;
  --rlpe-ease:cubic-bezier(.32,.72,0,1);
  position:fixed;inset:0;z-index:999999;display:flex;align-items:flex-end;justify-content:center;
  font-family:var(--rlpe-font);color:var(--rlpe-ink);
}
.rlpe-modal[hidden],.rlpe-lightbox[hidden],.rlpe-modal [hidden]{display:none!important}
html.rlpe-lock,html.rlpe-lock body{overflow:hidden}
.rlpe-modal *{box-sizing:border-box}
.rlpe-modal svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rlpe-overlay{position:absolute;inset:0;background:rgba(17,19,22,.6);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}

.rlpe-sheet{position:relative;z-index:1;width:100%;max-width:980px;max-height:92dvh;display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border-radius:20px 20px 0 0;animation:rlpe-up .38s var(--rlpe-ease) both}
@keyframes rlpe-up{from{transform:translateY(100%);opacity:0}to{transform:none;opacity:1}}
@keyframes rlpe-fade{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
@media (min-width:769px){
  .rlpe-modal{align-items:center;padding:24px}
  .rlpe-sheet{border-radius:var(--rlpe-r);max-height:88vh;animation:rlpe-fade .22s ease both}
}
@media (prefers-reduced-motion:reduce){.rlpe-sheet{animation:none}}

.rlpe-handle{display:flex;justify-content:center;padding:10px 0 4px;background:var(--rlpe-ink)}
.rlpe-handle span{width:36px;height:4px;border-radius:2px;background:rgba(255,255,255,.3)}
@media (min-width:769px){.rlpe-handle{display:none}}

.rlpe-header{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px 60px 16px;background:var(--rlpe-ink);color:#fff;flex-shrink:0}
.rlpe-header h2{margin:0;font:700 clamp(17px,4vw,21px)/1.2 var(--rlpe-font);letter-spacing:-.01em;color:#fff}
.rlpe-header p{margin:3px 0 0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--rlpe-accent)}
.rlpe-close{position:absolute;top:50%;right:14px;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;transition:background .2s}
.rlpe-close:hover{background:rgba(255,255,255,.28)}
.rlpe-close svg{width:16px;height:16px;stroke-width:2.5}

.rlpe-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px;padding:12px 16px;background:var(--rlpe-cream);border-bottom:1px solid var(--rlpe-line);flex-shrink:0}
.rlpe-tab{display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 8px;border:1.5px solid var(--rlpe-line);border-radius:8px;background:#fff;color:var(--rlpe-ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.rlpe-tab:hover,.rlpe-tab.is-active{border-color:var(--rlpe-accent-deep);background:var(--rlpe-accent-bg)}
.rlpe-tab-ico svg{display:block;width:20px;height:20px}
.rlpe-tab-info{display:flex;flex-direction:column;line-height:1.2}
.rlpe-tab-name{font-size:13px;font-weight:700}
.rlpe-tab-price{font-size:12px;font-weight:700;color:var(--rlpe-accent-text)}
.rlpe-tab-price s{font-weight:500;color:var(--rlpe-muted);margin-right:3px}
@media (min-width:769px){.rlpe-tabs{padding:14px 28px}.rlpe-tab{padding:12px 16px}}

.rlpe-body{display:flex;flex-direction:column;flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media (min-width:769px){.rlpe-body{flex-direction:row}}

.rlpe-preview{display:flex;flex-direction:column;align-items:center;padding:24px 16px 16px;background:var(--rlpe-cream);border-bottom:1px solid var(--rlpe-line)}
@media (min-width:769px){.rlpe-preview{width:330px;flex-shrink:0;align-self:stretch;padding:32px 24px;border-bottom:0;border-right:1px solid var(--rlpe-line)}}
.rlpe-watch{position:relative;display:inline-block}
.rlpe-caseback{display:block;width:240px;height:240px;object-fit:cover;border-radius:50%;border:2px solid #ddd}
.rlpe-watch-svg{display:block;width:240px;height:300px;stroke:none}
@media (min-width:769px){.rlpe-caseback{width:280px;height:280px}.rlpe-watch-svg{width:280px;height:340px}}
.rlpe-overlay-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:120px;height:120px;display:flex;align-items:center;justify-content:center}
#rlpe-text-preview{max-width:100%;font-family:Arial,Helvetica,sans-serif;font-size:8px;line-height:1.3;text-align:center;white-space:pre-wrap;overflow-wrap:break-word;color:#fff;text-shadow:0 0 6px rgba(0,0,0,.6);transition:font-size .2s}
.rlpe-watch.is-svg #rlpe-text-preview{color:#333;text-shadow:none}
.rlpe-preview-img{max-width:80px;max-height:80px;object-fit:contain;filter:brightness(.25);opacity:.85}
.rlpe-label{margin-top:10px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--rlpe-muted)}

.rlpe-examples{width:100%;margin-top:16px}
.rlpe-examples .rlpe-label{margin:0 0 8px}
.rlpe-examples-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.rlpe-example{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:0;border:0;background:none;font:inherit;cursor:pointer}
.rlpe-example img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;border:1.5px solid var(--rlpe-line);transition:border-color .2s,transform .15s}
.rlpe-example:hover img,.rlpe-example.is-active img{border-color:var(--rlpe-accent-deep);transform:scale(1.05)}
.rlpe-example span{width:100%;font-size:10px;line-height:1.2;color:var(--rlpe-muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.rlpe-controls{flex:1;padding:20px 16px}
@media (min-width:769px){.rlpe-controls{padding:28px 32px}}
.rlpe-panel{display:none}
.rlpe-panel.is-active{display:block}
.rlpe-field{margin-bottom:18px}
.rlpe-flabel{display:block;margin-bottom:8px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.rlpe-input{width:100%;padding:13px 15px;border:1.5px solid var(--rlpe-line);border-radius:8px;background:#fff;color:var(--rlpe-ink);font:400 16px/1.5 var(--rlpe-font);transition:border-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none}
.rlpe-input:focus{outline:none;border-color:var(--rlpe-accent-deep);box-shadow:0 0 0 3px var(--rlpe-accent-bg)}
textarea.rlpe-input{min-height:72px;resize:vertical}
.rlpe-select{padding-right:36px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2362666D' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center/12px 8px}
.rlpe-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rlpe-char-row{display:flex;justify-content:space-between;margin-top:7px;font-size:12px;color:var(--rlpe-muted)}
.rlpe-char-count{font-weight:700;color:var(--rlpe-ink)}
.rlpe-char-count.is-warn{color:#C53030}
.rlpe-hint{margin:4px 0 0;font-size:12px;font-style:italic;color:var(--rlpe-muted)}

.rlpe-upload{display:block;width:100%;padding:28px 20px;border:2px dashed var(--rlpe-line);border-radius:8px;background:var(--rlpe-cream);color:var(--rlpe-muted);font:400 14px/1.5 var(--rlpe-font);text-align:center;cursor:pointer;transition:border-color .2s,background .2s}
.rlpe-upload:hover,.rlpe-upload.is-drag{border-color:var(--rlpe-accent-deep);background:var(--rlpe-accent-bg)}
.rlpe-upload svg{display:block;width:34px;height:34px;margin:0 auto 10px;color:var(--rlpe-ink)}
.rlpe-upload strong{color:var(--rlpe-ink);font-size:15px}
.rlpe-progress{margin-top:14px}
.rlpe-progress-track{height:6px;border-radius:3px;background:var(--rlpe-line);overflow:hidden}
#rlpe-progress-fill{width:0;height:100%;background:var(--rlpe-accent);transition:width .3s}
#rlpe-progress-label{margin-top:5px;font-size:12px;text-align:center;color:var(--rlpe-muted)}
.rlpe-img-result{margin-top:14px;text-align:center}
.rlpe-img-result img{display:block;max-width:160px;max-height:160px;margin:0 auto 10px;border-radius:8px;border:2px solid var(--rlpe-line)}
.rlpe-remove{padding:7px 16px;border:1.5px solid #C53030;border-radius:6px;background:none;color:#C53030;font:600 13px/1 var(--rlpe-font);cursor:pointer}
.rlpe-remove:hover{background:#C53030;color:#fff}
.rlpe-tips{margin-top:16px;padding:14px;border-radius:8px;background:var(--rlpe-cream);font-size:13px;line-height:1.7;color:var(--rlpe-muted)}
.rlpe-tips strong{display:block;margin-bottom:4px;color:var(--rlpe-ink)}
.rlpe-callout{margin-top:14px;padding:14px 16px;border-radius:8px;background:var(--rlpe-accent-bg);border:1.5px solid rgba(201,143,0,.3);font-size:13px;line-height:1.6}
.rlpe-callout strong{color:var(--rlpe-accent-text)}

.rlpe-divider{margin:20px 0;border:0;border-top:1px solid var(--rlpe-line)}
.rlpe-reviews{display:flex;align-items:center;gap:10px;padding:0 0 12px;font-size:13px;color:var(--rlpe-muted)}
.rlpe-reviews strong{color:var(--rlpe-ink)}
.rlpe-stars{color:var(--rlpe-accent);font-size:16px;letter-spacing:1px}
.rlpe-notes{font-size:13px;line-height:1.7;color:var(--rlpe-muted)}
.rlpe-notes p{margin:0 0 8px}
.rlpe-notes a{color:var(--rlpe-accent-text)}

.rlpe-error{margin:0;padding:10px 16px;background:#FFF1F1;border-top:1px solid #F3C7C7;color:#9B2C2C;font-size:14px;flex-shrink:0}
.rlpe-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--rlpe-line);background:#fff;flex-shrink:0}
@media (min-width:769px){.rlpe-footer{padding:16px 28px}}
.rlpe-total{display:flex;flex-direction:column;min-width:0}
.rlpe-total-label{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--rlpe-muted)}
.rlpe-total-amount{font:800 26px/1.1 var(--rlpe-font);font-variant-numeric:tabular-nums}
.rlpe-total-sub{font-size:12px;color:var(--rlpe-muted)}
.rlpe-cta{flex:1;max-width:280px;min-height:54px;padding:0 20px;border:0;border-radius:2px;background:var(--rlpe-accent);color:#111;font:700 16px/1 var(--rlpe-font);cursor:pointer;transition:background .2s,transform .1s}
.rlpe-cta:hover{background:#FFC93A}
.rlpe-cta:active{transform:scale(.98)}
.rlpe-cta:disabled{opacity:.6;cursor:progress}
.rlpe-modal button:focus-visible,.rlpe-lightbox button:focus-visible{outline:2px solid var(--rlpe-accent-deep);outline-offset:2px}

/* Lightbox for examples, above the popup */
.rlpe-lightbox{position:fixed;inset:0;z-index:1000001;display:flex;align-items:center;justify-content:center}
.rlpe-lightbox svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.rlpe-lb-overlay{position:absolute;inset:0;background:rgba(0,0,0,.92)}
.rlpe-lb-img{position:relative;z-index:1;max-width:80vw;max-height:80vh;object-fit:contain;border-radius:10px;box-shadow:0 24px 60px rgba(0,0,0,.6);transition:opacity .12s}
.rlpe-lb-btn{position:absolute;z-index:2;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.15);cursor:pointer}
.rlpe-lb-btn:hover{background:rgba(255,255,255,.3)}
.rlpe-lb-close{top:16px;right:16px}
.rlpe-lb-prev{top:50%;left:16px;transform:translateY(-50%)}
.rlpe-lb-next{top:50%;right:16px;transform:translateY(-50%)}
.rlpe-lb-dots{position:absolute;bottom:16px;left:50%;z-index:2;display:flex;gap:6px;transform:translateX(-50%)}
.rlpe-lb-dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.35)}
.rlpe-lb-dots span.is-active{background:#fff}
.rlpe-lightbox.is-single .rlpe-lb-prev,.rlpe-lightbox.is-single .rlpe-lb-next,.rlpe-lightbox.is-single .rlpe-lb-dots{display:none}
