/* 1.8.6 – stand-alone static campaign poster and popup (never product slider). */
.akt-poster-art{background:var(--akt-poster-color,#173d37);border-radius:12px;overflow:hidden;position:relative;isolation:isolate;display:flex;min-height:190px;box-sizing:border-box;align-items:center;color:#fff;box-shadow:0 3px 14px #1728201a}
.akt-poster-art img{width:100%;height:auto;display:block;object-fit:cover;max-height:500px}
.akt-poster-visual,.akt-poster-visual-link{display:block;width:100%;min-width:0;flex:1;line-height:0}
.akt-poster-text{position:relative;z-index:2;padding:clamp(15px,3vw,35px);line-height:1.5;box-sizing:border-box;max-width:100%;overflow-wrap:anywhere}
.akt-poster-text h2{font-size:clamp(19px,3vw,39px);line-height:1.15;color:inherit!important;margin:0 0 10px;font-weight:800}
.akt-poster-description{font-size:clamp(13px,1.3vw,17px)}
.akt-poster-description p{margin:0 0 12px}
.akt-poster-action{display:inline-flex;padding:9px 16px;border-radius:7px;background:#f3d9a5;color:#174337!important;text-decoration:none!important;font-weight:800;line-height:1.3}
.akt-poster-art.akt-poster-overlay:has(img) .akt-poster-visual,.akt-poster-art.akt-poster-overlay:has(img) .akt-poster-visual-link{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.akt-poster-overlay:has(img) img{width:100%;height:100%;object-fit:cover}
.akt-poster-overlay:has(img):before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#051f1dde 0%,#051f1d82 57%,#051f1d44 100%)}
.akt-poster-overlay:has(img) .akt-poster-text{width:min(75%,700px)}
.akt-poster-art.akt-poster-below{display:flex;flex-direction:column;align-items:stretch}
.akt-poster-below .akt-poster-text{background:var(--akt-poster-color)}
.akt-poster-editor-placeholder{border:1px dashed #8bad99;padding:12px;border-radius:10px;display:grid;gap:6px}
.akt-poster-editor-placeholder>strong{color:#225943}.akt-poster-editor-placeholder>span{font-size:12px;color:#687568}
.akt-popup-launch[hidden]{display:none!important}
.akt-popup-launch{position:fixed;inset:0;z-index:999999;display:flex;justify-content:center;align-items:center;padding:24px;box-sizing:border-box}
.akt-popup-shade{position:absolute;inset:0;background:#081611b8;backdrop-filter:blur(3px)}
.akt-popup-window{position:relative;z-index:1;width:min(680px,100%);max-height:min(90vh,880px);overflow-y:auto;border-radius:16px;background:#fff;box-shadow:0 15px 55px #0008}
.akt-popup-window .akt-poster-art{border-radius:0;min-height:320px;box-shadow:none}
.akt-popup-window .akt-poster-art img{max-height:65vh}
.akt-popup-close{position:absolute;top:12px;right:12px;z-index:20;width:40px;height:40px;cursor:pointer;border:1px solid #dae1db;border-radius:50%;background:#fff;color:#183b33;font:700 26px/1 sans-serif;display:grid;place-items:center}
body.akt-popup-open{overflow:hidden}
@media(max-width:650px){.akt-poster-overlay:has(img) .akt-poster-text{width:100%}.akt-poster-text{padding:18px}.akt-popup-launch{padding:10px}.akt-popup-window{max-height:90dvh}.akt-popup-window .akt-poster-art{min-height:270px}.akt-popup-window .akt-poster-text h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.akt-popup-launch{scroll-behavior:auto}}

/* 1.8.7 – unified responsive AI banner/HTML/AdSense ad studio. */
.akt-poster-art{width:100%;max-width:var(--akt-poster-width,100%);min-height:var(--akt-poster-height,190px);margin-inline:auto}
.akt-poster-mode-html,.akt-poster-mode-google{display:block;min-height:0;background:transparent;color:inherit;box-shadow:none;overflow:visible}
.akt-poster-html{width:100%;min-width:0;overflow-wrap:anywhere}
.akt-poster-html img,.akt-poster-html video{max-width:100%;height:auto}
.akt-poster-html>*{max-width:100%;box-sizing:border-box}
.akt-poster-google{width:100%;min-height:var(--akt-ad-height,190px)}
.akt-poster-hint{padding:24px;background:#f5f3ea;border:1px dashed #bdbfb5;border-radius:8px;text-align:center;color:#4a5b50}
.akt-popup-window .akt-poster-art{max-width:100%}
.akt-popup-window .akt-poster-html{overflow:auto;max-height:75vh}
@media(max-width:600px){.akt-poster-art{max-width:100%}.akt-poster-mode-html,.akt-poster-mode-google{min-width:0}}

/* 1.8.9: editable campaign caption position. */
.akt-poster-overlay .akt-poster-text {position:absolute;left:var(--akt-text-x,8%);top:var(--akt-text-y,15%);width:min(75%,700px);max-width:calc(100% - var(--akt-text-x,8%));}
@media(max-width:650px){.akt-poster-overlay .akt-poster-text{width:calc(100% - var(--akt-text-x,8%) - 8%);}}

/* 1.8.10: Popups are viewport dialogs, never page banners. */
.akt-popup-window{width:min(var(--akt-popup-width,580px),100%);max-width:100%}
.akt-popup-window .akt-poster-mode-creative:not([style*="--akt-poster-height"]){aspect-ratio:4 / 5;min-height:320px}
@media(max-width:650px){.akt-popup-window{width:min(var(--akt-popup-width,580px),100%)}}

/* 1.8.11 — Full artboard in viewport: no vertical swipe to discover the slogan. */
.akt-poster-art.akt-poster-canvas {
 position:relative;isolation:isolate;display:block;box-sizing:border-box;overflow:hidden;
 container-type:inline-size;width:100%;max-width:100%;height:auto;min-height:0!important;
 aspect-ratio:var(--akt-art-ratio,4/5);border-radius:inherit;color:var(--akt-text-color,#fff);
}
.akt-poster-canvas .akt-poster-visual,.akt-poster-canvas .akt-poster-visual-link {
 position:absolute!important;inset:0;width:100%;height:100%;display:block;z-index:0;overflow:hidden;
}
.akt-poster-canvas .akt-poster-visual img,.akt-poster-canvas .akt-poster-visual-link img{
 display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:var(--akt-img-fit,contain);
 transform:translate(var(--akt-img-x,0%),var(--akt-img-y,0%)) scale(var(--akt-img-zoom,1));transform-origin:center;
}
/* A subtle translucent shadow preserves text legibility without covering the art. */
.akt-poster-canvas.akt-poster-overlay:has(img)::before{background:linear-gradient(180deg,#00130e88,transparent 45%,#00130e66);z-index:1}
.akt-poster-canvas .akt-poster-textbox{
 position:absolute;z-index:3;display:block;margin:0;padding:0;font-family:var(--akt-font-family,system-ui,Arial,sans-serif)!important;
 font-weight:700;color:var(--akt-text-color,#fff)!important;line-height:1.17;overflow:hidden;overflow-wrap:anywhere;
 text-shadow:0 2px 9px #000a;box-sizing:border-box;max-width:100%;
}
.akt-poster-canvas .akt-poster-canvas-body{font-weight:500;line-height:1.3}
.akt-poster-canvas .akt-poster-canvas-body p{margin:0 0 .35em;font-size:inherit;line-height:inherit;color:inherit}
.akt-poster-canvas .akt-poster-canvas-title{letter-spacing:-.012em}
.akt-poster-canvas .akt-poster-canvas-action{position:absolute;z-index:4;bottom:5%;left:8%;font-size:3.1cqw;line-height:1.3;
 padding:.35em .7em;border-radius:.35em;background:#ffe4aa;color:#173d37!important;text-decoration:none!important;font-weight:700}
.akt-popup-window{width:min(var(--akt-popup-width,600px),calc(100dvw - 24px),var(--akt-popup-fitwidth,680px));
 max-width:100%;max-height:calc(100dvh - 24px);overflow:visible;background:transparent;box-shadow:0 16px 60px #0009}
.akt-popup-window .akt-poster-art.akt-poster-canvas{min-height:0!important;max-height:none;aspect-ratio:var(--akt-art-ratio,4/5);box-shadow:none}
.akt-popup-window .akt-poster-art.akt-poster-canvas img{max-height:none}
@media(max-width:650px){.akt-popup-launch{padding:8px}.akt-popup-window{width:min(var(--akt-popup-width,600px),calc(100dvw - 16px),var(--akt-popup-fitwidth,680px));max-height:calc(100dvh - 16px)}
.akt-popup-window .akt-poster-art.akt-poster-canvas{min-height:0!important}}

/* 1.8.12: one bounded modal artboard on all viewports, including older posters. */
.akt-popup-launch{padding:clamp(8px,2vmin,20px)!important;overflow:hidden!important}
.akt-popup-window{max-width:calc(100dvw - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow:hidden!important;box-sizing:border-box}
.akt-popup-window .akt-poster-art{min-height:0!important;max-height:calc(100dvh - 16px);overflow:hidden!important}
.akt-popup-window .akt-poster-html{max-height:calc(100dvh - 16px);overflow:hidden}
.akt-popup-window .akt-poster-canvas .akt-poster-textbox{min-height:0;white-space:normal}
.akt-popup-close{position:absolute!important;top:8px!important;right:8px!important;z-index:100!important}
@media(max-width:650px){.akt-popup-window .akt-poster-art{min-height:0!important}}
/* Optional shared artboard transforms: all saved legacy posters default to zero degrees. */
.akt-poster-canvas .akt-poster-canvas-title{transform:rotate(var(--akt-title-rotate,0deg)) skewX(var(--akt-title-skew,0deg));transform-origin:top left;-webkit-text-stroke:var(--akt-text-stroke,0px) var(--akt-text-stroke-color,transparent)}
.akt-poster-canvas .akt-poster-canvas-body{transform:rotate(var(--akt-body-rotate,0deg)) skewX(var(--akt-body-skew,0deg));transform-origin:top left}
.akt-poster-canvas .akt-poster-visual img,.akt-poster-canvas .akt-poster-visual-link img{transform:translate(var(--akt-img-x,0%),var(--akt-img-y,0%)) scale(var(--akt-img-zoom,1)) rotate(var(--akt-img-rotate,0deg)) skewX(var(--akt-img-skew,0deg));border:var(--akt-img-border,0px) solid var(--akt-img-border-color,transparent);box-sizing:border-box}
