.dm-ov{position:fixed;inset:0;z-index:3000;background:rgba(30,15,10,.55);display:flex;align-items:center;justify-content:center;padding:14px;overflow:auto}
.dm-ov[hidden]{display:none}
.dm{background:#fffaf5;color:#2a1a05;width:100%;max-width:520px;max-height:calc(100vh - 28px);overflow:auto;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.dm-h{background:#f6d3d6;color:#5a1620;padding:16px 20px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.dm-h h2{font-family:'Young Serif',serif;font-size:1.2rem;line-height:1.25;margin:0;color:#5a1620;font-weight:400}
.dm-h p{margin:3px 0 0;font-size:.8rem;color:#8a3a45}
.dm-x{border:0;background:transparent;font-size:1.6rem;line-height:1;cursor:pointer;color:#5a1620;padding:0 4px}
.dm-b{padding:16px 20px 20px}
.dm-g{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.dm label{display:block;font-size:.76rem;font-weight:600;color:#6b5a3a}
.dm input,.dm select{display:block;width:100%;margin-top:4px;padding:10px 11px;font:inherit;font-size:.9rem;color:#2a1a05;background:#fff;border:1px solid #ecdfc8;border-radius:9px}
.dm input:focus,.dm select:focus{outline:2px solid #a63a49;outline-offset:1px;border-color:#a63a49}
.dm input.bad{border-color:#b3261e}
.dm .dm-f{margin-top:10px}
.dm-e{min-height:20px;margin:8px 0 2px;font-size:.82rem;color:#b3261e}
.dm-s{width:100%;padding:12px;border:0;border-radius:10px;background:#a63a49;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.dm-s:hover{background:#8f2f3d}
.dm-s:disabled{opacity:.6;cursor:wait}
.dm-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.dm-ok{text-align:center;padding:46px 20px 40px}
.dm-ok b{display:block;font-size:1.1rem;margin:10px 0 4px}
.dm-ok p{margin:0 0 18px;color:#6b5a3a;font-size:.9rem}
.dm-tick{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#f6d3d6;color:#a63a49;font-size:1.7rem}
@media(max-width:520px){.dm-g{grid-template-columns:1fr}.dm-ov{align-items:flex-end;padding:8px}}
