/* Copy and artwork occupy separate grid cells, including on narrow phones. */
body .hero{
    display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
    align-items:center;column-gap:clamp(16px,3vw,44px);row-gap:10px;
    min-height:320px;padding:32px;position:relative;isolation:isolate;
}
body .hero-copy{position:relative;width:auto;min-width:0;max-width:100%;z-index:1;overflow-wrap:anywhere}
body .hero-copy h1{line-height:1.18;margin:0 0 18px}
body .hero-copy .eyebrow{display:block;margin-bottom:24px;line-height:1.5}
body .hero-copy p{max-width:430px;line-height:1.65;margin:0 0 24px}
body .hero-copy .button{max-width:100%;white-space:normal;text-align:center}
body .hero-art{display:flex;justify-content:flex-end;align-items:center;min-width:0;width:100%}
body .hero-art .hero-image{
    position:static;display:block;width:100%;max-width:420px;height:auto;
    max-height:none;object-fit:contain;opacity:1;transform:none;margin:0;
    pointer-events:none;user-select:none;flex:0 1 auto;
}
body.hero-image-sizing-manual .hero-art{
    padding-right:clamp(0px,var(--hero-desktop-right,14px),25%);
    padding-bottom:clamp(0px,var(--hero-desktop-bottom,12px),80px);
}
body.hero-image-sizing-manual .hero-art .hero-image{width:min(var(--hero-desktop-width,380px),100%)}
body .hero-caption{position:static;grid-column:1/-1;justify-self:end;max-width:100%;text-align:right;line-height:1.5;overflow-wrap:anywhere;margin:0;z-index:1}
body .hero.hero-without-image{grid-template-columns:minmax(0,1fr)}
body.hero-minimal .hero{min-height:240px}
@media(max-width:780px){
    body .hero{grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);column-gap:14px;padding:26px 22px;min-height:0}
    body .hero-copy h1{font-size:clamp(22px,4.9vw,34px);margin-bottom:14px}
    body .hero-copy .eyebrow{font-size:9px;letter-spacing:.08em;margin-bottom:18px}
    body .hero-copy p{font-size:12px;margin-bottom:18px;max-width:100%}
    body .hero-art .hero-image{max-width:340px}
    body.hero-image-sizing-manual .hero-art{padding-right:clamp(0px,var(--hero-mobile-right,10px),20%);padding-bottom:clamp(0px,var(--hero-mobile-bottom,8px),50px)}
    body.hero-image-sizing-manual .hero-art .hero-image{width:min(var(--hero-mobile-width,190px),100%)}
    body .hero-caption{font-size:8px}
    body.hero-mobile-stack .hero{grid-template-columns:minmax(0,1fr);row-gap:18px}
    body.hero-mobile-stack .hero-art{justify-content:center}
    body.hero-mobile-stack .hero-art .hero-image{width:min(100%,300px)}
    body.hero-mobile-stack .hero-copy h1{font-size:clamp(26px,6vw,34px)}
}
@media(max-width:480px){
    body .hero{padding:22px 18px;column-gap:10px;border-radius:26px;min-height:0}
    body .hero-copy h1{font-size:clamp(19px,5.3vw,25px);letter-spacing:-.4px;margin-bottom:12px}
    body .hero-copy .eyebrow{font-size:7px;letter-spacing:.06em;margin-bottom:16px}
    body .hero-copy p{font-size:10px;line-height:1.6;margin-bottom:16px}
    body .hero-copy .button{font-size:10px;padding:10px 11px;line-height:1.5}
    body .hero-caption{font-size:7px}
}
/* Admin preview uses the same separation, with explicit device controls. */
.v8-banner-preview-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 0}
.v8-banner-preview-controls strong{margin-right:auto}
.v8-banner-preview-controls button[aria-pressed="true"]{background:var(--accent);color:#fff;border-color:var(--accent)}
.v8-banner-preview{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:center;gap:20px;width:100%;max-width:750px;min-height:250px;padding:24px;background:var(--accent,#2159ed);color:#fff;border-radius:20px}
.v8-banner-preview-copy{display:flex;flex-direction:column;gap:14px;min-width:0;overflow-wrap:anywhere;font-size:11px;line-height:1.6}
.v8-banner-preview-copy>.eyebrow{font-size:8px;line-height:1.5}
.v8-banner-preview-copy>strong{font-size:clamp(23px,2.5vw,29px);line-height:1.18;white-space:pre-line}
.v8-banner-preview-copy>span:not(.v8-banner-preview-cta){opacity:.95}
.v8-banner-preview-cta{background:#fff;color:var(--accent);border-radius:7px;width:fit-content;max-width:100%;padding:9px 12px;font-weight:700;text-align:center}
.v8-banner-preview-art{display:flex;align-items:center;justify-content:flex-end;min-width:0}
.v8-banner-preview-art img{position:static;display:block;width:100%;max-width:420px;height:auto;object-fit:contain}
.v8-banner-preview-art img[hidden]{display:none}
.v8-banner-preview[data-sizing="manual"] .v8-banner-preview-art{padding-right:clamp(0px,var(--hero-desktop-right,14px),25%);padding-bottom:clamp(0px,var(--hero-desktop-bottom,12px),80px)}
.v8-banner-preview[data-sizing="manual"] img{width:min(var(--hero-desktop-width,380px),100%)}
.v8-banner-preview[data-device="mobile"]{max-width:343px;min-height:0;padding:22px 18px;gap:10px;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr)}
.v8-banner-preview[data-device="mobile"] .v8-banner-preview-copy{font-size:10px;gap:14px}
.v8-banner-preview[data-device="mobile"] .v8-banner-preview-copy>.eyebrow{font-size:7px}
.v8-banner-preview[data-device="mobile"] .v8-banner-preview-copy>strong{font-size:21px}
.v8-banner-preview[data-device="mobile"][data-sizing="manual"] .v8-banner-preview-art{padding-right:clamp(0px,var(--hero-mobile-right,10px),20%);padding-bottom:clamp(0px,var(--hero-mobile-bottom,8px),50px)}
.v8-banner-preview[data-device="mobile"][data-sizing="manual"] img{width:min(var(--hero-mobile-width,190px),100%)}
.v8-banner-preview[data-device="mobile"][data-arrangement="stack"]{grid-template-columns:minmax(0,1fr);row-gap:18px}
.v8-banner-preview[data-device="mobile"][data-arrangement="stack"] .v8-banner-preview-art{justify-content:center}
.v8-banner-preview.preview-without-image{grid-template-columns:minmax(0,1fr)}
@media(prefers-reduced-motion:reduce){.v8-banner-preview{transition:none}}

/* R28: editor and live preview share the viewport on desktop. */
.sd28-banner-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.95fr);gap:22px;align-items:start;margin-bottom:24px}
.sd28-banner-fields{display:flex;flex-direction:column;gap:16px;min-width:0}
.sd28-banner-fields > .designer-group{margin:0}
.sd28-banner-preview-pane{position:sticky;top:84px;min-width:0;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--admin-border,#dce4f0);border-radius:17px;background:var(--admin-soft,#f5f7fc);max-height:calc(100vh - 105px);overflow:auto;z-index:2}
.sd28-banner-preview-pane .v8-banner-preview-controls{margin:0;gap:6px}
.sd28-banner-preview-pane .v8-banner-preview-controls strong{flex:1 1 100%;font-size:15px}
.sd28-banner-preview-pane .v8-banner-preview-controls button{padding:7px 10px;font-size:11px}
.sd28-unsaved{font-size:10px;font-weight:700;border-radius:999px;background:#eaf1ff;color:#1a478b;padding:4px 9px;white-space:nowrap}
.sd28-unsaved.sd28-dirty{background:#fff2d9;color:#764900}
.sd28-banner-preview-pane .v8-banner-preview{max-width:100%;min-height:250px;margin:0;gap:10px;overflow:hidden;isolation:isolate;position:relative}
.sd28-banner-preview-pane .v8-banner-preview-copy{gap:11px;align-self:center}
.sd28-banner-preview-pane .v8-banner-preview-copy>strong{font-size:clamp(17px,1.65vw,28px)}
.sd28-banner-preview-pane .v8-banner-preview-copy>.eyebrow{margin:0}
.sd28-banner-preview-pane .v8-banner-preview-art{max-width:100%;overflow:hidden}
.sd28-banner-preview-pane .v8-banner-preview-art img{max-width:100%;max-height:270px}
.sd28-banner-preview-pane .v8-banner-preview[data-mode="minimal"]{min-height:210px}
.sd28-banner-preview-pane .v8-banner-preview[data-mode="rounded"]{border-radius:32px}
.sd28-banner-preview-pane .v8-banner-preview[data-mode="default"]{border-radius:19px}
.sd28-banner-preview-pane .v8-banner-preview[data-device="mobile"]{max-width:345px;width:100%;margin:auto;min-height:245px;padding:20px 16px;gap:8px}
.sd28-banner-preview-pane .v8-banner-preview[data-device="mobile"] .v8-banner-preview-copy>strong{font-size:clamp(17px,2vw,21px)}
.sd28-banner-preview-pane .v8-banner-preview[data-device="mobile"] .v8-banner-preview-art img{max-height:240px}
.sd28-banner-preview-pane .v8-banner-preview.sd28-preview-hidden-mobile{min-height:220px;filter:grayscale(.6);opacity:.65}
.sd28-banner-preview-pane .v8-banner-preview.sd28-preview-hidden-mobile::after{content:'Banner disembunyikan pada HP';position:absolute;z-index:5;inset:0;display:grid;place-items:center;padding:20px;text-align:center;background:rgba(11,25,46,.86);color:#fff;font-size:14px;font-weight:700}
.sd28-preview-note{margin:0;line-height:1.6}
html[data-theme="dark"] .sd28-banner-preview-pane{background:var(--admin-soft,#111e31);border-color:var(--admin-border,#36475e)}
html[data-theme="dark"] .sd28-unsaved{background:#263f64;color:#e3edff}
html[data-theme="dark"] .sd28-unsaved.sd28-dirty{background:#4b3719;color:#ffe6ab}
@media(max-width:1200px){.sd28-banner-editor{grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:14px}.sd28-banner-preview-pane{top:20px}}
@media(max-width:980px){.sd28-banner-editor{grid-template-columns:minmax(0,1fr)}.sd28-banner-preview-pane{position:relative;top:auto;order:-1;max-height:none}.sd28-banner-preview-pane .v8-banner-preview{max-width:620px}.sd28-banner-fields{gap:12px}}
@media(max-width:600px){.sd28-banner-preview-pane{padding:12px}.sd28-banner-preview-pane .v8-banner-preview[data-device="desktop"]{padding:15px;min-height:200px}.sd28-banner-preview-pane .v8-banner-preview[data-device="desktop"] .v8-banner-preview-copy>strong{font-size:19px}.sd28-banner-preview-pane .v8-banner-preview[data-device="desktop"] .v8-banner-preview-art img{max-height:175px}}

/* English labels do not shrink existing pricing inputs or push delete controls off-screen. */
.admin-workspace .sd28-localized-row{grid-template-columns:minmax(75px,.65fr) minmax(140px,1fr) minmax(145px,1fr) minmax(92px,.66fr) 30px;gap:10px;align-items:end}
.admin-workspace .sd28-localized-row>.field{min-width:0}
.admin-workspace .sd28-localized-row input{max-width:100%;min-width:0}
@media(max-width:1050px){.admin-workspace .sd28-localized-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-workspace .sd28-localized-row>.remove-package,.admin-workspace .sd28-localized-row>.remove-type{grid-column:2;justify-self:end}}
@media(max-width:520px){.admin-workspace .sd28-localized-row{grid-template-columns:minmax(0,1fr)}.admin-workspace .sd28-localized-row>.remove-package,.admin-workspace .sd28-localized-row>.remove-type{grid-column:1}}

/* R31: independent secondary banner live preview inside existing editor. */
.sd31-right-banner-preview{display:flex;flex-direction:column;gap:13px;padding:23px 20px;margin:14px 0 2px;border-radius:18px;background:#16332f;color:#f0fff9;border:1px solid #2b6659;white-space:normal;overflow-wrap:anywhere;max-width:750px}
.sd31-right-banner-preview[hidden],.sd31-hidden-note[hidden]{display:none!important}
.sd31-right-banner-label{color:#6cd9b5;font-weight:800;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.sd31-right-banner-title{white-space:pre-line;font-size:clamp(19px,2vw,26px);line-height:1.27;color:#fff}
.sd31-right-banner-desc{font-size:13px;line-height:1.65;color:#c9e8de}
.sd31-right-banner-button{font-size:13px;font-weight:750;color:#61dfba}
.sd31-right-banner-preview[data-hidden=true]{display:none}
