/* Only the budget guide is given these classes. The visual treatment echoes the white call handset. */
.ap-budget-v2, .abv-phone {
  --abv-ink: #10233b;
  --abv-steel: linear-gradient(110deg,#142940 4%,#476787 34%,#b5cadc 49%,#36516f 66%,#132740 96%);
  --abv-button: linear-gradient(172deg,#446182 0%,#233c59 25%,#101d33 65%,#0b1429 84%,#2c4460 100%);
}
#ap-secretariat > #budget.ap-budget-v2[id="budget"] {
  width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0;
  padding: 0 max(22px,calc((100% - 1140px)/2)) clamp(30px,5vw,70px);
  background: linear-gradient(#f7f9fa,#f9fbfd 60%,#fafbfc); color: var(--abv-ink);
  overflow: clip; scroll-margin-top: 114px;
}
#budget.ap-budget-v2[id="budget"] .abv-hero {
  margin-inline: min(-22px,calc((1140px - 100vw)/2));
  padding: clamp(32px,4.7vw,72px) max(22px,calc((100vw - 1140px)/2)) clamp(32px,4vw,60px);
  background: linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.87) 34%,rgba(255,255,255,.12) 76%),url(https://agentiaautopilot.com/wp-content/uploads/2026/12/autopilot-atelier-telephone-bleu.webp) center right / cover no-repeat;
}
#budget.ap-budget-v2[id="budget"] .abv-kicker {
  display:flex; align-items:center; gap:10px; margin:0 0 15px; color:#40566c;
  font-size:.8rem; font-weight:710; letter-spacing:.03em;
}
.abv-kicker::before { content:""; width:26px; height:2px; background:var(--abv-steel); }
#budget.ap-budget-v2[id="budget"] .abv-hero h2 {
  max-width: min(660px,61%); font-size:clamp(1.75rem,3.8vw,3.25rem); color:#101821;
  line-height:1.04; letter-spacing:-.043em; text-wrap:balance; margin:0;
}
.abv-question {
  color:var(--abv-ink); padding-bottom:.1em;
  background: var(--abv-steel) left bottom / 100% .065em no-repeat;
  -webkit-box-decoration-break:clone; box-decoration-break:clone;
}
#budget.ap-budget-v2[id="budget"] .sim-intro {
  max-width:min(53ch,57%); margin:18px 0 0; color:#364858; line-height:1.46;
  font-size:clamp(.88rem,1.3vw,1.02rem);
}
#budget.ap-budget-v2[id="budget"] .bd-grid {
  position:relative; margin:0 0 15px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0; border:1px solid #c6d3de; border-radius:22px; background:white;
  box-shadow:0 18px 48px -31px #10264077,0 2px 6px #10264008; overflow:hidden;
}
#budget.ap-budget-v2[id="budget"] .bd-card {
  display:grid; grid-template-rows:auto auto 1.8rem auto 1fr; align-content:start; align-items:start;
  background:linear-gradient(145deg,#fff,#fbfdff); border:0; border-radius:0; padding:clamp(18px,2.4vw,35px);
}
#budget.ap-budget-v2[id="budget"] .bd-card:first-child { box-shadow:inset 0 3px #98b3ca; }
#budget.ap-budget-v2[id="budget"] .bd-card + .bd-card { border-left:1px solid #d5dfe6; }
#budget.ap-budget-v2[id="budget"] .bd-card > h3 {
  display:flex; gap:12px; align-items:center; min-height:48px; margin:0 0 12px;
  color:#11243a; font-size:clamp(1.08rem,1.6vw,1.38rem); line-height:1.22;
}
.abv-profile { width:43px; height:43px; object-fit:cover; object-position:50% 27%; border-radius:50%; box-shadow:0 0 0 1px #98afc4; }
#budget.ap-budget-v2[id="budget"] .bd-card + .bd-card > h3::before {
  content:""; width:29px; height:29px; margin:0 5px;
  background:var(--abv-ink); mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4m10-4v4M3 10h18m-14 4h3m3 0h3'/%3E%3C/svg%3E") center/contain no-repeat; flex:none;
}
#budget.ap-budget-v2[id="budget"] .bd-dial-note { margin:0; font-size:.8rem; line-height:1.3; color:#41576b; }
#budget.ap-budget-v2[id="budget"] .mn-quote, #budget.ap-budget-v2[id="budget"] .bd-human-total {
  grid-row:4; align-self:start; margin:7px 0 0; padding:17px 18px; border-radius:12px; border:1px solid #dce5eb; color:#10233b;
}
#budget.ap-budget-v2[id="budget"] .mn-quote { background:linear-gradient(118deg,#e7f2f9,#f6fafd 85%); }
#budget.ap-budget-v2[id="budget"] .bd-human-total { background:linear-gradient(118deg,#eef1f4,#f8f9fa); }
#budget.ap-budget-v2[id="budget"] .mn-quote h3, #budget.ap-budget-v2[id="budget"] .bd-human-total small {
  font-size:.91rem; font-weight:650; line-height:1.4; margin:0 0 6px; color:#31495f;
}
#budget.ap-budget-v2[id="budget"] .mn-amount, #budget.ap-budget-v2[id="budget"] .bd-human-total output {
  color:#10233b; font-size:clamp(1.85rem,3.4vw,3rem); font-variant-numeric:tabular-nums;
  line-height:1.1; letter-spacing:-.045em; font-weight:740;
}
#budget.ap-budget-v2[id="budget"] :is(.mn-tax,.mn-allocation,.bd-formula,.bd-source) { color:#354c61; }
#budget.ap-budget-v2[id="budget"] .bd-source { margin-top:14px; }
#budget.ap-budget-v2[id="budget"] .bd-try-also { color:#183e64; }
#budget.ap-budget-v2[id="budget"] a.mn-cta {
  background:var(--abv-button); color:white; border:1px solid #192e46; border-radius:10px;
  box-shadow:inset 0 1px 0 #c6e2fc7a,0 3px 8px #18355327; font-weight:680;
}
#budget.ap-budget-v2[id="budget"] a.mn-cta { padding:9px 16px; }
#budget.ap-budget-v2[id="budget"] a.mn-cta:hover { filter:brightness(1.14); }
#budget.ap-budget-v2[id="budget"] .sim-range::-webkit-slider-runnable-track { height:5px; background:linear-gradient(to right,#203b59 0 var(--fill),#cbd8e2 var(--fill) 100%); }
#budget.ap-budget-v2[id="budget"] .sim-range::-moz-range-track { height:5px; background:#cbd8e2; }
#budget.ap-budget-v2[id="budget"] .sim-range::-moz-range-progress { background:#203b59; }
#budget.ap-budget-v2[id="budget"] .sim-range::-webkit-slider-thumb { margin-top:-9.5px; background:linear-gradient(#fff,#d7e8f4); border:2px solid #25425e; box-shadow:0 1px 4px #0f243636; }
#budget.ap-budget-v2[id="budget"] .sim-range::-moz-range-thumb { background:linear-gradient(#fff,#d7e8f4); border:2px solid #25425e; }
html body.abv-has-phone .aia-chat[data-aia-chat][data-compact][data-aia-lea], html body.abv-has-phone .aia-chat[data-aia-chat][data-compact] { display:none!important; }
@media (max-width:760px) {
  #ap-secretariat > #budget.ap-budget-v2[id="budget"] { padding-inline:14px; }
  #budget.ap-budget-v2[id="budget"] .abv-hero { margin-inline:-14px; padding:30px 19px; background-position:65% center; background-image:linear-gradient(90deg,#ffffffef,#ffffffdb 50%,#ffffff66),url(https://agentiaautopilot.com/wp-content/uploads/2026/12/autopilot-atelier-telephone-bleu-768x256.webp); }
  #budget.ap-budget-v2[id="budget"] .abv-hero h2 { max-width:25ch; }
  #budget.ap-budget-v2[id="budget"] .sim-intro { max-width:42ch; }
  #budget.ap-budget-v2[id="budget"] .bd-grid { grid-template-columns:1fr; border-radius:16px; }
  #budget.ap-budget-v2[id="budget"] .bd-card { display:block; }
  #budget.ap-budget-v2[id="budget"] .bd-card + .bd-card { border-left:0; border-top:1px solid #d5dfe6; }
  #budget.ap-budget-v2[id="budget"] .mn-quote,#budget.ap-budget-v2[id="budget"] .bd-human-total { margin-top:10px; }
}

.sg .sg-editorial-photo .abv-credit { display:block; font-size:.75rem; color:#4b6175; margin-top:.3em; }

#budget.ap-budget-v2[id="budget"] .bd-card > :is(.bd-source,.mn-estimate) { grid-row:5; }
/* Standby view of the white Autopilot handset. Its frame, notch and portrait
   ring use the finishes from the in-call phone. Only the green key starts a call. */
body.abv-has-phone {
  --abv-device:min(306px,17vw,calc((100dvh - 160px) * .471));
  --abv-edge:clamp(12px,1.3vw,26px);
  --abv-rail:calc(var(--abv-device) + var(--abv-edge) + 22px);
}
body.abv-phone-reduced { --abv-rail:0px; }
body .abv-phone {
  position:fixed; z-index:9998; right:max(var(--abv-edge),env(safe-area-inset-right));
  bottom:max(14px,env(safe-area-inset-bottom)); width:var(--abv-device); aspect-ratio:360/650;
  box-sizing:border-box; container-type:inline-size; margin:0; padding:0; isolation:isolate;
  border-radius:12.5% / 6.93%; color:#0b1020; color-scheme:light; text-align:center;
  font:500 15px/1.45 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(135deg,#15283f 0%,#a6b8c8 12%,#f7fbff 16%,#647b92 21%,#182b43 38%,#c4d2df 56%,#334a63 76%,#b1c6dc 91%,#17283d 100%);
  box-shadow:0 24px 48px -23px #06142688,0 5px 16px #091a2b38,0 0 0 1px #ffffff80;
}
.abv-phone::before {
  content:""; position:absolute; inset:1.66% 1.66%; inset-block:.92%;
  border-radius:11.2% / 6.2%; background:white; box-shadow:0 0 0 1px #23364e5c,inset 0 0 0 1px #fff;
}
.abv-screen { position:absolute; inset:0; padding:0 5%; box-sizing:border-box; display:flex; flex-direction:column; align-items:center; }
.abv-screen[hidden] { display:none; }
.abv-phone .abv-speaker {
  position:absolute; top:3.1%; left:50%; transform:translateX(-50%); width:18.33%; height:2%;
  border-radius:20px; background:linear-gradient(175deg,#26394f,#091323 70%);
  box-shadow:0 0 0 1px #18334f,0 1px 2px #0004,inset 0 1px 2px #ffffff21;
}
.abv-phone .abv-portrait {
  position:relative; flex:none; width:42.78cqw; aspect-ratio:1; margin:30cqw 0 7cqw; border-radius:50%;
  background:linear-gradient(145deg,#102039,#9baec3 24%,#1b334d 48%,#71869d 72%,#11223b);
  box-shadow:0 0 0 1.94cqw #46699121,0 0 0 2.22cqw #2e537b40,0 8px 20px -10px #0b1c363d;
}
.abv-phone .abv-portrait::before { content:""; position:absolute; inset:-3.6cqw; border:1px solid #2e537b22; border-radius:50%; }
.abv-phone .abv-avatar,.abv-phone .abv-initial { position:absolute; inset:2.6%; margin:0; width:94.8%; height:94.8%; border-radius:50%; object-fit:cover; object-position:50% 30%; }
.abv-phone .abv-initial { display:grid; place-items:center; background:#f0f4f8; font-size:11cqw; }
.abv-phone .abv-name { font:750 10.55cqw/1.08 Inter,ui-sans-serif,system-ui,sans-serif; letter-spacing:-.045em; }
.abv-phone .abv-role { color:#566579; font-size:clamp(10px,4cqw,14px); margin-top:1.9cqw; }
.abv-phone .abv-duration { color:#18334f; font-size:clamp(10px,4.2cqw,15px); font-weight:650; margin-top:5cqw; }
.abv-phone button { appearance:none; cursor:pointer; font-family:inherit; margin:0; letter-spacing:normal; text-transform:none; }
.abv-phone button.abv-call {
  --key-size:clamp(48px,23cqw,78px);
  position:absolute; left:50%; bottom:13.5%; transform:translateX(-50%);
  display:grid; place-items:center; box-sizing:border-box; width:var(--key-size); height:var(--key-size);
  min-width:0; min-height:0; padding:0; border:1px solid #148c4d; border-radius:50%;
  color:#fff; background:linear-gradient(155deg,#32c76c,#18a853 72%,#119c4c);
  box-shadow:inset 0 1px 1px #ffffff57,0 3px 9px #0f73382e;
}
.abv-phone .abv-handset {
  display:block; width:48%; height:48%; background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24 11.4 11.4 0 0 0 3.57.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.abv-phone .abv-call-caption {
  position:absolute; top:100%; left:50%; transform:translateX(-50%); padding-top:4px;
  color:#22374d; font-size:clamp(11px,4.2cqw,15px); line-height:1.2; font-weight:650; white-space:nowrap;
}
.abv-phone button.abv-call:hover { background:linear-gradient(155deg,#2cba63,#109449); }
.abv-phone button.abv-call:active { background:#0b8d44; }
.abv-phone .abv-resize {
  position:absolute; right:3.6%; top:1.5%; display:grid; place-items:center; width:clamp(32px,12cqw,44px); height:clamp(32px,12cqw,44px);
  padding:0; border:0; border-radius:50%; background:transparent; color:#465a6d; font-size:22px; line-height:1;
}
.abv-phone .abv-resize:hover { background:#e9f1f7; }
.abv-phone button:focus-visible { outline:3px solid #1d6790; outline-offset:3px; }
body:has(dialog[open],.cmplz-cookiebanner.cmplz-show) .abv-phone { visibility:hidden; }
body .abv-phone.abv-reduced { width:98px; height:52px; aspect-ratio:auto; border-radius:28px; }
.abv-phone.abv-reduced::before { inset:2px; border-radius:26px; }
.abv-phone.abv-reduced .abv-call { --key-size:44px; inset:4px auto auto 4px; transform:none; }
.abv-phone.abv-reduced .abv-call-caption { display:none; }
.abv-phone.abv-reduced .abv-resize { inset:4px 3px auto auto; width:42px; height:44px; }
@media (min-width:1000px) {
  /* Keep the reading column and the hero video clear of the fixed handset. */
  body.abv-has-phone #ap-secretariat { --abv-left:max(22px,calc((100% - var(--abv-rail) - 1140px)/2)); }
  body.abv-has-phone #ap-secretariat .sg-hero { padding-inline-end:var(--abv-rail); }
  body.abv-has-phone #ap-secretariat .sg-hero-inner { grid-template-columns:minmax(0,1fr) clamp(280px,28vw,480px); }
  body.abv-has-phone #ap-secretariat > #budget.ap-budget-v2[id="budget"] {
    padding-inline:var(--abv-left) calc(var(--abv-left) + var(--abv-rail));
  }
  body.abv-has-phone #budget.ap-budget-v2[id="budget"] .abv-hero {
    margin-inline:calc(-1 * var(--abv-left)) calc(-1 * (var(--abv-left) + var(--abv-rail)));
    padding-inline:var(--abv-left) calc(var(--abv-left) + var(--abv-rail));
  }
  body.abv-has-phone #ap-secretariat > :is(.sg-body,.lv-story) {
    max-width:min(1160px,calc(100% - var(--abv-rail) - 24px)); margin-inline-start:max(12px,calc((100% - 1160px - var(--abv-rail))/2));
    margin-inline-end:auto;
  }
}
@media (max-width:999px) {
  body.abv-has-phone { --abv-device:clamp(128px,26vw,174px); --abv-edge:8px; }
  body .abv-phone { bottom:max(8px,env(safe-area-inset-bottom)); }
}
@media (max-height:460px) {
  body.abv-has-phone { --abv-device:126px; }
}

@container (max-width:160px) {
  .abv-phone .abv-portrait { width:38cqw; margin-block:18cqw 5cqw; }
  .abv-phone .abv-role,.abv-phone .abv-duration { line-height:1.2; margin-top:3px; }
  .abv-phone button.abv-call { bottom:12%; }
  .abv-phone.abv-reduced button.abv-call { bottom:auto; }
}
