.wf-dialog{--wf-blue:#164cb5;box-sizing:border-box;width:min(590px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 28px);margin:auto;padding:0;border:2px solid #0c47cd;border-radius:9px 9px 3px 3px;background:#f6f4ec;color:#17263c;box-shadow:4px 9px 32px #07154366;font:16px/1.45 Tahoma,Arial,sans-serif;overflow:hidden}
.wf-dialog[open]{display:flex;flex-direction:column}
.wf-dialog::backdrop{background:#0c173977}
.wf-dialog.wf-editing{width:min(900px,calc(100% - 24px))}
.wf-dialog *, .wf-dialog *::before,.wf-dialog *::after{box-sizing:border-box}
.wf-dialog [hidden]{display:none!important}
.wf-dialog .wf-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 5px 5px 12px;background:linear-gradient(#5498ff 0%,#0758e1 18%,#0755d7 65%,#0536a9 100%);color:#fff;font-weight:bold;text-shadow:1px 1px #174979}
.wf-dialog .wf-close{display:grid;place-items:center;padding:0;width:30px;height:28px;margin:0;border:1px solid white;border-radius:4px;box-shadow:inset 1px 1px 2px #ffca9b;background:linear-gradient(135deg,#ffb085,#de4f27 60%,#ac2711);color:#fff;font:bold 25px/1 Arial;cursor:pointer}
.wf-steps{display:flex;flex:none;gap:14px;flex-wrap:wrap;border-bottom:1px solid #c9c6b8;padding:12px 20px;background:#ece9d8;font-size:14px;color:#626575}
.wf-steps span{display:flex;align-items:center;gap:4px}
.wf-steps b{font:inherit;font-weight:bold}
.wf-steps [aria-current=step]{color:#163b94;font-weight:bold}
.wf-body{padding:22px;overflow:auto;overscroll-behavior:contain;min-height:0}
.wf-body h2{margin:0 0 12px;color:#173d87;font:700 clamp(23px,4vw,30px)/1.13 Tahoma,Arial,sans-serif;letter-spacing:-.045em;outline:none}
.wf-body p{margin:8px 0 14px}
.wf-dialog .wf-gift,.wf-outcard{display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:center;margin-bottom:20px}
.wf-gift img,.wf-outcard img{width:100%;aspect-ratio:1;object-fit:cover;padding:3px;background:#fff;border:1px solid #c4c9d1}
.wf-outcard img{aspect-ratio:auto;max-height:150px;object-fit:contain}
.wf-outcard p,.wf-gift p{margin:4px 0 8px}
.wf-pay-label,.wf-upload,.wf-comment{font-size:15px;font-weight:bold;color:#263b56}
.wf-pay-label,.wf-upload,.wf-comment{display:grid;gap:6px;margin:14px 0 6px}
.wf-comment small{font-weight:normal;font-size:13px;color:#53657a}
.wf-comment{display:block}
.wf-comment textarea,.wf-address{display:block;margin-top:5px;width:100%;padding:10px 9px;border:1px solid #72849c;box-shadow:inset 1px 2px 2px #9bafc433;background:white;color:#182e4c;font:16px/1.2 Tahoma,Arial,sans-serif;border-radius:2px}
.wf-comment textarea{resize:vertical;min-height:58px;max-height:180px}
.wf-video{display:inline-flex;align-items:center;gap:8px;min-height:42px;cursor:pointer}.wf-video input{width:18px;height:18px;margin:0;accent-color:#245fb4}
.wf-price{color:#164787;font-size:20px}
.wf-telegram{border-top:1px solid #cbc8be;margin-top:16px;padding-top:15px}
.wf-telegram a{display:inline-block;line-height:1.4;font-weight:bold}
.wf-telegram small{display:block;margin-top:4px;font-size:14px;color:#47596e}
.wf-selected,.wf-feedback{font-size:14px}
.wf-feedback:not(:empty){color:#882f1c}
.wf-body{padding-bottom:calc(25px + env(safe-area-inset-bottom,0px))}
.wf-actions{margin-bottom:7px}
.wf-editing .we-actions{padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
.wf-address{font-family:Consolas,'Courier New',monospace}
.wf-upload input{max-width:100%;font:inherit;font-weight:normal;padding:7px;background:#fff;border:1px solid #c1c7ce}
.wf-upload input::file-selector-button{padding:6px 9px;background:#eeeade;border:1px solid #8e94a1;border-radius:3px;color:#243348}
.wf-summary,.wf-methods,.wf-networks,.wf-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wf-summary{justify-content:space-between;padding:12px 14px;background:#e7effc;border:1px solid #becdeb;margin:14px 0}
.wf-methods .wf-btn{flex:1}
.wf-dialog .wf-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;max-width:100%;margin:0;padding:7px 13px;border:1px solid #77889e;border-radius:4px;box-shadow:inset 1px 1px #fff,inset -1px -2px #d0cbbd;background:linear-gradient(#fff,#f4f1e7 80%,#e3ddce);color:#1a2e46;text-decoration:none;font:600 14px/1.25 Tahoma,Arial,sans-serif;cursor:pointer;white-space:normal}
.wf-dialog .wf-btn:hover{border-color:#2660b2;background:#fff7dc}
.wf-dialog .wf-btn:active{box-shadow:inset 1px 2px 2px #8ca5c1}
.wf-dialog .wf-primary,.wf-dialog .wf-btn[aria-pressed=true]{color:white;border-color:#19458f;box-shadow:inset 1px 1px #a9ccff,inset -1px -2px #1c4b9d;background:linear-gradient(#639af5,#3571ce 45%,#2355ab)}
.wf-dialog .wf-primary:hover,.wf-dialog .wf-btn[aria-pressed=true]:hover{background:#285fbc;color:white}
.wf-dialog .wf-btn:disabled{opacity:.48;cursor:default}
.wf-dialog :is(button,a,input,select,textarea):focus-visible{outline:3px solid #f5a71d;outline-offset:2px}
.wf-actions{justify-content:flex-end;border-top:1px solid #cac7bb;margin-top:18px;padding-top:14px}
.wf-details:not(:empty){margin-top:14px;padding:13px 14px;background:#fff;border:1px solid #c1c9d3}
.wf-details p{margin:0 0 9px}
.wf-details small,.wf-copy-status,.wf-selected,.wf-share-status{color:#375571;font-size:14px}
.wf-copy-status{margin-left:8px}
.wf-error{font-size:14px;color:#982a20}
.wf-body p:empty{margin:0}
.wf-body a:not(.wf-btn){color:#174fa9;text-decoration:underline}
.wf-editing .wf-body{padding:0}
@media(max-width:520px){
.wf-dialog,.wf-dialog.wf-editing{width:calc(100% - 12px);max-height:calc(100dvh - 12px)}
.wf-body{padding:16px 16px calc(25px + env(safe-area-inset-bottom,0px))}
.wf-steps{padding:9px 11px;gap:9px;font-size:12px}
.wf-dialog .wf-gift,.wf-outcard{grid-template-columns:82px 1fr;gap:12px}
.wf-dialog .wf-btn{min-height:44px}
.wf-actions{gap:7px}
.wf-actions .wf-btn{flex:1 1 auto}
.wf-dialog .wf-close{width:40px;height:35px}
}
