:root{--ep-brand:#2563eb}.ep-page{min-height:100vh;background:#f4f7fb;color:#0f172a;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.ep-page>header{height:78px;background:#06152b;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 920px)/2));border-bottom:3px solid var(--ep-brand)}.ep-page>header img{max-width:230px;max-height:52px;object-fit:contain}.ep-page>header a{color:#fff;text-decoration:none;font-size:23px}.ep-page>header span{font-size:13px;color:#b9c7db}.ep-page main{max-width:860px;margin:auto;padding:38px 20px 52px}.ep-progress{display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:34px;position:relative}.ep-progress:before{content:"";height:2px;background:#dce3ed;position:absolute;left:11%;right:11%;top:17px}.ep-progress div{z-index:1;text-align:center;color:#8793a5;font-size:12px;font-weight:700}.ep-progress i{margin:0 auto 7px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e6ebf2;border:4px solid #f4f7fb;font-style:normal}.ep-progress .done{color:#0f172a}.ep-progress .done i{background:var(--ep-brand);color:#fff}.ep-hero{text-align:center;padding:14px 0 28px}.ep-hero>p,.ep-confirm>p:first-of-type{font-size:12px;letter-spacing:.16em;color:var(--ep-brand);font-weight:800}.ep-hero h1{font-size:38px;margin:8px}.ep-hero>div{display:flex;justify-content:center;gap:56px;margin-top:22px}.ep-hero span{display:flex;flex-direction:column;color:#64748b;font-size:13px}.ep-hero span b{color:#0f172a;font-size:15px;margin-bottom:5px}.ep-card{background:#fff;border:1px solid #dfe6ef;border-radius:16px;padding:28px;margin-bottom:18px;box-shadow:0 8px 30px rgba(15,23,42,.05)}.ep-intro{text-align:center;color:#526077;line-height:1.7}.ep-card-head{display:flex;justify-content:space-between;border-bottom:1px solid #e7ecf2;padding-bottom:20px}.ep-card-head div:last-child{text-align:right}.ep-card small{color:#718096;font-size:11px;letter-spacing:.08em}.ep-card h2{margin:5px 0;font-size:19px}.ep-items{padding:12px 0}.ep-items>div{display:flex;justify-content:space-between;padding:14px 2px;border-bottom:1px solid #edf1f5}.ep-items span{display:flex;flex-direction:column;gap:4px}.ep-total,.ep-deposit{display:flex;justify-content:space-between;align-items:center;padding:18px 2px}.ep-total{font-size:20px;border-top:2px solid #0f172a}.ep-total b{font-size:27px}.ep-deposit{background:#eef5ff;color:#14479c;margin:4px -8px -8px;padding:16px;border-radius:10px}.ep-actions{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-top:24px}.ep-actions p{grid-column:1/-1;text-align:center;color:#64748b;font-size:12px}.ep-page button,.ep-page a,.ep-modal button{transition:.18s}.ep-page button,.ep-modal button,.ep-manage{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:13px 18px;font-weight:750;cursor:pointer}.ep-primary{background:var(--ep-brand)!important;color:#fff!important;border-color:var(--ep-brand)!important}.ep-decline{color:#b42318!important}.ep-section-title{display:flex;gap:14px;align-items:center;margin-bottom:20px}.ep-section-title>span{display:grid;place-items:center;background:var(--ep-brand);color:#fff;border-radius:50%;width:38px;height:38px;font-weight:800}.ep-section-title h2,.ep-section-title p{margin:0}.ep-section-title p{color:#64748b;font-size:13px}.ep-terms details{border-top:1px solid #e2e8f0;padding:15px 0}.ep-terms summary{font-weight:700;cursor:pointer}.ep-terms details p{color:#58667b;line-height:1.6}.ep-terms form{border-top:1px solid #e2e8f0;padding-top:20px}.ep-page label,.ep-modal label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;margin-bottom:14px}.ep-page input,.ep-modal input,.ep-modal textarea{border:1px solid #cbd5e1;border-radius:8px;padding:12px;font:inherit}.ep-consent{flex-direction:row!important;align-items:flex-start;font-weight:500!important}.ep-consent input{margin:3px 0 0}.ep-payment>div:nth-of-type(2){display:flex;justify-content:space-between;background:#eff6ff;padding:20px;border-radius:10px;margin:16px 0}.ep-payment strong{font-size:25px}.ep-payment .ep-primary{width:100%}.ep-payment-note{display:block!important;color:#475569}.ep-payment-note p{margin-bottom:0}.ep-confirm{text-align:center;padding:46px}.ep-confirm>i,.ep-success>i{display:grid;place-items:center;margin:auto;width:62px;height:62px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:30px;font-style:normal}.ep-confirm h1{font-size:35px}.ep-confirm>div{display:flex;align-items:center;justify-content:center;gap:22px;background:#f8fafc;padding:20px;border-radius:10px;margin:25px 0}.ep-confirm>div span{max-width:290px}.ep-confirm.declined>button{margin-top:20px}.ep-success{text-align:center}.ep-page>footer{max-width:860px;margin:auto;padding:28px 20px 40px;border-top:1px solid #dae1ea;display:grid;grid-template-columns:1fr auto;gap:8px}.ep-page>footer div{display:flex;flex-direction:column}.ep-page>footer a{color:var(--ep-brand);font-weight:700}.ep-page>footer p{grid-column:1/-1;text-align:center;color:#94a3b8;font-size:11px}.ep-loading,.ep-error{min-height:100vh;display:grid;place-content:center;text-align:center;gap:12px;background:#f4f7fb}.ep-loading span{margin:auto;width:35px;height:35px;border:3px solid #dce4ef;border-top-color:#2563eb;border-radius:50%;animation:ep-spin 1s linear infinite}.ep-error img{width:70px;margin:auto}.ep-error p{color:#64748b}.ep-modal{position:fixed;z-index:100000;inset:0;display:grid;place-items:center}.ep-backdrop{position:absolute!important;inset:0;border:0!important;border-radius:0!important;background:rgba(5,15,32,.7)!important}.ep-modal form{position:relative;background:#fff;border-radius:15px;padding:28px;width:min(520px,calc(100vw - 30px));max-height:88vh;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.3)}.ep-x{position:absolute;right:15px;top:12px;padding:5px 10px!important;font-size:22px;border:0!important}.ep-modal form>p{color:#64748b;line-height:1.5}.ep-modal form>button:last-of-type{width:100%}.ep-form-error{color:#b42318!important;font-weight:700}.ep-manage{padding:8px 10px;margin-right:7px;color:#1d4ed8;border-color:#bfdbfe;background:#eff6ff}.ep-admin-modal{width:min(700px,calc(100vw - 30px))!important}.ep-admin-head{display:flex;justify-content:space-between}.ep-admin-head h2{margin:4px 0}.ep-admin-head p{margin:0;color:#64748b}.ep-status{background:#eff6ff;color:#1d4ed8;height:max-content;padding:7px 10px;border-radius:20px;font-size:12px;font-weight:800}.ep-admin-actions{display:flex;gap:10px;margin:22px 0}.ep-admin-note{background:#fff7ed;border:1px solid #fed7aa;border-radius:9px;color:#9a3412!important;padding:12px 14px}.ep-send-success{text-align:center}.ep-send-success>i{display:grid;place-items:center;width:54px;height:54px;margin:4px auto 14px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:28px;font-style:normal}.ep-send-success>small{color:#2563eb;font-weight:800;letter-spacing:.1em}.ep-send-success>p{color:#64748b}.ep-send-success label{text-align:left}.ep-send-success input{width:100%;box-sizing:border-box}.ep-send-success>div{display:flex;justify-content:center;gap:10px}.ep-send-success a{display:inline-flex;align-items:center;border-radius:8px;padding:13px 18px;text-decoration:none;font-weight:750}.ep-copy-note{min-height:20px;color:#15803d!important;font-weight:700}.ep-admin-status{display:grid;grid-template-columns:repeat(4,1fr);background:#f8fafc;border-radius:10px;margin-bottom:24px}.ep-admin-status div{text-align:center;padding:16px 8px}.ep-admin-status b,.ep-admin-status span{display:block}.ep-admin-status span{font-size:11px;color:#64748b;margin-top:4px}.ep-admin-timeline p{display:flex;gap:12px;border-left:2px solid #dbe4ee;padding:0 0 18px 18px;margin:0}.ep-admin-timeline i{width:9px;height:9px;background:#2563eb;border-radius:50%;margin-left:-24px}.ep-admin-timeline span{display:flex;flex-direction:column}.ep-admin-timeline small{color:#64748b}.ep-admin-loading{padding:40px;text-align:center}.ep-logo-preview{max-width:240px;max-height:80px;background:#07172f;padding:12px;border-radius:8px;object-fit:contain}@keyframes ep-spin{to{transform:rotate(360deg)}}
@media(max-width:680px){.ep-page>header{padding:0 18px}.ep-page>header span{display:none}.ep-page>header img{max-width:190px}.ep-page main{padding:25px 13px}.ep-progress span{font-size:10px}.ep-hero h1{font-size:30px}.ep-hero>div{gap:18px;flex-direction:column}.ep-card{padding:20px}.ep-actions{grid-template-columns:1fr}.ep-admin-status{grid-template-columns:repeat(2,1fr)}.ep-page>footer{grid-template-columns:1fr}.ep-confirm{padding:30px 20px}.ep-confirm>div{flex-direction:column}}
.p3-est-brand{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:18px 0 24px;border-bottom:1px solid #e2e8f0;margin-bottom:24px}.p3-est-brand h3,.p3-setting-card>form>h3{margin:10px 0 6px}.p3-est-brand p{color:#64748b;margin:0 0 16px}.p3-est-brand label{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-weight:700;font-size:12px}.p3-est-brand input{border:1px solid #d8e0ea;border-radius:8px;padding:11px}.p3-est-brand input[type=color]{height:44px;padding:4px;width:100%}@media(max-width:760px){.p3-est-brand{grid-template-columns:1fr}}

/* Optional per-action colors from Company Branding. */
.ep-actions [data-accept],.ep-terms [data-sign] .ep-primary{background:var(--ep-accept,#16a34a)!important;border-color:var(--ep-accept,#16a34a)!important}.ep-payment [data-pay]{background:var(--ep-payment,var(--ep-brand))!important;border-color:var(--ep-payment,var(--ep-brand))!important}.ep-actions .ep-decline{color:var(--ep-decline,#dc2626)!important;border-color:var(--ep-decline,#dc2626)!important}
