/* FXWare PL 0.2.4: one look for native pages (downloads, manuals, legal and contact pages, cart, checkout).
   Content, forms and scripts of those pages stay native; this file only frames and skins them. */

/* frame: own hero with breadcrumbs and title instead of Storefront's breadcrumb band and centred title */
.fxw-pl-native .storefront-breadcrumb{display:none}
.fxw-pl .fx2n-hero{background:var(--fx-tint);position:relative;padding-bottom:34px}
.fxw-pl .fx2n-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(760px 340px at 80% 0,rgba(47,123,255,.15),transparent 70%);pointer-events:none}
.fxw-pl .fx2n-hero > .container{position:relative}
.fxw-pl .fx2n-hero h1{font-size:clamp(32px,3.6vw,46px);line-height:1.08;font-weight:800;color:var(--fx-text);margin:0}
.fxw-pl-native #primary{float:none;width:100%;max-width:calc(var(--container) + 2 * var(--gutter));padding:36px var(--gutter) 76px;margin-inline:auto}
.fxw-pl-native #primary .hentry{margin:0;padding:0;border:0}
.fxw-pl-native .entry-content{color:var(--fx-soft)}

/* plain text pages: direct children only, so shop forms and page builders keep their own layout */
.fxw-pl-native .entry-content > :is(p,ul,ol,h2,h3,h4,blockquote,table){max-width:820px}
.fxw-pl-native .entry-content > :is(p,ul,ol){font-size:17px;line-height:1.65;margin:0 0 14px}
.fxw-pl-native .entry-content > :is(ul,ol){padding-left:24px;margin-left:0}
.fxw-pl-native .entry-content > :is(ul,ol) li + li{margin-top:6px}
.fxw-pl-native .entry-content > h2{font-size:clamp(23px,2.2vw,28px);line-height:1.2;margin:36px 0 12px;color:var(--fx-text)}
.fxw-pl-native .entry-content > h2:first-child{margin-top:0}
.fxw-pl-native .entry-content > h3{font-size:20px;line-height:1.25;margin:26px 0 8px;color:var(--fx-text)}
.fxw-pl-native .entry-content > h4{font-size:17.5px;margin:20px 0 6px;color:var(--fx-text)}
.fxw-pl-native .entry-content > :is(p,ul,ol) a{color:var(--c-blue-700);text-decoration:underline;text-underline-offset:3px}
.fxw-pl-native .entry-content > :is(p,ul,ol) strong{color:var(--fx-text)}

.fxw-pl-native .entry-content > figure{max-width:820px;margin:0 0 20px}
.fxw-pl-native .entry-content > figure img,.fxw-pl-native .entry-content > p img{max-width:100%;height:auto;border-radius:10px}
.fxw-pl-native .entry-content figcaption{font-size:14.5px;color:var(--fx-muted);margin-top:8px}
.fxw-pl-native .entry-content iframe{max-width:100%}
.fxw-pl-native .entry-content > :is(p,ul,ol) code{background:#eef2f8;border-radius:5px;padding:1px 6px;font-size:.92em;color:var(--fx-text)}

/* WooCommerce notices in the light look, on every mapped view */
.fxw-pl .woocommerce-message,.fxw-pl .woocommerce-info,.fxw-pl .woocommerce-error,.fxw-pl .woocommerce-noreviews,.fxw-pl p.no-comments{background:#fff;color:var(--fx-text);border:1px solid var(--fx-edge);border-left:4px solid var(--c-blue-600);border-radius:12px}
.fxw-pl .woocommerce-error{border-left-color:#c6283b}
.fxw-pl .woocommerce-message::before,.fxw-pl .woocommerce-info::before,.fxw-pl .woocommerce-noreviews::before,.fxw-pl p.no-comments::before{color:var(--c-blue-600)}
.fxw-pl .woocommerce-error::before{color:#c6283b}
.fxw-pl .woocommerce-message a,.fxw-pl .woocommerce-info a,.fxw-pl .woocommerce-error a{color:var(--c-blue-700)}
.fxw-pl .woocommerce-message a.button,.fxw-pl .woocommerce-message a.button:visited,.fxw-pl .woocommerce-info a.button,.fxw-pl .woocommerce-info a.button:visited,.fxw-pl .woocommerce-error a.button,.fxw-pl .woocommerce-error a.button:visited{background:var(--c-blue-600);color:#fff;border-left-color:transparent}
.fxw-pl .woocommerce-message a.button:hover,.fxw-pl .woocommerce-message a.button:focus-visible,.fxw-pl .woocommerce-info a.button:hover,.fxw-pl .woocommerce-info a.button:focus-visible,.fxw-pl .woocommerce-error a.button:hover,.fxw-pl .woocommerce-error a.button:focus-visible{background:var(--c-blue-700);color:#fff}

/* miniatures added by native.js */
.fxw-pl .fx2n-mini{flex:0 0 auto;display:inline-block;width:52px;height:33px;aspect-ratio:auto;border-radius:5px;overflow:hidden;border:1px solid var(--fx-edge);background:#fff}
.fxw-pl .fx2n-mini--lg{width:96px;height:60px;border-radius:8px}

/* downloads and manuals: their own layout stays, colours, type and shapes follow the site.
   Two ids are needed because both pages ship id-scoped inline styles. */
body.fxw-pl #page #main :is(.fxw-downloads-v2,.fxw-manuals-v2){--ink:var(--fx-text);--muted:var(--fx-muted);--blue:var(--c-blue-700);--purple:var(--fx-text);--line:var(--fx-edge);font-family:var(--font-body);font-size:16.5px;color:var(--fx-soft)}
body.fxw-pl #page #main .fxw-downloads-v2 .page-intro{font-size:18px;color:var(--fx-soft)}
body.fxw-pl #page #main :is(.product-index,.manual-index){background:#f6f8fc;border:1px solid var(--fx-edge);border-radius:16px;padding:22px 24px 14px}
body.fxw-pl #page #main :is(.product-index,.manual-index) h2{font-family:var(--font-head);font-size:20px;font-weight:700;color:var(--fx-text)}
body.fxw-pl #page #main :is(.product-index,.manual-index) li a{gap:12px;align-items:center;min-height:54px;font-size:15.5px;font-weight:600;color:var(--fx-text);border-bottom-color:var(--fx-edge)}
body.fxw-pl #page #main :is(.product-index,.manual-index) li a:hover{color:var(--c-blue-700);text-decoration:none}
body.fxw-pl #page #main .fxw-downloads-v2 :is(.all-manuals,.ftmo-index){font-size:15px;color:var(--c-blue-700)}
body.fxw-pl #page #main :is(.product-section,.manual-section){border:1px solid var(--fx-edge);border-radius:16px;background:#fff;padding:28px;margin-top:20px}
body.fxw-pl #page #main :is(.section-heading h2,.manual-primary h2,.ftmo-section h2){display:flex;align-items:center;gap:16px;font-family:var(--font-head);font-size:clamp(22px,2.2vw,27px);font-weight:700;letter-spacing:0;color:var(--fx-text);border:0;padding:0;background:none}
body.fxw-pl #page #main .fxw-downloads-v2 .product-meta{font-size:15px}
body.fxw-pl #page #main :is(.product-body h3,.manual-primary h3,.resource-group h3){font-family:var(--font-body);font-size:16px;font-weight:700;color:var(--fx-text)}
body.fxw-pl #page #main :is(.download-button,.document-link){border:1.5px solid var(--c-blue-600);border-radius:10px;min-height:50px;font-size:16px;font-weight:600;color:var(--c-blue-700);background:#fff}
body.fxw-pl #page #main :is(.download-button,.document-link):hover{background:#eef4ff;border-color:var(--c-blue-700)}
body.fxw-pl #page #main .fxw-downloads-v2 :is(.demo-block,.release-list,.bundle-note,.ftmo-list,.ftmo-body p){font-size:15.5px;line-height:1.65}
body.fxw-pl #page #main .fxw-downloads-v2 .demo-block h3{font-size:16px}
body.fxw-pl #page #main .fxw-downloads-v2 .release-heading{font-size:15.5px;color:var(--fx-text)}
body.fxw-pl #page #main :is(.manual-links a,.resource-links a,.history-disclosure summary){font-size:15.5px;font-weight:600;color:var(--c-blue-700)}
body.fxw-pl #page #main :is(.back-index){font-size:14px;color:var(--fx-muted)}
body.fxw-pl #page #main :is(.back-index):hover{color:var(--c-blue-700)}
@media (max-width:800px){
  body.fxw-pl #page #main :is(.product-section,.manual-section){padding:22px 18px;margin-top:14px}
}
@media (max-width:520px){
  body.fxw-pl #page #main :is(.product-index,.manual-index){padding:16px 14px 10px}
  body.fxw-pl #page #main :is(.product-index,.manual-index) li a{font-size:15px;gap:8px}
  .fxw-pl .fx2n-mini{width:40px;height:26px}
  .fxw-pl .fx2n-mini--lg{width:72px;height:45px}
  .fxw-pl-native #primary{padding-top:26px;padding-bottom:56px}
}

/* readability: small labels inside downloads and manuals */
body.fxw-pl #page #main .fxw-downloads-v2 :is(.product-alias,.back-index,.back-label){font-size:15px}
body.fxw-pl #page #main .fxw-downloads-v2 .release-list code{font-size:.95em}

/* 0.2.8: legal and other long texts wrapped in their own blocks keep a readable line length */
.fxw-pl-native .entry-content > div:not([class]) > :is(p,ul,ol,h2,h3,h4){max-width:860px}
.fxw-pl-native .entry-content > div:not([class]) > :is(p,ul,ol){font-size:17px;line-height:1.65}
.fxw-pl-native .entry-content > div:not([class]) > :is(ul,ol) li + li{margin-top:6px}
.fxw-pl-native .entry-content > div:not([class]) > :is(h2,h3){color:var(--fx-text)}
.fxw-pl-native .entry-content > hr{max-width:860px;margin:32px 0;background:var(--fx-edge)}
