/* Escrow flow upgrade: three plans, step layout, fee estimate and application form. */
.escrow-hero{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);
  gap:28px;
  align-items:stretch;
  margin:26px 0 18px;
  padding:38px 34px;
  border-radius:18px;
  background:linear-gradient(120deg,#102a43 0%,#173f5c 68%,#1d5975 100%);
  color:#fff;
  overflow:hidden;
}
.escrow-hero-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}
.escrow-hero .eyebrow{color:#d9c08a}
.escrow-hero h1{font-family:Manrope,Arial,sans-serif;font-size:clamp(34px,4.2vw,52px);line-height:1.1;letter-spacing:-.03em;margin:12px 0 15px}
.escrow-hero p{max-width:760px;margin-bottom:21px;color:#d7e5ee;font-size:15px;line-height:1.8}
.escrow-hero-actions{display:flex;flex-wrap:wrap;gap:11px}
.escrow-hero .btn.ghost{border-color:#ffffff55;color:#fff}
.escrow-hero .btn.ghost:hover{background:#ffffff14;color:#fff}
.escrow-hero-panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:24px;
  border:1px solid #ffffff30;
  border-radius:14px;
  background:linear-gradient(145deg,#ffffff16,#ffffff06);
}
.escrow-hero-panel .panel-kicker{color:#e2ca97;font-size:10px;letter-spacing:.2em}
.escrow-hero-panel strong{margin:15px 0 12px;font-family:Manrope,Arial,sans-serif;font-size:24px;line-height:1.45}
.escrow-hero-panel small{color:#c9dbe6;font-size:11px;line-height:1.8}
.escrow-process-strip{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  margin:0 0 30px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}
.escrow-process-strip div{display:flex;align-items:center;gap:8px;padding:10px 9px;border-radius:7px;background:#f7fafb;min-width:0}
.escrow-process-strip b{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;font-size:10px}
.escrow-process-strip span{font-size:12px;font-weight:700;color:#29465d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.escrow-section-head{margin-top:8px}
.escrow-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:15px}
.escrow-plan{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:20px;
  border:1px solid var(--line);
  border-top:4px solid var(--blue);
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 24px #17324a08;
}
.escrow-plan-bank{border-top-color:#2878a8}
.escrow-plan-barter{border-top-color:#b28a4a}
.escrow-plan-digital{border-top-color:#26765c}
.escrow-plan-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.escrow-plan-no{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#eef4f7;color:var(--navy);font-size:11px;font-weight:800}
.escrow-plan-en{font-size:9px;letter-spacing:.16em;color:#8293a0;font-weight:800;text-align:right}
.escrow-plan h3{margin:14px 0 8px;font-size:20px;line-height:1.35}
.escrow-plan-lead{min-height:70px;margin-bottom:14px;color:#64798a;font-size:12px;line-height:1.75}
.escrow-plan-fee{display:flex;align-items:baseline;gap:8px;padding:13px 0;border-top:1px solid #edf2f5;border-bottom:1px solid #edf2f5}
.escrow-plan-fee b{font-family:Manrope,Arial,sans-serif;font-size:30px;line-height:1;color:var(--navy);white-space:nowrap}
.escrow-plan-fee span{font-size:11px;color:#8192a0}
.escrow-plan-points{display:grid;gap:7px;margin:14px 0 16px;padding:0;list-style:none}
.escrow-plan-points li{position:relative;padding-left:15px;color:#526a7c;font-size:12px;line-height:1.65}
.escrow-plan-points li::before{content:"";position:absolute;left:0;top:7px;width:5px;height:5px;border-radius:50%;background:var(--gold)}
.escrow-plan-link{margin-top:auto;font-size:12px;font-weight:800}
.escrow-details{display:grid;gap:14px;margin:30px 0}
.escrow-detail{padding:22px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 8px 24px #17324a06}
.escrow-detail-head{display:flex;align-items:flex-start;gap:13px;padding-bottom:15px;border-bottom:1px solid #edf2f5}
.escrow-detail-head>span{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;border-radius:10px;background:var(--navy);color:#fff;font-size:12px;font-weight:800}
.escrow-detail-head h3{margin:0 0 2px;font-size:20px}
.escrow-detail-head small{font-size:9px;letter-spacing:.16em;color:#8293a0;font-weight:800}
.escrow-detail-fee{margin-left:auto;padding:7px 11px;border-radius:20px;background:#f3f7f9;color:#486275;font-size:11px;font-weight:800;white-space:nowrap}
.escrow-detail-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:26px;padding-top:16px}
.escrow-detail-grid h4{margin:0 0 9px;font-size:12px;letter-spacing:.08em;color:#486275}
.escrow-detail-grid h4:not(:first-child){margin-top:20px}
.escrow-steps{display:grid;gap:9px;margin:0;padding:0;list-style:none;counter-reset:escrowStep}
.escrow-steps li{position:relative;padding-left:31px;color:#526a7c;font-size:12px;line-height:1.7;counter-increment:escrowStep}
.escrow-steps li::before{content:counter(escrowStep);position:absolute;left:0;top:1px;display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:50%;background:#edf3f6;color:var(--blue);font-size:10px;font-weight:800}
.escrow-money{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 7px;padding:12px;border:1px dashed #d9e4ea;border-radius:9px;background:#fbfcfd}
.escrow-money span{padding:6px 9px;border-radius:6px;background:#fff;border:1px solid #e3ebf0;color:#29465d;font-size:11px;font-weight:700;line-height:1.4}
.escrow-money .escrow-arrow{border:0;background:transparent;padding:0 2px;color:var(--gold);font-size:16px}
.escrow-flow-note{margin:0 0 17px;color:#7b8e9d;font-size:11px;line-height:1.7}
.escrow-docs{display:grid;gap:5px;margin:0;padding-left:16px;color:#64798a;font-size:11px;line-height:1.7}
.escrow-calculator{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:24px;
  align-items:center;
  margin:30px 0;
  padding:24px;
  border:1px solid #dce6ec;
  border-radius:14px;
  background:linear-gradient(120deg,#f6fafc,#ffffff);
}
.escrow-calculator-copy h2{margin:8px 0 8px;font-size:25px}
.escrow-calculator-copy p{margin:0;color:#64798a;font-size:12px;line-height:1.8}
.escrow-calculator-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.escrow-calculator-controls label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#486275}
.escrow-calculator-controls input,.escrow-calculator-controls select{width:100%;height:42px;padding:8px 10px;border:1px solid #d7e1e8;border-radius:7px;background:#fff;font:inherit;font-size:13px}
.escrow-calc-result{grid-column:1/-1;padding:12px 14px;border-radius:8px;background:#102a43;color:#e8f1f6;font-size:12px;line-height:1.8}
.escrow-calc-result b{color:#e2ca97}
.escrow-legal{margin:22px 0 26px;line-height:1.8}
.escrow-apply{margin-top:10px}
.escrow-apply .section-head{margin-bottom:15px}
.escrow-form-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.75fr) minmax(0,1fr);gap:12px}
.escrow-form-grid label{margin:0}
.escrow-apply-login{text-align:center}
.escrow-apply-login p{max-width:560px;margin:8px auto 16px;color:#64798a}
.escrow-fee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 26px}
.escrow-fee-card{padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff}
.escrow-fee-card>span{font-size:10px;letter-spacing:.14em;color:#8293a0;font-weight:800}
.escrow-fee-card h3{margin:6px 0 12px;font-size:18px}
.escrow-fee-amount{font-family:Manrope,Arial,sans-serif;font-size:28px;font-weight:800;color:var(--navy);line-height:1.2}
.escrow-fee-amount small{font-family:'DM Sans',Arial,sans-serif;font-size:10px;color:#8192a0;font-weight:600}
.escrow-fee-rate{margin-top:3px;color:#b28a4a;font-size:15px;font-weight:800}
.escrow-fee-rate small{color:#8192a0;font-size:10px;font-weight:600}
.escrow-fee-card p{margin:12px 0 0;color:#64798a;font-size:12px;line-height:1.7}
.escrow-fee-notes{margin-top:8px}
.escrow-fee-notes .table-wrap{margin-bottom:12px}
.escrow-fee-notes table{min-width:680px}
@media(max-width:950px){
  .escrow-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .escrow-fee-grid{grid-template-columns:1fr}
  .escrow-process-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .escrow-detail-grid{grid-template-columns:1fr;gap:18px}
  .escrow-calculator{grid-template-columns:1fr}
}
@media(max-width:850px){
  .escrow-hero{grid-template-columns:1fr;padding:30px 24px}
  .escrow-hero-panel{min-height:120px}
  .escrow-form-grid{grid-template-columns:1fr 1fr}
  .escrow-form-grid label:first-child{grid-column:1/-1}
}
@media(max-width:640px){
  .escrow-plan-grid{grid-template-columns:1fr}
  .escrow-plan-lead{min-height:0}
  .escrow-process-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .escrow-detail{padding:16px}
  .escrow-detail-head{flex-wrap:wrap}
  .escrow-detail-fee{margin-left:53px}
  .escrow-calculator{padding:18px}
  .escrow-calculator-controls{grid-template-columns:1fr}
  .escrow-calc-result{grid-column:auto}
  .escrow-form-grid{grid-template-columns:1fr}
  .escrow-form-grid label:first-child{grid-column:auto}
  .escrow-fee-notes table{min-width:620px}
}
#escrow-plans,#escrow-apply,#plan-bank,#plan-barter,#plan-digital{scroll-margin-top:96px}

/* Billing and case-detail additions. */
.escrow-form-grid .span-2{grid-column:span 2}
.escrow-case-summary{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(0,1.28fr);gap:14px;margin:18px 0}
.escrow-case-status{display:flex;flex-direction:column;justify-content:center;padding:22px;border-radius:14px;background:linear-gradient(140deg,#102a43,#1d5975);color:#fff;min-height:170px}
.escrow-case-status>span{font-size:10px;letter-spacing:.16em;color:#d9c08a;font-weight:800}
.escrow-case-status>b{display:block;margin:10px 0 8px;font-family:Manrope,Arial,sans-serif;font-size:24px;line-height:1.3}
.escrow-case-status>small{color:#d3e2eb;font-size:12px;line-height:1.75}
.escrow-case-status.status-cancelled{background:linear-gradient(140deg,#4c2b33,#733b45)}
.escrow-case-status.status-completed{background:linear-gradient(140deg,#174b3d,#26765c)}
.escrow-case-status.status-disputed{background:linear-gradient(140deg,#5b3424,#8a4f32)}
.escrow-case-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--line)}
.escrow-case-metrics>div{display:flex;flex-direction:column;gap:5px;padding:16px;background:#fff;min-width:0}
.escrow-case-metrics span{font-size:10px;letter-spacing:.06em;color:#8293a0;font-weight:700}
.escrow-case-metrics b{font-size:14px;color:#18364d;line-height:1.5;overflow-wrap:anywhere}
.escrow-case-block{margin:16px 0}
.escrow-case-block>h2{margin-top:0}
.escrow-fee-table{min-width:0;width:100%;table-layout:fixed}
.escrow-fee-table th,.escrow-fee-table td{overflow-wrap:anywhere}
.escrow-fee-table th:nth-child(1){width:22%}.escrow-fee-table th:nth-child(2){width:15%}.escrow-fee-table th:nth-child(3){width:14%}.escrow-fee-table th:nth-child(4){width:14%}.escrow-fee-table th:nth-child(5){width:35%}
.escrow-fee-table td{vertical-align:top}
.escrow-fee-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:20px;font-size:10px;font-weight:800;white-space:nowrap}
.fs-not_due{background:#eef2f5;color:#64798a}
.fs-due{background:#fff1dc;color:#9a641e}
.fs-submitted{background:#e8f1fa;color:#25658f}
.fs-verified{background:#e7f5ee;color:#26765c}
.fs-cancelled,.fs-waived{background:#f1eef0;color:#7d6b73}
.escrow-inline-form{display:flex;gap:6px;align-items:center;margin-top:7px}
.escrow-inline-form input{min-width:0;width:190px;padding:7px 8px;border:1px solid #d7e1e8;border-radius:5px;font-size:11px}
.escrow-inline-form .btn{white-space:nowrap;padding:7px 10px;font-size:11px}
.escrow-record-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.escrow-record-grid>div{display:flex;flex-direction:column;gap:5px;padding:15px;border:1px solid var(--line);border-radius:10px;background:#fbfcfd}
.escrow-record-grid span{font-size:10px;color:#8293a0;font-weight:700}
.escrow-record-grid b{font-size:18px;color:#18364d}
.escrow-record-grid small{color:#7b8e9d;font-size:11px;overflow-wrap:anywhere}
.escrow-timeline{position:relative;display:grid;gap:14px;margin-top:16px;padding-left:9px}
.escrow-timeline-item{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:11px}
.escrow-timeline-item:not(:last-child)::before{content:"";position:absolute;left:7px;top:18px;bottom:-16px;width:1px;background:#dce6ec}
.escrow-timeline-dot{width:15px;height:15px;border-radius:50%;background:#fff;border:4px solid #c5a66a;margin-top:2px;z-index:1}
.escrow-timeline-item b{font-size:12px;color:#29465d}
.escrow-timeline-item small{display:block;margin-top:2px;color:#8293a0;font-size:10px}
.escrow-timeline-item p{margin:5px 0 0;color:#64798a;font-size:12px;line-height:1.7}
.escrow-admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}
.escrow-admin-actions form{margin:0}
.escrow-admin-actions .btn{font-size:12px;padding:9px 12px}
.escrow-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.escrow-admin-form{padding:15px;border:1px solid var(--line);border-radius:10px;background:#fbfcfd}
.escrow-admin-form h3{margin:0 0 10px;font-size:14px}
.escrow-admin-form label{margin-bottom:9px;font-size:11px}
.escrow-admin-form input,.escrow-admin-form textarea{width:100%;padding:9px 10px;border:1px solid #d7e1e8;border-radius:6px;background:#fff;font:inherit;font-size:12px}
.escrow-admin-form .btn{font-size:12px}
.escrow-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 20px}
.escrow-admin-stats>div{display:flex;align-items:baseline;gap:9px;padding:15px 18px;border:1px solid var(--line);border-radius:11px;background:#fff}
.escrow-admin-stats b{font-family:Manrope,Arial,sans-serif;font-size:28px;color:var(--navy)}
.escrow-admin-stats span{font-size:11px;color:#64798a}
.escrow-admin-table{min-width:980px}
.escrow-admin-table td{vertical-align:top}
@media(max-width:850px){
  .escrow-case-summary{grid-template-columns:1fr}
  .escrow-case-metrics{grid-template-columns:1fr 1fr}
  .escrow-admin-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .escrow-form-grid .span-2{grid-column:auto}
  .escrow-case-metrics{grid-template-columns:1fr}
  .escrow-record-grid{grid-template-columns:1fr}
  .escrow-admin-stats{grid-template-columns:1fr}
  .escrow-inline-form{flex-wrap:wrap}
  .escrow-inline-form input{width:100%}
  .escrow-admin-actions .btn{width:100%}
  .escrow-admin-actions form{width:100%}
}

/* Supplement materials and attachment list. */
.escrow-info-request{margin:16px 0;padding:18px;border:1px solid #e8d9b8;border-radius:12px;background:#fffaf0}
.escrow-info-request .notice{margin:0 0 12px;background:#fff;border-color:#eadcc0}
.escrow-supplement-form{padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.escrow-supplement-form h3{margin:0 0 10px;font-size:16px}
.escrow-supplement-form label{margin-bottom:10px;font-size:12px}
.escrow-supplement-form textarea,.escrow-supplement-form input[type=file]{width:100%;padding:10px;border:1px solid #d7e1e8;border-radius:6px;background:#fff;font:inherit;font-size:12px}
.escrow-supplement-form small{display:block;margin-top:5px;color:#7b8e9d;font-size:10px}
.escrow-attachment-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.escrow-attachment-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;padding:10px 12px;border:1px solid #e6edf1;border-radius:8px;background:#fbfcfd}
.escrow-attachment-list a{color:var(--blue);font-weight:700;font-size:13px;overflow-wrap:anywhere}
.escrow-attachment-list small{color:#8293a0;font-size:10px}
.escrow-need-info-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.escrow-need-info-form input{min-width:240px;padding:8px 10px;border:1px solid #d7e1e8;border-radius:5px;background:#fff;font:inherit;font-size:11px}

/* Step-by-step flow, payment instruction and admin next action. */
.escrow-step-panel{display:grid;grid-template-columns:minmax(240px,.62fr) minmax(0,1.38fr);gap:14px;margin:18px 0}
.escrow-next-action{padding:18px;border-radius:12px;background:linear-gradient(140deg,#102a43,#1d5975);color:#fff}
.escrow-next-action>span{font-size:10px;letter-spacing:.15em;color:#d9c08a;font-weight:800}
.escrow-next-action>b{display:block;margin:8px 0 7px;font-size:18px}
.escrow-next-action>p{margin:0;color:#d3e2eb;font-size:12px;line-height:1.75}
.escrow-stepper{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:0;margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.escrow-stepper li{position:relative;display:flex;flex-direction:column;gap:7px;padding:14px 10px 13px;border-right:1px solid #edf2f5;min-width:0}
.escrow-stepper li:last-child{border-right:0}
.escrow-stepper .step-no{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#eef3f6;color:#8293a0;font-size:10px;font-weight:800}
.escrow-stepper li b{font-size:11px;line-height:1.4;color:#486275}
.escrow-stepper li small{font-size:9px;line-height:1.5;color:#8b9ba7}
.escrow-stepper li.step-done .step-no{background:#26765c;color:#fff}
.escrow-stepper li.step-done b{color:#26765c}
.escrow-stepper li.step-current{background:#f3f9fc}
.escrow-stepper li.step-current .step-no{background:var(--navy);color:#fff;box-shadow:0 0 0 4px #dceef5}
.escrow-stepper li.step-current b{color:var(--navy)}
.escrow-stepper li.step-blocked .step-no{background:#9a5148;color:#fff}
.escrow-stepper li.step-blocked b{color:#9a5148}
.escrow-payment-request{margin:16px 0;padding:20px;border:1px solid #d9e4ea;border-radius:12px;background:#fff}
.escrow-payment-head{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}
.escrow-payment-head>div{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:9px;background:#f7fafb}
.escrow-payment-head span{font-size:10px;color:#8293a0;font-weight:700}
.escrow-payment-head b{font-size:20px;color:#18364d}
.escrow-payment-request .escrow-supplement-form{margin-top:12px;background:#fbfcfd}
@media(max-width:1050px){.escrow-step-panel{grid-template-columns:1fr}.escrow-stepper{grid-template-columns:repeat(5,minmax(0,1fr))}.escrow-stepper li:nth-child(5){border-right:0}.escrow-stepper li:nth-child(n+6){border-top:1px solid #edf2f5}}
@media(max-width:640px){.escrow-stepper{grid-template-columns:1fr}.escrow-stepper li{border-right:0;border-bottom:1px solid #edf2f5;flex-direction:row;align-items:flex-start}.escrow-stepper li:last-child{border-bottom:0}.escrow-payment-head{grid-template-columns:1fr}}

@media(max-width:900px){.escrow-payment-head{grid-template-columns:1fr 1fr}}


/* Shipping hand-off. */
.escrow-shipping-card{margin:16px 0;padding:20px;border:1px solid #d9e4ea;border-radius:12px;background:#fff}
.escrow-shipping-head{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}
.escrow-shipping-head>div{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:9px;background:#f7fafb}
.escrow-shipping-head span{font-size:10px;color:#8293a0;font-weight:700}
.escrow-shipping-head b{font-size:14px;color:#18364d;overflow-wrap:anywhere}
.escrow-shipping-card .escrow-supplement-form{margin-top:12px;background:#fbfcfd}
@media(max-width:900px){.escrow-shipping-head{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.escrow-shipping-head{grid-template-columns:1fr}}


/* Escrow cases and three-rule carousel. */
.escrow-cases{margin:30px 0 24px;padding:24px;border:1px solid #e3ebf0;border-radius:16px;background:linear-gradient(180deg,#fff 0%,#f8fbfc 100%)}
.escrow-cases-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}
.escrow-cases-head h2{margin:7px 0 6px;font-size:26px}
.escrow-cases-head p{margin:0;color:#64798a;font-size:12px;line-height:1.7}
.escrow-case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;min-width:0}
.escrow-case-card{position:relative;display:flex;flex-direction:column;min-width:0;max-width:100%;padding:0;overflow:hidden;border:1px solid #e3ebf0;border-top:3px solid #2878a8;border-radius:10px;background:#fff;box-shadow:0 8px 22px #17324a07}
.escrow-case-card.case-barter{border-top-color:#b28a4a}.escrow-case-card.case-digital{border-top-color:#26765c}
.escrow-case-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:.11em;color:#8293a0;font-weight:800}
.escrow-case-top b{color:#b28a4a;letter-spacing:.08em}
.escrow-case-card h3{margin:11px 0 7px;font-size:17px;line-height:1.45}
.escrow-case-body>p{margin:0 0 12px;color:#64798a;font-size:11px;line-height:1.75}
.escrow-case-flow{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:auto 0 11px;padding-top:7px}
.escrow-case-flow span{padding:5px 7px;border:1px solid #e4ebf0;border-radius:5px;background:#f9fbfc;color:#486275;font-size:9px;font-weight:700}
.escrow-case-flow i{color:var(--gold);font-style:normal;font-size:12px}
.escrow-case-card small{color:#8293a0;font-size:9px;border-top:1px solid #edf2f5;padding-top:8px}
.escrow-plan-carousel{margin:14px 0 26px;border:1px solid #dce6ec;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 12px 34px #17324a0a}
.escrow-carousel-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f6f9fb;border-bottom:1px solid #e3ebf0}
.escrow-carousel-tab{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:9px;align-items:center;text-align:left;padding:14px 16px;border:0;border-right:1px solid #e3ebf0;background:transparent;color:#486275;font:inherit;cursor:pointer;min-width:0}
.escrow-carousel-tab:last-child{border-right:0}
.escrow-carousel-tab>span{grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#e8f0f4;color:#486275;font-size:10px;font-weight:800}
.escrow-carousel-tab>b{font-size:13px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.escrow-carousel-tab>small{font-size:8px;letter-spacing:.12em;color:#8b9ba7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.escrow-carousel-tab:hover{background:#edf4f8}
.escrow-carousel-tab.active{background:var(--navy);color:#fff}
.escrow-carousel-tab.active>span{background:#ffffff24;color:#fff}
.escrow-carousel-tab.active>small{color:#c7dbe6}
.escrow-carousel-viewport{min-height:430px}
.escrow-slide{display:none;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);min-height:430px}
.escrow-slide.active{display:grid;animation:escrowSlideIn .25s ease}
.escrow-slide[hidden]{display:none!important}
@keyframes escrowSlideIn{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
.escrow-slide-overview{padding:26px;border-right:1px solid #edf2f5;display:flex;flex-direction:column;min-width:0}
.escrow-slide-kicker{display:flex;align-items:center;gap:9px}
.escrow-slide-kicker>span{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;font-size:11px;font-weight:800}
.escrow-slide-kicker>small{font-size:9px;letter-spacing:.17em;color:#8293a0;font-weight:800}
.escrow-slide-overview h3{margin:14px 0 8px;font-size:25px;line-height:1.3}
.escrow-slide-fee-detail{margin:4px 0 12px;color:#7b8e9d;font-size:11px}
.escrow-slide-cta{align-self:flex-start;margin-top:auto}
.escrow-slide-detail{padding:26px;display:grid;grid-template-columns:1fr 1fr;gap:24px;min-width:0}
.escrow-slide-detail h4{margin:0 0 9px;font-size:11px;letter-spacing:.08em;color:#486275}
.escrow-slide-detail h4:not(:first-child){margin-top:19px}
.escrow-carousel-footer{display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 16px;border-top:1px solid #edf2f5;background:#fbfcfd}
.escrow-carousel-arrow{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d7e1e8;border-radius:50%;background:#fff;color:var(--navy);font-size:15px;cursor:pointer}
.escrow-carousel-arrow:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.escrow-carousel-dots{display:flex;align-items:center;gap:6px;margin:0 4px}
.escrow-carousel-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#c9d7e1;cursor:pointer}
.escrow-carousel-dot.active{width:22px;border-radius:10px;background:var(--navy)}
.escrow-carousel-hint{font-size:9px;color:#8b9ba7;margin-left:4px}
@media(max-width:1050px){.escrow-case-grid{grid-template-columns:1fr 1fr}.escrow-slide{grid-template-columns:1fr}.escrow-slide-overview{border-right:0;border-bottom:1px solid #edf2f5}.escrow-carousel-viewport{min-height:0}}
@media(max-width:700px){.escrow-cases{padding:18px}.escrow-cases-head{display:block}.escrow-cases-head .text-link{display:inline-block;margin-top:9px}.escrow-case-grid{grid-template-columns:1fr}.escrow-carousel-tabs{display:grid;grid-template-columns:1fr;overflow:visible}.escrow-carousel-tab{min-width:0;border-right:0;border-bottom:1px solid #e3ebf0;padding:13px 15px}.escrow-carousel-tab:last-child{border-bottom:0}.escrow-slide-overview,.escrow-slide-detail{padding:19px}.escrow-slide-detail{grid-template-columns:1fr;gap:8px}.escrow-carousel-hint{display:none}.escrow-slide-overview h3{font-size:21px}}
@media(prefers-reduced-motion:reduce){.escrow-slide.active{animation:none}}

.escrow-case-media{width:100%;aspect-ratio:16/9;overflow:hidden;background:#e8eef2}
.escrow-case-media img{display:block;width:100%;height:100%;object-fit:cover}
.escrow-case-body{display:flex;flex-direction:column;flex:1;min-width:0;padding:17px}
.escrow-cases{overflow:hidden}


/* Keep the escrow cases section inside the shared container. */
.escrow-cases.portal-cases{
  width:min(1280px,calc(100% - 48px));
  max-width:100%;
  margin:34px auto 24px;
  box-sizing:border-box;
  overflow-x:clip;
}
.escrow-cases.portal-cases .escrow-case-grid{
  width:100%;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.escrow-cases.portal-cases .escrow-case-card{
  width:100%;
  max-width:100%;
}
@media(max-width:700px){
  .escrow-cases.portal-cases{width:calc(100% - 28px);margin:22px auto 18px}
}

/* ESO fee payment + responsive billing */
.escrow-eso-balance{margin:0 0 10px;padding:9px 11px;border:1px solid #dbe8ef;border-radius:7px;background:#f4fafd;color:#5f7889;font-size:10px;line-height:1.6}
.escrow-eso-balance b{color:#173b55}
.escrow-eso-balance a{color:#0b6ea8;font-weight:700}
.escrow-eso-form{margin-bottom:6px}
.escrow-eso-form .btn{background:#d9b56a;color:#20313d;border:0}
.escrow-eso-form .btn:hover{background:#e8c77e}

@media(max-width:700px){
  .escrow-fee-table{display:block;min-width:0;width:100%}
  .escrow-fee-table tr:first-child{display:none}
  .escrow-fee-table tr{display:block;margin:0 0 10px;padding:10px 11px;border:1px solid #dfe8ed;border-radius:8px;background:#fff}
  .escrow-fee-table td{display:grid;grid-template-columns:86px minmax(0,1fr);gap:8px;padding:5px 0;border:0;min-width:0;overflow-wrap:anywhere}
  .escrow-fee-table td::before{content:attr(data-label);color:#8293a0;font-size:9px;font-weight:800;line-height:1.6}
  .escrow-fee-table td:last-child{display:block;margin-top:4px;padding-top:8px;border-top:1px solid #edf2f5}
  .escrow-fee-table td:last-child::before{display:block;margin-bottom:4px}
  .escrow-inline-form{flex-wrap:wrap;align-items:stretch}
  .escrow-inline-form input{width:100%;flex:1 1 100%}
  .escrow-inline-form .btn{flex:1 1 auto;white-space:normal}
}

/* Contain the escrow detail page on wide billing tables. */
.escrow-detail-page,.escrow-detail-grid,.escrow-detail-main{min-width:0;max-width:100%}
.escrow-detail-main>.account-card{min-width:0;max-width:100%;overflow:hidden}
.escrow-detail-main .table-wrap{width:100%;max-width:100%;overflow-x:auto}
.escrow-fee-table{max-width:100%}

/* Escrow two-method payment panel */
.escrow-pay-panel{margin-top:14px;padding:14px;border:1px solid #dfe8ed;border-radius:10px;background:#f8fbfc}
.escrow-pay-panel>h3{margin:0 0 10px;font-size:13px;color:#173b55}
.escrow-pay-invoice{padding:12px;border:1px solid #e1e9ee;border-radius:8px;background:#fff}
.escrow-pay-invoice+.escrow-pay-invoice{margin-top:10px}
.escrow-pay-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:1px solid #edf2f5}
.escrow-pay-head b{font-size:12px;color:#173b55}.escrow-pay-head span{font-size:14px;font-weight:800;color:#173b55}
.escrow-pay-methods{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:11px}
.escrow-pay-method{padding:11px;border:1px solid #e1e9ee;border-radius:7px;background:#fbfdfe;min-width:0}
.escrow-pay-method b{display:block;margin:5px 0 3px;color:#173b55;font-size:11px}
.escrow-pay-method p{margin:0 0 8px;color:#708694;font-size:9px;line-height:1.55}
.escrow-pay-no{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e2ca97;color:#20313d;font-size:9px;font-weight:800}
.escrow-pay-form{display:flex;flex-direction:column;gap:6px}
.escrow-pay-form input{width:100%;padding:8px 9px;border:1px solid #d7e1e8;border-radius:5px;background:#fff;font:inherit;font-size:10px;min-width:0}
.escrow-pay-form .btn{width:100%;justify-content:center;padding:8px 10px;font-size:10px}
.escrow-pay-balance{margin:0 0 8px;color:#526a7c;font-size:10px}
.escrow-pay-balance b{color:#173b55}
@media(max-width:700px){
  .escrow-pay-panel{padding:10px}
  .escrow-pay-methods{grid-template-columns:1fr}
  .escrow-pay-invoice{padding:10px}
}

/* Mobile: one-column detail and payment methods. */
@media(max-width:700px){
  .escrow-detail-page{overflow-x:hidden}
  .escrow-case-block{max-width:100%;overflow:hidden}
  .escrow-fee-table{max-width:100%}
  .escrow-pay-methods{grid-template-columns:1fr}
  .escrow-pay-card{max-width:100%}
}

@media(max-width:700px){
  .portal-page{max-width:100%;overflow-x:hidden}
  .escrow-detail-main>.account-card{max-width:100%;min-width:0}
}

/* Mobile: hard containment for the fee table and payment panel. */
@media(max-width:700px){
  .escrow-case-block{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .escrow-case-block .table-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .escrow-fee-table{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important}
  .escrow-fee-table tbody,.escrow-fee-table tr{display:block!important;width:100%!important;max-width:100%!important}
  .escrow-fee-table td{display:grid!important;width:100%!important;max-width:100%!important;grid-template-columns:76px minmax(0,1fr)!important;gap:8px!important;padding:5px 0!important;border:0!important;min-width:0!important;overflow-wrap:anywhere!important}
  .escrow-fee-table td:last-child{display:block!important;padding-top:8px!important;border-top:1px solid #edf2f5!important}
  .escrow-fee-table td:last-child::before{display:block!important;margin-bottom:4px!important}
  .escrow-fee-table td>*{min-width:0!important;max-width:100%!important}
  .escrow-pay-panel,.escrow-pay-invoice,.escrow-pay-methods,.escrow-pay-method{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
  .escrow-pay-form input{max-width:100%!important}
}

/* H5: h5.css forces tables to 600px. Override it on phones/tablets. */
@media(max-width:860px){
  .escrow-case-metrics{grid-template-columns:1fr!important}
  .escrow-case-block{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .escrow-case-block .table-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .escrow-case-block .table-wrap:before{display:none!important}
  .escrow-fee-table{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important}
  .escrow-fee-table tr:first-child{display:none!important}
  .escrow-fee-table tbody,.escrow-fee-table tr{display:block!important;width:100%!important;max-width:100%!important}
  .escrow-fee-table td{display:grid!important;width:100%!important;max-width:100%!important;grid-template-columns:76px minmax(0,1fr)!important;gap:8px!important;padding:5px 0!important;border:0!important;min-width:0!important;overflow-wrap:anywhere!important}
  .escrow-fee-table td::before{content:attr(data-label);color:#8293a0;font-size:9px;font-weight:800;line-height:1.6}
  .escrow-fee-table td:last-child{display:block!important;padding-top:8px!important;border-top:1px solid #edf2f5!important}
  .escrow-fee-table td:last-child::before{display:block!important;margin-bottom:4px!important}
  .escrow-fee-table td>*{min-width:0!important;max-width:100%!important}
  .escrow-pay-panel,.escrow-pay-invoice,.escrow-pay-methods,.escrow-pay-method{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
  .escrow-pay-methods{grid-template-columns:1fr!important}
  .escrow-pay-form input{max-width:100%!important}
}

/* H5: payment request summary must be one column. */
@media(max-width:860px){
  .escrow-payment-request{width:100%!important;max-width:100%!important;overflow:hidden!important;padding:14px!important}
  .escrow-payment-head{grid-template-columns:1fr!important;gap:8px!important}
  .escrow-payment-head>div{min-width:0!important;max-width:100%!important;padding:11px 12px!important}
  .escrow-payment-head b{font-size:18px!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .escrow-payment-request .notice,.escrow-payment-request p,.escrow-payment-request b{overflow-wrap:anywhere;word-break:break-word}
}
