.refund-dialog,dialog:has(.refund-form){width:min(1180px,calc(100vw - 40px))!important;max-width:none!important;max-height:calc(100vh - 32px)!important;padding:0!important;border-radius:28px!important;overflow:auto;background:#f4f8fa!important;box-shadow:0 32px 110px rgba(0,25,35,.38)!important}
.refund-dialog::before,dialog:has(.refund-form)::before{content:"СПК «ДОН»  ·  ВОЗВРАТ БИЛЕТОВ";display:block;padding:24px 34px 12px;color:#ff5b00;font-size:12px;font-weight:900;letter-spacing:.16em}
.refund-dialog>h2,dialog:has(.refund-form)>h2{margin:0;padding:0 34px;font-size:clamp(30px,3vw,44px);line-height:1.05;letter-spacing:-.035em}.refund-dialog>p,dialog:has(.refund-form)>p{margin:10px 0 0;padding:0 34px 22px;color:#677a81;font-size:15px}
.refund-dialog .order-close,dialog:has(.refund-form) .order-close{position:fixed;right:max(32px,calc((100vw - 1180px)/2 + 18px));top:27px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff!important;box-shadow:0 8px 25px rgba(23,49,59,.12);font-size:25px;line-height:1;z-index:4}
.refund-form{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;margin:0!important;padding:0 20px 20px!important}
.form-section{position:relative;border:1px solid #dbe7eb;border-radius:21px;padding:22px;background:#fff;box-shadow:0 5px 22px rgba(25,67,80,.045)}.form-section:nth-child(1){grid-column:span 5}.form-section:nth-child(2){grid-column:span 7}.form-section:nth-child(3){grid-column:span 7}.form-section:nth-child(4){grid-column:span 5}
.form-section h3{display:flex;align-items:center;gap:10px;margin:0 0 18px;color:#17313b;font-size:18px;letter-spacing:-.015em}.form-section h3::before{content:"";width:9px;height:9px;border-radius:50%;background:#ff5b00;box-shadow:0 0 0 5px #fff0e8}
.form-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-fields .wide{grid-column:1/-1}.refund-form label{display:grid;gap:7px!important;color:#526970!important;font-size:12px!important;font-weight:700}
.refund-form input,.refund-form select,.refund-form textarea{width:100%;min-width:0;min-height:48px!important;padding:12px 14px!important;border:1px solid #cfdee3!important;border-radius:12px!important;background:#f8fbfc!important;color:#17313b;font:500 15px Roboto,Arial,sans-serif!important;outline:0;box-shadow:none!important;transition:border-color .2s,box-shadow .2s,background .2s}.refund-form textarea{min-height:74px!important;resize:vertical}
.refund-form input:hover,.refund-form select:hover,.refund-form textarea:hover{border-color:#9eb9c2!important;background:#fff!important}.refund-form input:focus,.refund-form select:focus,.refund-form textarea:focus{border-color:#0099dd!important;background:#fff!important;box-shadow:0 0 0 4px rgba(0,160,223,.12)!important}
.consent-section{display:flex;flex-direction:column;gap:13px;background:linear-gradient(145deg,#17313b,#214b59);border-color:transparent;color:#fff}.consent-section h3{color:#fff}.consent-section h3::before{background:#94d9f8;box-shadow:0 0 0 5px rgba(105,212,250,.14)}
.consent{display:grid!important;grid-template-columns:24px 1fr!important;align-items:start;gap:10px!important;color:#fff!important;font-size:13px!important;line-height:1.35}.consent input{appearance:none;width:22px!important;height:22px!important;min-height:22px!important;margin:0;padding:0!important;background:transparent!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:7px!important;cursor:pointer}.consent input:checked{background:#ff5b00!important;border-color:#ff5b00!important}.consent input:checked::after{content:"✓";display:grid;place-items:center;color:#fff;font-size:15px;font-weight:900}
.refund-note{margin:auto 0 0!important;padding-top:12px;border-top:1px solid rgba(255,255,255,.15);color:#b9cbd1!important;font-size:11px;line-height:1.4}.refund-submit{grid-column:1/-1;justify-self:end;min-width:270px;border:0;background:#ff5b00;color:#fff;padding:15px 25px;border-radius:999px;font-weight:900;font-size:15px;cursor:pointer;box-shadow:0 12px 28px rgba(255,91,0,.23);transition:transform .2s,box-shadow .2s}.refund-submit:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(255,91,0,.32)}
@media(max-width:900px){.refund-dialog,dialog:has(.refund-form){width:calc(100vw - 20px)!important;max-height:calc(100vh - 20px)!important;border-radius:20px!important}.refund-dialog::before,dialog:has(.refund-form)::before{padding:20px 20px 10px}.refund-dialog>h2,dialog:has(.refund-form)>h2,.refund-dialog>p,dialog:has(.refund-form)>p{padding-left:20px;padding-right:60px}.refund-dialog .order-close,dialog:has(.refund-form) .order-close{position:absolute;right:12px;top:12px}.refund-form{grid-template-columns:1fr!important;padding:0 10px 14px!important}.form-section:nth-child(n){grid-column:1/-1}.refund-submit{width:100%;min-width:0}}@media(max-width:520px){.form-section{padding:17px}.form-fields{grid-template-columns:1fr}.form-fields .wide{grid-column:auto}.refund-dialog>h2,dialog:has(.refund-form)>h2{font-size:30px}.refund-submit{position:sticky;bottom:0}}

/* Compact one-screen refund form */
.refund-dialog,dialog:has(.refund-form){width:min(1120px,calc(100vw - 28px))!important;max-height:calc(100vh - 18px)!important;border-radius:20px!important}
.refund-dialog::before,dialog:has(.refund-form)::before{padding:15px 24px 6px;font-size:10px;letter-spacing:.14em}
.refund-dialog>h2,dialog:has(.refund-form)>h2{padding:0 24px;font-size:clamp(25px,2.4vw,34px);line-height:1}
.refund-dialog>p,dialog:has(.refund-form)>p{margin:6px 0 0;padding:0 24px 12px;font-size:12px}
.refund-dialog .order-close,dialog:has(.refund-form) .order-close{top:13px;width:36px;height:36px;font-size:21px}
.refund-form{grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr)!important;align-items:start;gap:10px!important;padding:0 14px 14px!important}
.refund-column{display:flex;min-width:0;flex-direction:column;gap:10px}
.refund-column .form-section{width:100%;min-height:0;padding:13px 14px;border-radius:15px;box-shadow:0 3px 13px rgba(25,67,80,.04)}
.refund-column .form-section h3{gap:8px;margin:0 0 10px;font-size:15px}
.refund-column .form-section h3::before{width:7px;height:7px;box-shadow:0 0 0 4px #fff0e8}
.refund-column .form-fields{gap:8px 10px}
.refund-column .refund-form label,.refund-column label{gap:4px!important;font-size:10.5px!important;line-height:1.2}
.refund-column input,.refund-column select,.refund-column textarea{min-height:36px!important;padding:7px 10px!important;border-radius:9px!important;font-size:12.5px!important}
.refund-column textarea{min-height:48px!important;max-height:64px}
.refund-column .consent-section{gap:8px}
.refund-column .consent{grid-template-columns:19px 1fr!important;gap:7px!important;font-size:11px!important}
.refund-column .consent input{width:18px!important;height:18px!important;min-height:18px!important}
.refund-column .refund-note{padding-top:8px;font-size:9.5px;line-height:1.3}
.refund-submit{min-width:235px;padding:11px 20px;font-size:13px;box-shadow:0 7px 18px rgba(255,91,0,.2)}
@media(max-width:900px){.refund-form{grid-template-columns:1fr!important}.refund-column{gap:10px}.refund-dialog,dialog:has(.refund-form){width:calc(100vw - 14px)!important}.refund-submit{width:100%}}
