/* Dialogs live in the top layer. Keep provider content independent of site styles. */
.ghl-modal{padding:0;border:1px solid #b19c76;background:#fafaf7;color:#0d1b28;width:min(900px,calc(100vw - 48px));height:min(860px,92dvh);max-width:none;max-height:none;overflow:hidden;margin:auto;box-shadow:0 24px 100px #0005}
.ghl-modal::backdrop{background:#030b12b3;backdrop-filter:blur(5px)}
.ghl-modal[open]{display:block}
.ghl-modal .ghl-modal-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.ghl-modal .ghl-modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px;border-bottom:1px solid #d2d6d5;flex-shrink:0;background:#0d1b28;color:#fafaf7}
.ghl-modal .ghl-modal-header small{color:#e0c28a;font-size:11px;letter-spacing:.04em}
.ghl-modal .ghl-modal-header h2{font-size:clamp(20px,3vw,28px);line-height:1.2;margin:7px 0 0;letter-spacing:-.025em;color:#fafaf7}
.ghl-modal .ghl-close{flex-shrink:0;display:grid;place-items:center;width:44px;height:44px;color:#fafaf7;background:transparent;border:1px solid #9d9c8b;font-size:26px;cursor:pointer;margin:0}
.ghl-modal .ghl-close:hover{background:#ffffff15}
.ghl-modal .ghl-modal-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 28px}
.ghl-modal p,.ghl-modal label{color:#314754!important;font-size:15px!important;line-height:1.6!important}
.ghl-modal .ghl-modal-body>p:first-child{margin-top:0}
.ghl-modal label{display:block;margin:0 0 20px}
.ghl-modal select{display:block;width:100%;border:1px solid #7a8d98!important;background:#fff!important;color:#0d1b28!important;border-radius:3px;font:inherit;padding:12px;margin-top:8px;min-height:48px}
.ghl-modal .btn{display:inline-flex;background:#e0c28a!important;color:#0d1b28!important;border:1px solid #ac9160!important;font-size:14px;text-decoration:none;padding:13px 20px;margin:8px 0;cursor:pointer}
.ghl-modal .btn:hover{background:#edd7af!important}
.ghl-modal .ghl-embed{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;background:white}
.ghl-modal .ghl-form-context{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 28px;border-bottom:1px solid #d2d6d5;flex-shrink:0;background:#fafaf7}
.ghl-modal .ghl-form-context p{font-size:13px!important;margin:0}
.ghl-modal .ghl-form-context button,.ghl-modal .ghl-form-status button{border:0;background:transparent;color:#153b4f;cursor:pointer;text-decoration:underline;font-size:12px;white-space:nowrap;min-height:36px;margin:0;padding:6px}
.ghl-modal .ghl-form-status{padding:8px 28px;flex-shrink:0;display:flex;gap:12px;align-items:center;background:#f0f3f2}
.ghl-modal .ghl-form-status p{margin:0;font-size:12px!important;line-height:1.4!important;flex:1}
.ghl-modal .ghl-embed iframe{width:100%;height:100%;min-height:0;flex:1;border:0;border-radius:0;display:block;background:#fff}
.ghl-modal .ghl-modal-footer{flex-shrink:0;display:block;background:#fafaf7;padding:12px 28px;border-top:1px solid #d2d6d5;margin:0}
.ghl-modal .ghl-modal-footer p{font-size:11px!important;line-height:1.5!important;margin:0 0 4px}
.ghl-modal a{color:#205367!important;text-decoration:underline}
.ghl-modal .ghl-modal-footer>a{font-size:12px}
.ghl-modal [hidden]{display:none!important}
.ghl-modal .ghl-confirm-actions{display:flex;gap:16px;flex-wrap:wrap}
.ghl-modal .ghl-modal-body h3{font-size:26px;line-height:1.2}
.ghl-modal [aria-busy=true] .ghl-form-status p::before{content:'';display:inline-block;width:12px;height:12px;border:2px solid #afbdc4;border-top-color:#205367;border-radius:50%;margin-right:8px;animation:shell-spin 800ms linear infinite}
@media(max-width:760px){
 .ghl-modal{width:100%;height:100dvh;max-height:100dvh;border:0}
 .ghl-modal .ghl-modal-header{padding:calc(16px + env(safe-area-inset-top)) 18px 16px;gap:12px}
 .ghl-modal .ghl-modal-header h2{font-size:22px}.ghl-modal .ghl-modal-body{padding:20px}
 .ghl-modal .ghl-form-context,.ghl-modal .ghl-form-status{padding:8px 16px}
 .ghl-modal .ghl-modal-footer{padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
 .ghl-modal .ghl-form-context p{font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){.ghl-modal *{animation:none!important;transition:none!important}}
@media print{.ghl-modal{display:none!important}}

.ghl-modal select{appearance:none;min-height:48px;background-image:linear-gradient(45deg,transparent 50%,#314754 50%),linear-gradient(135deg,#314754 50%,transparent 50%)!important;background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px!important;background-size:5px 5px!important;background-repeat:no-repeat!important;padding-right:36px}
