/* Nestify 14: one coherent mobile header, accessible batch workflow. */
.nestify-app .n-cookie-settings{border:0;background:none;color:var(--n-teal);font:inherit;padding:8px 0;min-height:44px;cursor:pointer;text-decoration:underline}
body.nestify-cmp-inline #cs_preview_popup_button,body.nestify-cmp-inline .cs-info-sticky-button{display:none!important}
.n-batch-start{margin-top:18px}.n-batch-strip{margin-bottom:22px}.n-batch-strip h2{margin:0;font-size:20px}
.n-batch-thumbs{display:flex;gap:10px;overflow-x:auto;padding:8px 2px 16px;scroll-snap-type:x proximity}
.n-batch-thumbs button{flex:0 0 112px;position:relative;min-height:86px;border:2px solid var(--n-border);border-radius:12px;overflow:hidden;padding:0;background:var(--n-card);cursor:pointer;scroll-snap-align:center;color:var(--n-text)}
.n-batch-thumbs button[aria-pressed=true]{border:3px solid var(--n-teal)}.n-batch-thumbs img{width:112px;height:80px;object-fit:cover;display:block}.n-batch-thumbs span{position:absolute;bottom:4px;left:4px;border-radius:6px;background:var(--n-card);color:var(--n-text);padding:0 7px;font-weight:700}
.n-batch-extra{padding:18px;border-top:1px solid var(--n-border)}.n-batch-extra .n-field{margin:0 0 12px}.n-batch-extra small{display:block;font-weight:400;color:var(--n-muted)}
.n-batch-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}.n-batch-summary article{display:flex;gap:18px;align-items:flex-start}.n-batch-summary img{width:44%;max-height:220px;object-fit:contain;border-radius:10px}.n-batch-summary h2,.n-batch-results h2{font-size:20px}.n-batch-summary details p{white-space:pre-wrap}.n-batch-total{max-width:720px;margin:24px auto}.n-batch-total>button{margin:16px 10px 0 0}
.n-batch-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}.n-batch-results img{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:10px}
.n-product-plans.n-extra-plans{max-width:860px;grid-template-columns:repeat(2,minmax(0,1fr));margin:24px auto}.n-credit-topup{max-width:640px;margin:24px auto!important;text-align:center}.n-credit-topup .n-field{max-width:320px;margin:12px auto}.n-renewals .n-card{margin:12px 0}.n-safety-note{border-left:3px solid var(--n-teal);padding:10px 14px;color:var(--n-muted)}
/* 14.2.4: shared header for PHP pages and the interactive application. */
.nestify-app .n-mobile-account{display:none}
.nestify-app :is(.n-menu,.n-close-menu,.n-mobile-account){text-decoration:none;line-height:1;gap:0;border:1px solid var(--n-border);background:var(--n-card);color:var(--n-text);box-shadow:none;border-radius:12px}
.nestify-app .n-topbar>.n-auth-links{gap:12px}
@media(max-width:1199px){
html body.nestify-standalone .nestify-app .n-topbar{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto 44px 44px;grid-template-rows:auto;column-gap:10px;row-gap:10px;min-height:68px;height:auto;padding:12px 20px;align-items:center;border:0;margin-bottom:24px;background:var(--n-page)}
html body.nestify-standalone .nestify-app .n-topbar>.n-menu{grid-column:1;grid-row:1;order:0;justify-self:start;margin:0;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}
html body.nestify-standalone .nestify-app .n-topbar>:is(.n-mobile-logo,.n-site-home){display:flex;align-items:center;grid-column:2;grid-row:1;justify-self:start;margin:0;min-width:0;max-width:100%;height:44px}
html body.nestify-standalone .nestify-app .n-topbar>:is(.n-mobile-logo,.n-site-home) img{width:124px;max-width:100%;height:40px;object-fit:contain}
html body.nestify-standalone .nestify-app .n-topbar>.n-balance{grid-column:3;grid-row:1;justify-self:end;min-width:0;max-width:100%;width:auto;margin:0;padding:7px 12px;font-size:13px;min-height:44px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
html body.nestify-standalone .nestify-app .n-topbar>.n-theme-toggle{grid-column:4;grid-row:1;justify-self:end;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:10px}
html body.nestify-standalone .nestify-app .n-topbar>.n-mobile-account{display:flex;align-items:center;justify-content:center;grid-column:5;grid-row:1;width:44px;height:44px;min-width:44px;padding:10px;margin:0}
html body.nestify-standalone .nestify-app .n-topbar>:is(.n-auth-links,.n-account-text){display:none}
html body.nestify-standalone .nestify-app .n-topbar .n-theme-label{display:none}
html body.nestify-standalone .nestify-app .n-topbar .n-balance .n-icon{display:none}
html body.nestify-standalone .nestify-app .n-topbar .n-balance small{max-width:none;font-size:11px;line-height:1.4;white-space:normal}
html body.nestify-standalone .nestify-app .n-sidebar{width:min(300px,calc(100vw - 48px))!important;padding:18px 14px 16px;height:100dvh;max-height:100dvh;overscroll-behavior:contain}
html body.nestify-standalone .nestify-app .n-sidebar>.n-logo{margin:4px 48px 22px 4px;min-height:44px}
html body.nestify-standalone .nestify-app .n-sidebar>.n-close-menu{position:absolute;top:18px;right:14px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:10px}
html body.nestify-standalone .nestify-app .n-sidebar .n-nav{white-space:normal;min-width:0}
html body.nestify-standalone .nestify-app .n-sidebar .n-nav-label{white-space:normal}
body.nestify-standalone:has(.n-static-frame.n-drawer-open){overflow:hidden}
}
@media(max-width:599px){
html body.nestify-standalone .nestify-app .n-topbar{grid-template-columns:44px minmax(0,1fr) 44px 44px;padding:12px;column-gap:8px;row-gap:8px}
html body.nestify-standalone .nestify-app .n-topbar>.n-theme-toggle{grid-column:3}
html body.nestify-standalone .nestify-app .n-topbar>.n-mobile-account{grid-column:4}
html body.nestify-standalone .nestify-app .n-topbar>.n-balance{grid-column:2/-1;grid-row:2;min-height:36px;padding:6px 12px;font-size:12px}
}
@media(max-width:767px){.n-batch-summary,.n-batch-results{grid-template-columns:1fr}.n-batch-strip{padding:16px}.n-batch-strip>.n-row{display:grid;grid-template-columns:1fr}.n-batch-summary article{padding:16px}.n-batch-extra{padding:14px}.n-product-plans.n-extra-plans{grid-template-columns:1fr}.n-batch-thumbs button{flex-basis:90px}.n-batch-thumbs img{width:90px}.n-batch-strip .n-section-head{gap:8px}.n-batch-strip h2{font-size:17px}}

.n-billing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.n-fiscal-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--n-border);padding:18px 0}.n-fiscal-row p{font-size:14px;color:var(--n-muted);margin:6px 0}.n-fiscal-row .n-btn{flex-shrink:0}.n-billing-grid .n-field{min-width:0}
@media(max-width:599px){.n-billing-grid{grid-template-columns:1fr}.n-fiscal-row{align-items:flex-start;flex-direction:column}}

.nestify-app .n-batch-extra textarea{min-height:110px;max-height:280px}.n-batch-strip>.n-small{margin:14px 0 0}

.n-batch-downloads h2{font-size:22px;margin:0}.n-batch-download-options{display:grid;grid-template-columns:minmax(200px,1fr) minmax(250px,2fr);gap:24px;align-items:start;margin:20px 0}.n-batch-download-options .n-field{margin:0}.n-batch-download-options .n-small{margin:8px 0}.n-batch-preview{display:block;width:100%;border:0;padding:0;background:var(--n-page);border-radius:12px;cursor:pointer}.n-batch-preview:focus-visible{outline:3px solid var(--n-focus);outline-offset:3px}.n-batch-select{font-size:12px!important;white-space:nowrap;gap:5px!important}.n-batch-select input{width:20px;height:20px}.n-batch-results .n-section-head{gap:10px;align-items:center;margin-bottom:12px}.n-batch-results h2{font-size:18px;margin:0}.n-batch-status{font-size:14px;min-height:42px}.n-batch-results .n-row{gap:8px;align-items:stretch}.n-batch-results .n-btn{font-size:13px;min-height:44px}.n-batch-review-nav{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;padding:12px 16px}.n-batch-review-nav .n-row{gap:12px;white-space:nowrap}.n-batch-review-nav span{font-size:14px}.n-batch-bottom{margin-top:24px}
@media(max-width:767px){.n-batch-download-options{grid-template-columns:1fr;gap:18px}.n-batch-downloads>.n-row{display:grid;grid-template-columns:1fr 1fr}.n-batch-downloads>.n-row>.n-primary{grid-column:1/-1}.n-batch-review-nav{flex-direction:column;align-items:stretch;gap:10px}.n-batch-review-nav>.n-row{justify-content:space-between}.n-batch-downloads .n-section-head{align-items:flex-start}.n-batch-downloads h2{font-size:20px}.n-batch-results .n-row>.n-btn{flex:1}.n-batch-preview img{max-height:340px}}

/* Results first: advanced download preferences stay one tap away. */
.n-batch-download-details{margin:16px 0;padding:12px 0;border-top:1px solid var(--n-border);border-bottom:1px solid var(--n-border)}.n-batch-download-details>summary{cursor:pointer;font-size:14px;min-height:32px;line-height:1.5;padding:6px 0;color:var(--n-text)}.n-batch-downloads>.n-small{margin:14px 0 0}.n-batch-downloads>.n-section-head{margin-bottom:0}.n-batch-downloads>.n-section-head p{margin:8px 0 0}
@media(max-width:767px){.n-batch-downloads{padding:18px!important}.n-batch-downloads>.n-section-head{display:flex!important;flex-wrap:nowrap;gap:10px}.n-batch-downloads>.n-section-head>.n-btn{font-size:12px;padding:8px;min-width:80px}.n-batch-downloads>.n-section-head h2{font-size:18px}.n-batch-downloads>.n-section-head .n-small{font-size:12px;line-height:1.5}.n-batch-downloads>.n-row{gap:8px}.n-batch-selection-actions>.n-secondary{padding:6px;min-height:44px;font-size:13px;white-space:nowrap}.n-batch-downloads>.n-small{font-size:12px;line-height:1.5}.n-batch-download-details{margin:12px 0;padding:6px 0}.n-batch-download-details>summary{font-size:12px}}

/* Cards share a media baseline independently of text height. */
.nestify-app .n-service{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0}
.nestify-app .n-service>img{display:block;flex:none;width:100%;margin:0;object-fit:cover;object-position:center}
.nestify-app .n-service>.n-illustration{flex:none}
.nestify-app .n-service>div:last-child{flex:1;text-align:left}

/* Equal 44px touch targets and text baselines for footer links and preferences. */
.nestify-app .n-footer{align-items:center;gap:6px 22px}
.nestify-app .n-footer>a,.nestify-app .n-footer>span,.nestify-app .n-footer>.n-cookie-settings{display:inline-flex;align-items:center;min-height:44px;line-height:1.5;margin:0;padding:8px 0;box-sizing:border-box}
.nestify-app .n-footer>.n-cookie-settings[hidden]{display:none}

/* Consistent action spacing without adding margins to every button. */
.nestify-app :is(.n-row,.n-result-actions,.n-template-tools){column-gap:12px;row-gap:12px}
.nestify-app :is(.n-resume,.n-access)>.n-btn+.n-btn{margin-left:12px}
.nestify-app .n-batch-total>.n-btn{margin-top:14px;margin-right:10px}
.nestify-app .n-totals dd{min-width:0;overflow-wrap:anywhere;text-align:right}
.nestify-app .n-section-head{column-gap:16px;row-gap:12px}
.nestify-app .n-card>.n-section-head:first-child{margin-top:0}
html body.nestify-standalone.nestify-cmp-inline .nestify-app .n-footer{padding-bottom:24px}
@media(max-width:767px){
.nestify-app .n-static-main{padding-top:0}
.nestify-app .n-static-main .n-auth{padding-top:0}
.nestify-app .n-section-head{flex-wrap:wrap}
.nestify-app .n-auth-tabs a{min-height:44px}
.nestify-app .n-auth-options{column-gap:16px;row-gap:12px}
.nestify-app .n-auth-options>a{display:inline-flex;align-items:center;min-height:44px}
.nestify-app :is(.n-resume,.n-access)>.n-btn{width:100%}
.nestify-app :is(.n-resume,.n-access)>.n-btn+.n-btn{margin-left:0;margin-top:12px}
.nestify-app .n-batch-total>.n-btn{width:100%;margin:12px 0 0}
.nestify-app .n-account-grid .n-row>.n-btn{flex:1 1 180px}
.nestify-app .n-footer{column-gap:20px;row-gap:8px}
.nestify-app .n-footer>span:first-child{flex-basis:100%}
}
