.payment-receipt-dialog{box-sizing:border-box;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #2c4667;border-radius:20px;background:#101e34;color:#f3f7ff;box-shadow:0 25px 90px #0007;font:400 15px/1.5 system-ui,sans-serif;overflow:auto;overscroll-behavior:contain}
.payment-receipt-dialog::backdrop{background:#030a19b8}
.payment-receipt-toolbar{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;gap:12px;position:sticky;top:0;background:#101e34;z-index:1}
.payment-receipt-toolbar h2{margin:0;font-size:19px;font-weight:800;color:#f3f7ff}
.payment-receipt-dialog button{font:inherit;cursor:pointer;min-height:44px}
.payment-receipt-toolbar button{border:1px solid #49607e;border-radius:50%;width:44px;padding:0;background:transparent;color:#f3f7ff;font-size:28px;line-height:1}
.payment-receipt-paper{margin:0 20px;background:#fff;color:#171717;border-radius:5px;overflow:hidden}
.payment-receipt-paper>header{display:flex;align-items:center;gap:14px;padding:18px 20px 10px;background:#fff;color:#082d63;border:0}.payment-receipt-paper>header>strong{font-size:25px;line-height:1.1;font-weight:800}
.payment-receipt-emblem{position:relative;display:block;width:52px;height:52px;flex-shrink:0;overflow:hidden}.payment-receipt-emblem img{position:absolute;width:379.06%;height:auto;max-width:none;left:-138.74%;top:-84.29%}
.payment-receipt-meta{display:grid;grid-template-columns:repeat(3,1fr);margin:0 18px;padding:13px 0 15px;border-bottom:2px solid #cad8e6;color:#506079}.payment-receipt-meta>span{display:grid;gap:2px;padding:0 12px;font-size:14px}.payment-receipt-meta>span+span{border-left:1px solid #cad8e6}.payment-receipt-meta b{color:#092957;font-size:18px;white-space:nowrap}
.payment-receipt-client{display:grid;gap:2px;padding:15px 20px;color:#506079;font-size:14px}.payment-receipt-client strong{color:#092957;font-size:20px;line-height:1.25}
.payment-receipt-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 12px;padding:19px 22px;border-radius:9px;background:#0d5ee8;color:#fff}.payment-receipt-summary>strong{font-size:22px}.payment-receipt-summary>b{font-size:27px;line-height:1.15;white-space:nowrap}
.payment-receipt-details-title{margin:12px 12px 0;padding:9px 13px;border-radius:8px 8px 0 0;background:#0b376d;color:#fff;font-size:19px;line-height:1.2}
.payment-receipt-paper dl{margin:0 12px}.payment-receipt-paper dl>div{padding:10px 13px;border-bottom:1px solid #d6e0ea;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.payment-receipt-paper dl>div:nth-child(3){background:#e8f1ff}.payment-receipt-paper dl>div:nth-child(3) dt{font-weight:700;color:#113a70}.payment-receipt-paper dl>div:nth-child(3) dd{color:#0865c7}.payment-receipt-paper dt{font-size:15px;color:#17223a}.payment-receipt-paper dd{margin:0;font-size:16px;font-weight:600;text-align:right;overflow-wrap:anywhere}
.payment-receipt-paper footer{padding:24px 18px 14px;color:#27364c;font-size:14px;line-height:1.5}.payment-receipt-paper footer>strong{display:block;margin-top:17px;padding:9px 0;border-bottom:1px solid #cad8e6;color:#0865c7;text-align:left;font-weight:750}
.payment-receipt-status{margin:16px 22px;color:#bfcee3;font-size:12px;line-height:1.6;min-height:20px}
.payment-receipt-actions{padding:12px 20px 20px;display:flex;gap:10px;position:sticky;bottom:0;background:#101e34;border-top:1px solid #2c4667}.payment-receipt-actions button{flex:1;border:1px solid #5f7fba;border-radius:10px;background:#1a3355;color:#fff;padding:10px 12px;font-weight:550}.payment-receipt-actions [data-receipt-share]{background:#245bff;border-color:#527eff}.payment-receipt-actions button:disabled{opacity:.55;cursor:wait}.payment-receipt-dialog button:focus-visible{outline:3px solid #19cce4;outline-offset:3px}
@media(max-width:420px){.payment-receipt-toolbar{padding:14px}.payment-receipt-paper{margin-inline:8px}.payment-receipt-paper>header{padding-inline:14px}.payment-receipt-paper>header>strong{font-size:22px}.payment-receipt-emblem{width:46px;height:46px}.payment-receipt-meta{margin-inline:10px}.payment-receipt-meta>span{padding-inline:7px;font-size:12px}.payment-receipt-meta b{font-size:14px}.payment-receipt-summary{padding:16px}.payment-receipt-summary>strong{font-size:18px}.payment-receipt-summary>b{font-size:21px}.payment-receipt-paper dt{font-size:14px}.payment-receipt-paper dd{font-size:15px}.payment-receipt-actions{padding-inline:12px}.payment-receipt-toolbar h2{font-size:17px}}
.payment-receipt-history,.payment-receipt-success{background:#f4f8fd;color:#152c4d;border-color:#d7e5f7;border-radius:26px}.payment-receipt-history .payment-receipt-toolbar,.payment-receipt-success .payment-receipt-toolbar{background:#fff;border-bottom:1px solid #dbe7f6}.payment-receipt-history .payment-receipt-toolbar h2,.payment-receipt-success .payment-receipt-toolbar h2{color:#132e54}.payment-receipt-history .payment-receipt-toolbar button,.payment-receipt-success .payment-receipt-toolbar button{color:#284c77;border-color:#d7e5f7;background:#edf3fb}.payment-history-body{padding:20px 22px}.payment-history-body>p{margin:0 0 16px}.payment-history-body ol{list-style:none;padding:0;margin:22px 0}.payment-history-body li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid #dbe7f6}.payment-history-body li>div{display:flex;flex-direction:column;gap:5px;min-width:0}.payment-history-body strong{font-size:20px;color:#245bff;overflow-wrap:anywhere}.payment-history-body li span{font-size:12px;color:#526884}.payment-history-body li small{font-size:12px;color:#284c77}.payment-history-body details{position:relative}.payment-history-body summary{cursor:pointer;list-style:none;min-width:44px;min-height:44px;display:grid;place-items:center;border:1px solid #c9d8ec;border-radius:12px;color:#245bff;background:#fff}.payment-history-body summary::-webkit-details-marker{display:none}.payment-history-body details>button{position:absolute;right:0;top:48px;width:200px;padding:12px;border:1px solid #c9d8ec;border-radius:12px;background:#fff;color:#152c4d;box-shadow:0 8px 20px #132e5422;z-index:2;text-align:left}.payment-receipt-preference{display:flex;align-items:flex-start;gap:12px;font-size:13px;background:#e8f2ff;padding:15px;border-radius:14px;cursor:pointer}.payment-receipt-preference input{width:20px;height:20px;flex-shrink:0;margin:1px 0 0;accent-color:#245bff}.payment-receipt-preference small{display:block;color:#526884;margin-top:5px;font-size:11px}.payment-receipt-history .payment-receipt-status{margin:12px 0;color:#526884}.payment-receipt-history .payment-receipt-actions,.payment-receipt-success .payment-receipt-actions{background:#fff;border-color:#dbe7f6}.payment-receipt-history .payment-receipt-actions button,.payment-receipt-success .payment-receipt-actions button{background:#fff;color:#245bff;border-color:#c9d8ec}.payment-receipt-history [data-history-share],.payment-receipt-success [data-receipt-open]{background:#245bff!important;color:#fff!important;border-color:#245bff!important}.payment-success-check{display:grid;place-items:center;background:#ddf6ef;color:#167658;border:1px solid #a4e2d1;border-radius:50%;width:52px;height:52px;margin:0 0 16px;font-size:28px}.payment-receipt-success .payment-history-body>p{font-size:16px}.payment-receipt-history summary:focus-visible{outline:3px solid #087ca4;outline-offset:3px}
/* Explicit title color also wins over global dialog heading rules. */
dialog.payment-receipt-success #payment-success-title{color:#132e54!important;opacity:1}
