
/* AI Before & After add-on: native studio upgrade and design choices. */
.ba-ai-package{border:1px solid #c5ddeb;border-radius:20px;overflow:hidden;margin-top:24px;background:linear-gradient(140deg,#f8fbfd,#eef6fb);box-shadow:0 12px 30px #0e395b0b}
.ba-ai-package-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:21px 22px 15px}
.ba-ai-kicker{display:inline-block;font-size:10px;letter-spacing:.15em;font-weight:900;color:#176d98;margin-bottom:8px}
.ba-ai-package h3{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:11px;font-size:22px;letter-spacing:-.03em;color:#143e59}
.ba-ai-package-top p{font-size:13px;max-width:650px;margin:8px 0 0;line-height:1.55;color:#557286}
.ba-ai-price{font-size:12px;color:#16465e;background:white;border:1px solid #bdcfdb;border-radius:100px;padding:6px 10px;letter-spacing:0}
.ba-ai-credit{border:1px solid #9edacb;background:#effbf7;color:#1a6b56;padding:8px 10px;border-radius:12px;font-size:12px;font-weight:800;white-space:nowrap}
.ba-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 22px 17px}
.ba-mode-option{display:flex;gap:12px;align-items:center;cursor:pointer;padding:15px;border:1px solid #c8dce8;border-radius:13px;background:#fff;transition:box-shadow .2s,border-color .2s}
.ba-mode-option:has(input:checked){border-color:#1178b6;box-shadow:0 0 0 2px #0879ba22;background:#f0f9ff}
.ba-mode-option input{accent-color:#066aa7}
.ba-mode-option span{display:grid;gap:3px}
.ba-mode-option strong{color:#144660;font-size:14px}
.ba-mode-option small{font-size:11px;color:#617d8e}
.ba-ai-options{padding:18px 21px 20px;border-top:1px solid #cbdfea;background:#fcfdff}
.ba-ai-options[hidden]{display:none}
.ba-ai-options>p:first-child{font-size:13px;color:#214d69;font-weight:800;margin:0 0 13px}
.ba-ai-styles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.ba-ai-style{display:flex;align-items:end;justify-content:center;min-height:110px;border-radius:13px;cursor:pointer;padding:10px;border:2px solid transparent;position:relative;box-shadow:inset 0 0 0 1px #ffffff5c,0 5px 12px #0c293a13;overflow:hidden}
.ba-ai-style input{position:absolute;top:11px;right:10px;accent-color:#178ad3}
.ba-ai-style .ba-ai-style-text{background:#071c2be0;backdrop-filter:blur(6px);color:#fff;border-radius:7px;padding:7px 9px;font-size:12px;font-weight:800;text-align:center;line-height:1.25}
.ba-ai-style:has(input:checked){border-color:#0280c8;outline:2px solid #79c9ff;outline-offset:1px}
.ba-ai-style-luxury{background:radial-gradient(ellipse at 70% 20%,#f4e9cc,#937b68 50%,#2b3544 90%)}
.ba-ai-style-editorial{background:linear-gradient(145deg,#cddadf 6%,#6f7d82 33%,#142939 34%,#e6e2dc 78%)}
.ba-ai-style-bold{background:radial-gradient(ellipse at 80% 14%,#10e2ff,#1777b9 28%,#0b1835 60%,#502784 95%)}
.ba-ai-style-minimal{background:linear-gradient(125deg,#edeae1,#d1c3b5 38%,#f6f4ed 39%,#9fafa9)}
.ba-ai-footnote{font-size:11px!important;line-height:1.55;color:#567788;margin:14px 0 0}
.ba-ai-unavailable{color:#8a5519;background:#fff6e6;padding:11px;border:1px solid #e5cc99;border-radius:10px;font-size:12px!important}
.ba-ai-package-bottom{border-top:1px solid #d4e3ed;padding:13px 21px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;background:#eef5fa}
.ba-ai-plan-state{font-size:12px;color:#42657a;font-weight:700}
.ba-ai-request{white-space:normal}
@media(max-width:700px){.ba-ai-package-top{align-items:flex-start;flex-direction:column;padding:17px}.ba-mode-options{grid-template-columns:1fr;padding:0 16px 15px}.ba-ai-styles{grid-template-columns:repeat(2,minmax(0,1fr))}.ba-ai-package h3{font-size:19px}.ba-ai-options{padding:16px}.ba-ai-package-bottom{padding:14px}}

/* Credit packs: readable art directions and secure one-time purchase. */
.ba-ai-package .ba-ai-style-text{display:flex;flex-direction:column;align-items:center;gap:3px;background:#081c2be7;color:#fff;border:1px solid #d5e5eb44;backdrop-filter:blur(10px);border-radius:9px;padding:10px 8px;max-width:100%;width:100%;text-align:center}
.ba-ai-style-text strong{font-size:12px;line-height:1.25;font-weight:850;letter-spacing:-.01em}
.ba-ai-style-text small{display:block;font-size:10px;line-height:1.3;color:#d8e6ee;font-weight:450;max-width:100%}
.ba-ai-package .ba-ai-style{min-height:142px;padding:8px}
.ba-ai-package .ba-ai-price{color:#135c73;background:#f0faf9;border-color:#b2d8d7}
.ba-ai-package .ba-ai-credit{color:#135f4b;box-shadow:0 3px 12px #0c4f3615}
.ba-ai-purchase-details{display:block;color:#6e8290;font-size:11px;margin-top:5px;line-height:1.45}
.ba-ai-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ba-ai-buy{white-space:nowrap;font-size:12px}
.ba-ai-buy:disabled{opacity:.6;cursor:not-allowed}
.ba-ai-payment-banner{border-top:1px solid #b8d9c9;border-bottom:1px solid #b8d9c9;background:#edfaf5;padding:12px 21px;color:#135a49;font-size:12px;display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;line-height:1.5}
.ba-ai-package-bottom>div:first-child{flex:1;min-width:180px}
@media(max-width:700px){.ba-ai-package .ba-ai-style{min-height:133px}.ba-ai-actions{width:100%;justify-content:stretch}.ba-ai-actions>.btn{flex:1;white-space:normal}.ba-ai-payment-banner{padding:12px 15px}}

/* Style selectors now show the actual proposed photo arrangements, not just swatches. */
.ba-ai-package .ba-ai-style{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;padding:8px;gap:5px;min-height:161px}
.ba-ai-package .ba-ai-layout-preview{display:block;position:relative;width:78%;max-width:135px;height:65px;flex:none;margin:4px auto 0;border:1px solid #ffffff77;border-radius:6px;background:linear-gradient(135deg,#fff3,#17283554);box-shadow:0 7px 19px #0005;overflow:hidden}
.ba-ai-layout-preview i{position:absolute;display:block;background:linear-gradient(150deg,#faf3e6,#8fa7b4 58%,#34516a);border:1px solid #ffffffcf;box-shadow:0 3px 6px #0004;border-radius:2px}
.ba-ai-style-luxury .ba-ai-layout-preview i:first-child{left:8%;top:12%;height:78%;width:37%}
.ba-ai-style-luxury .ba-ai-layout-preview i:nth-child(2){right:7%;top:6%;height:88%;width:45%}
.ba-ai-style-editorial .ba-ai-layout-preview i:first-child{left:8%;top:7%;width:84%;height:36%}
.ba-ai-style-editorial .ba-ai-layout-preview i:nth-child(2){left:8%;bottom:7%;width:84%;height:45%}
.ba-ai-style-bold .ba-ai-layout-preview i:first-child{left:9%;top:29%;width:41%;height:59%;z-index:2;border-width:2px}
.ba-ai-style-bold .ba-ai-layout-preview i:nth-child(2){right:5%;top:5%;width:65%;height:87%}
.ba-ai-style-minimal .ba-ai-layout-preview i:first-child{left:7%;top:10%;width:40%;height:80%;box-shadow:none}
.ba-ai-style-minimal .ba-ai-layout-preview i:nth-child(2){right:7%;top:10%;width:40%;height:80%;box-shadow:none}
.ba-ai-package .ba-ai-style-text{flex:1;width:100%;justify-content:center}
@media(max-width:700px){.ba-ai-package .ba-ai-style{min-height:155px}}

/* Client-side, genuine-photo previews: no stock photography, placeholder frames,
   model calls, uploads, credits or fabricated results in the style picker. */
.ba-ai-package .ba-ai-style{
  min-height:243px;
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
  justify-content:space-between;
  background:#172d3b;
}
.ba-ai-package .ba-ai-style-luxury{background:linear-gradient(155deg,#d6c6ae,#716251 55%,#292e36)}
.ba-ai-package .ba-ai-style-editorial{background:linear-gradient(145deg,#dfe5e3,#9facb1 55%,#293c47)}
.ba-ai-package .ba-ai-style-bold{background:radial-gradient(ellipse at 85% 15%,#17bef7,#143954 58%,#171d35)}
.ba-ai-package .ba-ai-style-minimal{background:linear-gradient(150deg,#edece7,#c3c7c0 60%,#9da7a1)}
.ba-ai-package .ba-ai-live-preview{
  display:block;
  flex:1;
  position:relative;
  width:100%;
  min-height:144px;
  overflow:hidden;
  border:1px solid #f4f4f5b0;
  border-radius:8px;
  background:linear-gradient(130deg,#183b4b,#6c8290);
  padding:0;
  box-shadow:0 10px 28px #081d3250;
  max-width:none;
  margin:0;
}
.ba-ai-package .ba-ai-live-scene{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  margin:0;
  padding:0;
  box-shadow:none;
  background:transparent;
  overflow:hidden;
  backdrop-filter:none;
}
.ba-ai-live-scene img{
  position:absolute;
  display:block;
  height:auto;
  object-fit:cover;
  border:0;
  box-shadow:none;
  border-radius:0;
  max-width:none;
}
.ba-ai-live-scene img[hidden]{display:none!important}
.ba-ai-package .ba-ai-scene-empty{
  display:grid;
  place-items:center;
  position:absolute;
  inset:0;
  text-align:center;
  font-size:12px;
  line-height:1.5;
  font-weight:800;
  letter-spacing:.01em;
  color:#ffffffee;
  background:radial-gradient(circle at 20% 10%,#ffffff35,transparent 50%);
  padding:10px;
  text-shadow:0 1px 4px #001c2c7a;
}
.ba-ai-has-photos .ba-ai-scene-empty{display:none!important}
.ba-ai-package .ba-ai-scene-label{
  display:none;
  position:absolute;
  color:#fff;
  background:#0e2439e0;
  text-shadow:none;
  border-radius:3px;
  padding:3px 6px;
  font-weight:850;
  font-size:9px;
  letter-spacing:.12em;
  line-height:1.25;
  box-shadow:0 2px 8px #07121b32;
}
.ba-ai-has-photos .ba-ai-scene-label{display:block}
.ba-ai-package .ba-ai-live-note{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  display:block;
  padding:5px 7px;
  z-index:5;
  color:#fff;
  font-weight:700;
  font-size:9px;
  letter-spacing:.015em;
  text-shadow:0 1px 4px #07121c;
  background:linear-gradient(0deg,#0b2034dd,#0b203400);
  border:0;
  border-radius:0;
  box-shadow:none;
  backdrop-filter:none;
}
.ba-ai-style-luxury .ba-ai-live-scene{background:linear-gradient(135deg,#b8a48a,#373b43)}
.ba-ai-style-luxury .ba-ai-photo-before{left:6%;top:10%;width:37%;height:77%;border:2px solid #eedbc8;box-shadow:0 5px 18px #19110d80}
.ba-ai-style-luxury .ba-ai-photo-after{right:5%;top:4%;width:48%;height:84%;border:2px solid #e1c394;box-shadow:0 5px 19px #19110d80}
.ba-ai-style-luxury .ba-ai-label-before{top:12%;left:9%}
.ba-ai-style-luxury .ba-ai-label-after{top:8%;right:8%}
.ba-ai-style-editorial .ba-ai-live-scene{background:linear-gradient(100deg,#d8dedc,#b1c3ca)}
.ba-ai-style-editorial .ba-ai-photo-before{left:6%;top:5%;width:88%;height:34%;box-shadow:0 3px 9px #091f2530}
.ba-ai-style-editorial .ba-ai-photo-after{left:6%;top:45%;width:88%;height:48%;box-shadow:0 4px 11px #091f2530}
.ba-ai-style-editorial .ba-ai-label-before{top:8%;left:9%}
.ba-ai-style-editorial .ba-ai-label-after{top:48%;left:9%}
.ba-ai-style-bold .ba-ai-live-scene{background:linear-gradient(135deg,#06416b,#15142e)}
.ba-ai-style-bold .ba-ai-photo-after{right:4%;top:4%;width:76%;height:89%;border-radius:6px;box-shadow:0 4px 24px #090b1b8c}
.ba-ai-style-bold .ba-ai-photo-before{left:5%;top:30%;width:43%;height:56%;border:3px solid #ffffffec;z-index:2;border-radius:4px;box-shadow:0 6px 19px #0a0d2299}
.ba-ai-style-bold .ba-ai-label-before{left:9%;top:33%;z-index:3}
.ba-ai-style-bold .ba-ai-label-after{right:8%;top:9%}
.ba-ai-style-minimal .ba-ai-live-scene{background:#f4f0e9}
.ba-ai-style-minimal .ba-ai-photo-before{left:5%;top:7%;width:43%;height:85%}
.ba-ai-style-minimal .ba-ai-photo-after{right:5%;top:7%;width:43%;height:85%}
.ba-ai-style-minimal .ba-ai-label-before{left:8%;top:10%}
.ba-ai-style-minimal .ba-ai-label-after{right:8%;top:10%}
.ba-ai-package .ba-ai-style-text{width:100%;flex:none;min-height:56px;padding:8px 6px}
.ba-ai-package .ba-ai-style-text strong{font-size:12px}
.ba-ai-package .ba-ai-style-text small{font-size:10px}
@media(max-width:700px){
 .ba-ai-package .ba-ai-style{min-height:224px}
 .ba-ai-package .ba-ai-live-preview{min-height:131px}
}
/* Bold Impact is a full-bleed diagonal BEFORE reveal, not floating frames. */
.ba-ai-style-bold .ba-ai-photo-after{left:4%;top:5%;width:92%;height:85%;border:0;border-radius:5px;z-index:1;box-shadow:0 8px 25px #050c27bb}
.ba-ai-style-bold .ba-ai-photo-before{left:4%;top:5%;width:92%;height:85%;border:0;border-radius:5px;z-index:2;clip-path:polygon(0 0,56% 0,41% 100%,0 100%);box-shadow:none}
.ba-ai-style-bold .ba-ai-live-scene::after{content:"";position:absolute;top:5%;left:54%;width:3px;height:86%;transform:rotate(8deg);transform-origin:top center;background:linear-gradient(#f3fbff,#40cdff);box-shadow:0 0 11px #4edcff77;z-index:2;pointer-events:none}
.ba-ai-style-bold .ba-ai-label-before{top:8%;left:7%;z-index:3}
.ba-ai-style-bold .ba-ai-label-after{top:8%;right:8%;z-index:3}
.ba-ai-style-bold:not(.ba-ai-has-photos) .ba-ai-live-scene::after{display:none}

/* Real finished-layout previews, not CSS box diagrams. */
.ba-ai-package .ba-ai-style{min-height:304px;padding:9px;gap:9px;align-items:stretch;overflow:hidden}
.ba-ai-package .ba-ai-live-preview{display:block;position:relative;width:100%;height:222px;min-height:222px;max-width:none;flex:none;overflow:hidden;border-radius:9px;border:1px solid #fff9;background:linear-gradient(140deg,#264155,#7a8f94);box-shadow:0 9px 24px #071c2c45;margin:0;padding:0}
.ba-ai-package .ba-ai-composed-image{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:2;border:0;border-radius:0;box-shadow:none;max-width:none}
.ba-ai-package .ba-ai-composed-image[hidden]{display:none!important}
.ba-ai-package .ba-ai-live-note{z-index:4;bottom:0;padding:7px 8px;font-size:10px;background:linear-gradient(0deg,#061f31e8,transparent)}
.ba-ai-package .ba-ai-scene-empty{z-index:1;position:absolute;display:grid;place-items:center;text-align:center;padding:16px;inset:0;color:#fff;font-size:12px;line-height:1.55;font-weight:700}
.ba-ai-has-photos .ba-ai-scene-empty{display:none}
.ba-ai-preview-loading .ba-ai-scene-empty::before{content:'';display:inline-block;width:19px;height:19px;border-radius:50%;border:3px solid #ffffff50;border-top-color:#fff;animation:ba-generating .85s linear infinite;margin-right:6px}
.ba-ai-preview-error .ba-ai-scene-empty{font-size:12px;color:#fff3ec;background:#572a2ca1}
.ba-ai-package .ba-ai-style-text{min-height:60px;flex:none;max-height:75px}
@media(max-width:760px){.ba-ai-package .ba-ai-style{min-height:277px}.ba-ai-package .ba-ai-live-preview{height:192px;min-height:192px}}
/* Premium lookbook: actual poster previews deserve a large gallery, not four tiny tiles. */
.ba-ai-styles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.ba-ai-package .ba-ai-style{min-height:390px;padding:11px;border-radius:16px;box-shadow:0 12px 30px #0d2c4320}
.ba-ai-package .ba-ai-live-preview{height:305px;min-height:305px;border-radius:11px;box-shadow:0 9px 24px #071c2c35}
.ba-ai-package .ba-ai-composed-image{object-fit:contain;object-position:center;background:#ffffff18}
.ba-ai-package .ba-ai-style-text{min-height:62px;max-height:none;padding:10px}
.ba-ai-package .ba-ai-style-text strong{font-size:15px}
.ba-ai-package .ba-ai-style-text small{font-size:11px;line-height:1.35}
@media(max-width:720px){.ba-ai-styles{grid-template-columns:1fr;gap:14px}.ba-ai-package .ba-ai-style{min-height:350px}.ba-ai-package .ba-ai-live-preview{height:270px;min-height:270px}}

/* UNIVERSAL HOME-SERVICE STYLE GALLERY — neutral, modern, photo-led. */
.ba-ai-styles{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:17px;row-gap:18px}
.ba-ai-package .ba-ai-style{min-height:0;padding:11px;border-radius:16px;background:#f5f7f7;box-shadow:0 8px 22px #19313c15;border:1px solid #c7d4d9}
.ba-ai-package .ba-ai-style:has(input:checked){background:#eff7f9;border:2px solid #248bbd;box-shadow:0 8px 25px #1b6d971c}
.ba-ai-package .ba-ai-live-preview{height:auto;min-height:0;aspect-ratio:1/1;width:100%;border:1px solid #d6dfdf;border-radius:10px;background:#eef1f0;box-shadow:0 8px 20px #1d3a4722}
.ba-ai-package .ba-ai-composed-image{display:block;inset:0;width:100%;height:100%;object-fit:contain;background:#eff1f0;border-radius:10px}
.ba-ai-package .ba-ai-style-text{background:#152e3a;border-radius:10px;min-height:67px;padding:11px}
.ba-ai-package .ba-ai-style-text strong{font-size:15px;color:#fff}
.ba-ai-package .ba-ai-style-text small{color:#d7e3e7;font-size:12px;line-height:1.4}
.ba-ai-package .ba-ai-style-luxury,.ba-ai-package .ba-ai-style-editorial,.ba-ai-package .ba-ai-style-bold,.ba-ai-package .ba-ai-style-minimal{background:#f5f7f7}
.ba-ai-package .ba-ai-live-note{display:none!important}
@media(max-width:720px){.ba-ai-styles{grid-template-columns:1fr}.ba-ai-package .ba-ai-style{min-height:0}.ba-ai-package .ba-ai-live-preview{height:auto;min-height:0;aspect-ratio:1/1}}
/* One-click, genuine AI-produced before/after advertising artwork. */
.ba-oneclick-info{display:flex;flex-direction:column;gap:7px;padding:16px 18px;border-radius:12px;background:linear-gradient(130deg,#0d2b3f,#174b64);border:1px solid #2b6a85;color:#fff;box-shadow:0 8px 22px #0b30451a}
.ba-oneclick-info strong{font-size:16px;font-weight:850;letter-spacing:-.01em}
.ba-oneclick-info span{font-size:12px;line-height:1.65;color:#e0f0f6}
.ba-ai-package .ba-ai-footnote{font-size:12px!important;color:#3b6075;line-height:1.65;margin-top:13px}
.ba-ai-options{padding:16px 19px 17px}
.ba-mode-option:has(input:checked){background:#e8f4f9;border-color:#2088bf;box-shadow:0 0 0 1px #2088bf2e}
.ba-creator .ba-create{min-width:220px}
@media(max-width:700px){.ba-oneclick-info{padding:15px}.ba-oneclick-info span{font-size:11px}.ba-ai-options{padding:14px}.ba-creator .ba-create{width:100%}}
/* AI-only campaign creator: the legacy Classic choice was intentionally removed. */
.ba-ai-only-banner{display:flex;align-items:center;gap:13px;margin:0 19px 14px;padding:15px 17px;background:linear-gradient(110deg,#102f43 0%,#124f70 100%);border:1px solid #33718d;border-radius:13px;color:#fff;box-shadow:0 6px 21px #0b304b1b}
.ba-ai-only-banner div{display:grid;gap:3px}
.ba-ai-only-banner strong{color:#fff;font-size:15px;letter-spacing:-.01em;font-weight:850}
.ba-ai-only-banner small{color:#d5e8f4;font-size:11px;line-height:1.55}
.ba-ai-only-dot{width:10px;height:10px;min-width:10px;border-radius:50%;background:#2ce5b0;box-shadow:0 0 0 5px #2ce5b025,0 0 14px #2ce5b075}
@media(max-width:700px){.ba-ai-only-banner{margin:0 14px 12px;padding:13px}.ba-ai-only-banner strong{font-size:13px}.ba-ai-only-banner small{font-size:10px}}
