@font-face{font-family:CepteAdRounded;src:url('/fonts/Fredoka-Variable.ttf') format('truetype');font-style:normal;font-weight:300 700;font-display:swap}
body #ad-editor-preview,body #ad-editor .ad-tile-frame,body #idle-ad .idle-product-ad{position:relative;isolation:isolate;background-color:#d82329!important;background-image:radial-gradient(circle at 100% 0,transparent 0 30%,#ffffff0b 30.2% 38%,transparent 38.2% 44%,#ffffff08 44.2% 50%,transparent 50.2%),radial-gradient(circle at 0 100%,transparent 0 30%,#ffffff09 30.2% 42%,transparent 42.2%),radial-gradient(#ffffff14 1px,transparent 1px)!important;background-size:auto,auto,18px 18px!important;color:#fff!important;font-family:CepteAdRounded,Poppins,Arial,sans-serif!important;overflow:hidden}
body #ad-editor-preview{display:grid;grid-template-columns:46% 54%;align-items:center;gap:0;aspect-ratio:16/5.5;padding:54px 28px 20px;border-radius:12px;text-align:center}
body #ad-editor-preview .ad-brand-logo{position:absolute;top:18px;left:28px;width:82px;height:30px;object-fit:contain}
body #ad-editor-preview .ad-preview-photo{display:grid;place-items:center;min-width:0;min-height:0;height:clamp(90px,13vw,155px);width:100%;margin:0;overflow:hidden}
body #ad-editor-preview .ad-preview-photo img{display:block;width:78%;height:100%;max-height:155px;object-fit:contain}
body #ad-editor .ad-copy{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0}
body #ad-editor .ad-copy strong{color:#fff!important;font-size:clamp(20px,2.4vw,30px);font-weight:600;line-height:1.1;max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body #ad-editor .ad-copy b{color:#fff!important;font-size:clamp(30px,3.5vw,46px);font-weight:650;line-height:1.1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
body #ad-editor .ad-tile-frame{aspect-ratio:1;display:grid;grid-template-rows:28px minmax(0,1fr) auto;justify-items:center;gap:8px;padding:38px 12px 14px;text-align:center}
body #ad-editor .ad-tile-frame .ad-brand-logo{width:58px;height:23px;object-fit:contain}
body #ad-editor .ad-tile-frame .ad-preview-photo{width:80%;height:100%;min-height:0;display:grid;place-items:center;overflow:hidden}
body #ad-editor .ad-tile-frame .ad-preview-photo img{width:100%;height:100%;max-height:80px;object-fit:contain}
body #ad-editor .ad-tile-frame .ad-copy{gap:3px}
body #ad-editor .ad-tile-frame strong{font-size:14px;line-height:1.15}
body #ad-editor .ad-tile-frame b{font-size:24px;line-height:1.1}
body #idle-ad{background:#d82329!important}
body #idle-ad .idle-product-ad{display:grid;grid-template-columns:46% 54%;align-items:center;justify-content:normal;gap:0;width:min(1100px,94vw);height:min(620px,calc(100dvh - 48px));padding:90px 40px 40px;border-radius:20px}
body #idle-ad .ad-brand-logo{position:absolute;top:30px;left:40px;width:110px;height:41px;object-fit:contain}
body #idle-ad .idle-product-photo{display:grid;place-items:center;width:100%;height:100%;max-height:340px;min-height:0;flex:none;margin:0;overflow:hidden}
body #idle-ad .idle-product-photo img{position:static!important;display:block;width:86%;height:100%;max-height:340px;object-fit:contain}
body #idle-ad .ad-copy{display:flex;flex-direction:column;gap:14px;align-items:center;min-width:0}
body #idle-ad .idle-product-title{font:600 clamp(28px,4.3vw,62px)/1.1 CepteAdRounded,Poppins,Arial,sans-serif;margin:0;padding:0;max-width:100%;letter-spacing:-.015em}
body #idle-ad .idle-product-price{font:650 clamp(42px,6vw,84px)/1.1 CepteAdRounded,Poppins,Arial,sans-serif;margin:0;letter-spacing:-.025em}
@media(max-width:650px){body #ad-editor-preview{aspect-ratio:16/8.5;padding:46px 12px 16px;grid-template-columns:42% 58%}body #ad-editor-preview .ad-brand-logo{top:14px;left:14px;width:65px;height:24px}body #ad-editor-preview .ad-preview-photo{height:90px}body #ad-editor-preview .ad-preview-photo img{width:90%;max-height:90px}body #ad-editor .ad-copy strong{font-size:20px}body #ad-editor .ad-copy b{font-size:30px}body #ad-editor .ad-tile-frame{padding:34px 8px 10px;gap:5px;grid-template-rows:22px minmax(0,1fr) auto}body #ad-editor .ad-tile-frame .ad-brand-logo{width:48px;height:19px}body #ad-editor .ad-tile-frame .ad-preview-photo img{max-height:55px}body #ad-editor .ad-tile-frame strong{font-size:12px}body #ad-editor .ad-tile-frame b{font-size:21px}body #idle-ad .idle-product-ad{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:75px 20px 30px;gap:24px;height:calc(100dvh - 44px)}body #idle-ad .ad-brand-logo{top:24px;left:24px;width:90px;height:33px}body #idle-ad .idle-product-photo{max-height:260px}body #idle-ad .idle-product-photo img{max-height:260px}body #idle-ad .idle-product-title{font-size:32px}body #idle-ad .idle-product-price{font-size:54px}}

/* TV keeps the original centered poster; the editor preview alone is horizontal. */
body #idle-ad .idle-product-ad{display:flex;flex-direction:column;align-items:center;justify-content:center;grid-template-columns:none;grid-template-rows:none;width:min(1100px,92vw);height:calc(100dvh - 64px);padding:20px 28px;gap:16px;text-align:center}
body #idle-ad .ad-brand-logo{position:static;top:auto;left:auto;transform:none;width:110px;height:41px;flex:none;object-fit:contain}
body #idle-ad .idle-product-photo{display:flex;align-items:center;justify-content:center;flex:1;width:min(680px,80vw);height:auto;min-height:0;max-height:52dvh;margin:0;overflow:hidden}
body #idle-ad .idle-product-photo img{width:100%;height:100%;max-height:52dvh;object-fit:contain}
body #idle-ad .ad-copy{flex:none;gap:10px;width:100%;max-width:850px}
body #idle-ad .idle-product-title{font-size:clamp(22px,3vw,40px);line-height:1.25;max-width:100%;margin:0}
body #idle-ad .idle-product-price{font-size:clamp(34px,5vw,64px);line-height:1.15;margin:0}
@media(max-width:600px){body #idle-ad .idle-product-ad{padding:16px 12px;height:calc(100dvh - 44px);gap:12px}body #idle-ad .ad-brand-logo{width:88px;height:33px}}

/* The canvas is landscape; the logo, full photograph and copy stay centered. */
body #ad-editor-preview{
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:40px minmax(0,1fr) auto;
 justify-items:center;align-items:center;gap:10px;width:100%;height:auto;aspect-ratio:16/6;
 padding:18px 24px;text-align:center;
}
body #ad-editor-preview .ad-brand-logo{
 position:static;inset:auto;transform:none;justify-self:center;width:110px;height:40px;object-fit:contain;
}
body #ad-editor-preview .ad-preview-photo{
 position:relative;display:block;width:min(76%,520px);height:100%;min-height:0;max-height:none;margin:0;overflow:hidden;
}
body #ad-editor-preview .ad-preview-photo img{
 position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-height:0;object-fit:contain;object-position:center;
}
body #ad-editor-preview .ad-preview-photo>svg{position:absolute;inset:0;margin:auto;width:40px;height:40px;opacity:.5}
body #ad-editor-preview .ad-copy{width:100%;gap:5px;align-self:end}
body #ad-editor-preview .ad-copy strong{font-size:clamp(16px,2.2vw,28px);line-height:1.15}
body #ad-editor-preview .ad-copy b{font-size:clamp(26px,3.5vw,44px);line-height:1.1}

/* Bound the photo row so tall and round products cannot overflow small cards. */
body #ad-editor .ad-tile-frame{
 container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);
 grid-template-rows:24px minmax(0,1fr) auto;align-items:center;justify-items:center;
 width:100%;height:auto;aspect-ratio:1;min-width:0;min-height:0;padding:38px 10px 12px;gap:6px;
}
body #ad-editor .ad-tile-frame .ad-brand-logo{position:static;width:60px;height:24px;object-fit:contain}
body #ad-editor .ad-tile-frame .ad-preview-photo{
 position:relative;display:block;width:90%;height:100%;min-height:0;max-height:none;margin:0;overflow:hidden;
}
body #ad-editor .ad-tile-frame .ad-preview-photo img{
 position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;
}
body #ad-editor .ad-tile-frame .ad-copy{width:100%;gap:3px}
body #ad-editor .ad-tile-frame strong{font-size:clamp(10px,7cqw,14px);line-height:1.15}
body #ad-editor .ad-tile-frame b{font-size:clamp(18px,12cqw,26px);line-height:1.1}
@media(max-width:650px){
 body #ad-editor-preview{aspect-ratio:16/10;grid-template-columns:minmax(0,1fr);grid-template-rows:28px minmax(0,1fr) auto;padding:12px;gap:6px}
 body #ad-editor-preview .ad-brand-logo{position:static;width:78px;height:28px}
 body #ad-editor-preview .ad-preview-photo{height:100%;width:85%}
 body #ad-editor-preview .ad-preview-photo img{width:100%;height:100%;max-height:100%}
 body #ad-editor-preview .ad-copy strong{font-size:15px}
 body #ad-editor-preview .ad-copy b{font-size:26px}
 body #ad-editor .ad-tile-frame{grid-template-rows:20px minmax(0,1fr) auto;padding:34px 8px 10px;gap:5px}
 body #ad-editor .ad-tile-frame .ad-brand-logo{width:50px;height:20px}
 body #ad-editor .ad-tile-frame .ad-preview-photo img{max-height:100%}
}

/* Larger TV branding and caption, with a contained product in the center. */
body #idle-ad .idle-product-ad{height:min(940px,calc(100dvh - 64px));justify-content:center;gap:clamp(10px,1.8dvh,22px)}
body #idle-ad .ad-brand-logo{width:clamp(150px,15vw,220px);height:clamp(48px,7dvh,82px)}
body #idle-ad .idle-product-photo{flex:none;height:48dvh;max-height:550px;width:min(680px,80vw)}
body #idle-ad .idle-product-photo img{width:100%;height:100%;max-height:100%;object-fit:contain}
body #idle-ad .ad-copy{gap:clamp(8px,1.3dvh,16px);max-width:100%}
body #idle-ad .idle-product-title{font-size:clamp(24px,min(4vw,6dvh),60px);line-height:1.18;font-weight:700}
body #idle-ad .idle-product-price{font-size:clamp(42px,min(7vw,10dvh),96px);line-height:1.1}
@media(max-width:600px){body #idle-ad .idle-product-ad{height:calc(100dvh - 44px);gap:12px;padding:12px}body #idle-ad .ad-brand-logo{width:150px;height:50px}body #idle-ad .idle-product-photo{height:44dvh}}
@media(max-height:500px){body #idle-ad .idle-product-ad{padding:8px;gap:6px}body #idle-ad .ad-brand-logo{width:120px;height:40px}body #idle-ad .idle-product-photo{height:38dvh}body #idle-ad .idle-product-title{font-size:clamp(18px,5dvh,25px)}body #idle-ad .idle-product-price{font-size:clamp(30px,9dvh,45px)}}
