:root{
  --navy:#0d2f8f; --navy-d:#0a256f; --blue:#1557e6; --ink:#1a2a5c; --muted:#5b6b96;
  --line:#dfe6f3; --panel:#eef2fa; --bg:#ffffff; --card:#ffffff; --tab:#eaeff8;
  --sky1:#7fc0ea; --sky2:#3f8fd0;
  --font:"Rubik",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --navy:#8fb0ff; --navy-d:#0a256f; --blue:#3b74ee; --ink:#e6ecfb; --muted:#9db0dd;
    --line:#2a3a6b; --panel:#141d3d; --bg:#0c1330; --card:#111a38; --tab:#17224a;
  }
}
:root[data-theme="dark"]{
  --navy:#8fb0ff; --navy-d:#0a256f; --blue:#3b74ee; --ink:#e6ecfb; --muted:#9db0dd;
  --line:#2a3a6b; --panel:#141d3d; --bg:#0c1330; --card:#111a38; --tab:#17224a;
}
*,*::before,*::after{box-sizing:border-box}
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;font-family:var(--font);background:var(--bg);color:var(--ink);line-height:1.5;-webkit-text-size-adjust:100%}
img,svg{max-width:100%}
.img-responsive{ display: block; max-width: 100%; height: auto; border:0; }

a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.wrapper{width:100%;max-width:1240px;margin:0 auto;padding:0 20px}
h1,h2,h3{margin:0;color:var(--navy);line-height:1.15}
.btn{display:flex;align-items:center;justify-content:center;gap:10px;font:500 15px var(--font);padding:13px 22px;border-radius:4px;border:2px solid transparent;cursor:pointer;transition:background .15s,color .15s}
.btn svg{width:18px;height:18px;flex:none}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:#0f46c0}
.btn-outline{background:transparent;color:var(--blue);border-color:var(--blue)}
.btn-outline:hover{background:var(--blue);color:#fff}
.btn-light{color:#fff;border-color:#c9d6f5;background:transparent}
.btn-light:hover{background:rgba(255,255,255,.15)}

/* Hero */
.hero{position:relative;min-height:400px;display:flex;align-items:stretch;overflow:hidden;  background-color: #0a256f;
  background-image:url(images/product-hero.jpg); background-repeat: no-repeat; background-size: cover; background-position: 50% 50%;}

.hero-caption{position:relative;z-index:1;width:min(550px,100%);background:rgba(13,47,143,.88);color:#fff;padding:60px 28px 30px}
.hero-caption h1{color:#fff;font-size:clamp(2rem,4.5vw,3rem);font-weight:600}
.hero-caption p{margin:6px 0 22px;font-size:1.4rem;font-weight:400}
.hero-caption .btn{width:max-content;max-width:100%}
.hero-caption .btn+.btn{margin-top:14px}


/* Main layout */
.mainContent{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:26px; margin:0; padding:20px 0px;align-items:start}
.leftContent{ position: relative; padding-top: 20px;}
.rightContent{ position: relative; padding-top: 20px;}
.section-title{font-size:2rem;font-weight:600;margin-bottom:2px}
.sub{color:var(--muted);margin:0 0 18px}
.install-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.install-card{background:var(--card);border:1px solid var(--line);border-radius:4px;padding:24px 20px 26px;display:flex;flex-direction:column}
.install-card img{width:100%;height:auto;display:block;}
.cardimage{display:block;margin-bottom:26px}
.install-card h3{font-size:1.65rem;font-weight:600}
.install-card .type{font-size:1.25rem;color:var(--navy);margin:2px 0 14px}
.ticks{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ticks li{position:relative;padding-left:36px;color:var(--muted);font-size:1rem}
.ticks li::before{content:"";position:absolute;left:0;top:3px;width:20px;height:20px;background:var(--blue);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat}

/* Order panel */
.order{background:var(--panel);border-radius:6px;padding:26px 22px 20px}
.order h2{font-size:1.5rem;font-weight:600}
.order .sub{margin-bottom:22px;font-size:.95rem}
.field{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:8px;margin-bottom:12px}
.field label{font-size:.9rem;font-weight:500;color:var(--navy)}
.field select,.field input{width:100%;font:400 .9rem var(--font);color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:4px;padding:10px 12px;min-height:40px}
.order .btn{width:100%;margin-top:14px}
.badges{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:22px;text-align:center;font-weight:500;font-size:.95rem;color:var(--navy)}
.badges svg{width:48px;height:48px;display:block;margin:0 auto 6px}
.badges small{display:block;font-weight:400;color:var(--muted);font-size:.72rem}

/* Tabs */
.bab-tab-content {
  padding: 25px;
  border: 1px solid #ccc;
}
.tabs{display:flex;background:var(--tab);margin-top:28px;border-radius:4px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs a{flex:1 0 auto;text-align:center;padding:20px 26px;font-size:1rem;color:var(--muted);border-bottom:3px solid transparent;white-space:nowrap}
.tabs a[aria-current="true"]{color:var(--blue);border-color:var(--blue);font-weight:500}
.tabs a:hover{color:var(--blue)}

/* Description */
.desc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;margin-top:26px;align-items:start}
.desc h2{font-size:1.9rem;font-weight:600;margin-bottom:14px}
.desc p{color:var(--muted);margin:0 0 20px;max-width:60ch}
.checks{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.checks li{display:flex;gap:12px;align-items:center;color:var(--muted)}
.checks li::before{content:"\2713";flex:none;width:24px;height:24px;border-radius:50%;background:var(--blue);color:#fff;font-size:14px;display:grid;place-items:center}
.sheet{border:1px solid var(--line);background:#fff;color:#1a2a5c}
.sheet-h{background:var(--navy-d);color:#fff;font-weight:600;padding:8px 12px;letter-spacing:.02em}
.sheet-b{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}
.sheet-b>div{background:#fff;padding:12px;min-height:110px}
.sheet-b .wide{grid-column:1/-1}
.sheet i{display:block;height:6px;border-radius:3px;background:#d3dcf0;margin:8px 0}
.sheet i:nth-child(3n){width:70%}
.sheet svg{width:100%;height:auto}
.sheet-f{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;font-weight:700;font-size:1.5rem;color:var(--navy-d);border-top:1px solid var(--line);letter-spacing:.12em}
.sheet-f small{font-size:.7rem;letter-spacing:0;font-weight:400}
.datasheet{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;color:var(--blue)}
.datasheet svg{width:20px;height:20px}

/* In use */
.use{margin-top:44px}
.use h2{font-size:2rem;font-weight:600}
.use-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:6px}
.use-card{display:block;border-radius:4px;overflow:hidden;box-shadow:0 2px 8px rgba(13,47,143,.15)}
.use-img{position:relative}

.use-label{display:flex;justify-content:space-between;align-items:center;background:var(--navy);color:#fff;padding:14px 20px;font-weight:500;font-size:1.05rem}
:root:not([data-theme="light"]) .use-label{color:#fff}
.use-label{background:#0d3aa6}

/* CTA bar */
.footer-cta{margin-top:44px;background:var(--navy-d);color:#fff;padding:26px 0}
.footer-cta .wrap{display:flex;align-items:center;justify-content:center;gap:34px;flex-wrap:wrap; padding: 0px 20px;}
.cta-call{display:flex;align-items:center;gap:22px}
.cta-icon{width:76px;height:76px;border:2px solid #b9c8ee;border-radius:50%;display:grid;place-items:center;flex:none}
.cta-icon svg{width:34px;height:34px}
.cta-call p{margin:0;font-size:1.15rem}
.cta-call strong{display:block;font-size:2.2rem;font-weight:600;line-height:1.2}
.footer-cta .btn{min-width:350px;padding:20px 26px;font-size:1.1rem}
.footer-cta .divider{width:1px;align-self:stretch;background:rgba(255,255,255,.3)}

/* Responsive */
@media (max-width:1040px){
  .mainContent{grid-template-columns:1fr}
  .order{max-width:560px}
}
@media (max-width:800px){
  .hero{flex-direction:column;min-height:0}
  .hero-caption{width:100%;padding:28px 20px; background: rgba(13, 47, 143, 0.5);}
  .hero-people{position:relative;right:auto;justify-content:center;padding-top:60px}
  .install-grid,.use-grid,.desc{grid-template-columns:1fr}
  .footer-cta .divider{display:none}
  .footer-cta .btn{min-width:0;width:100%}
  .footer-cta .wrap{flex-direction:column;align-items:stretch;gap:20px}
  .section-title,.use h2{font-size:1.65rem}
}
@media (max-width:480px){
  .wrapper{padding:0 20px}
  .wrap{padding:0px}
  .field{grid-template-columns:1fr;gap:4px}
  .tabs a{padding:16px 18px}
  .cta-call strong{font-size:1.5rem}
  .cta-icon{width:60px;height:60px}
  .badges{font-size:.85rem}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* =========================================================
   BAB Aluminium installation layout
   Keep existing CSS above intact; these rules only add the
   separate benefits box beneath the image/title/type cards.
   ========================================================= */
.bab-installation-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bab-installation-layout > .install-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch;
}

.bab-installation-layout > .install-grid > .install-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  padding: 20px 20px 12px;
  display: flex;
  flex-direction: column;
}

.bab-installation-layout > .install-grid .cardimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  margin: 0 0 18px;
  overflow: hidden;
}

.bab-installation-layout > .install-grid .cardimage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.bab-installation-layout > .install-grid .install-card h3 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
}

.bab-installation-layout > .install-grid .install-card .type {
  margin: 6px 0 0;
  font-size: 1rem;
  color: var(--muted);
}

/* One separate bordered benefits panel, with one column per repeater row. */
.bab-installation-layout > .installation-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border: 1px solid #d1d3d5;
  background: #fff;
}

.bab-installation-layout .installation-benefits-card {
  min-width: 0;
  padding: 8px 0;
  background: #fff;
}

.bab-installation-layout .installation-benefits-card + .installation-benefits-card {
  border-left: 1px solid #d1d3d5;
}

.bab-installation-layout .installation-benefits-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.bab-installation-layout .installation-benefits-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  position: relative;
  min-width: 0;
  min-height: 42px;
  padding: 0 0 0 34px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.bab-installation-layout .installation-benefits-list > li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 11px;
  width: 20px;
  height: 20px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bab-installation-layout .installation-benefits-list .benefit-length {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 4px 8px 0;
  overflow-wrap: anywhere;
}

.bab-installation-layout .installation-benefits-list .benefit-capacity {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  max-width: 180px;
  padding: 8px 10px;
  background: #efeded;
  color: #454545;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
}

.bab-installation-layout .installation-benefits-list > li.no-capacity {
  grid-template-columns: minmax(0, 1fr);
}

.bab-installation-layout .installation-benefits-list > li.no-capacity .benefit-length {
  grid-column: 1;
}

/* Hide the benefits heading visually but keep it accessible. */
.bab-installation-layout .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 800px) {
  .bab-installation-layout > .install-grid,
  .bab-installation-layout > .installation-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .bab-installation-layout > .install-grid > .install-card {
    padding: 14px 12px 12px;
  }

  .bab-installation-layout > .install-grid .cardimage {
    height: 160px;
    margin-bottom: 14px;
  }

  .bab-installation-layout > .install-grid .install-card h3 {
    font-size: 1.25rem;
  }

  .bab-installation-layout > .installation-benefits-grid {
    border: 1px solid #d1d3d5;
  }

  .bab-installation-layout .installation-benefits-card + .installation-benefits-card {
    border-left: 1px solid #d1d3d5;
  }

  .bab-installation-layout .installation-benefits-list > li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding-left: 27px;
    font-size: .88rem;
  }

  .bab-installation-layout .installation-benefits-list > li::before {
    left: 7px;
    width: 16px;
    height: 16px;
    top: 12px;
  }

  .bab-installation-layout .installation-benefits-list .benefit-capacity {
    min-width: 0;
    max-width: 125px;
    padding: 6px;
    font-size: .72rem;
  }
}

@media (max-width: 560px) {
  .bab-installation-layout > .install-grid,
  .bab-installation-layout > .installation-benefits-grid {
    grid-template-columns: 1fr !important;
  }

  .bab-installation-layout > .installation-benefits-grid {
    gap: 0 !important;
  }

  .bab-installation-layout .installation-benefits-card + .installation-benefits-card {
    border-left: 0;
    border-top: 1px solid #d1d3d5;
  }

  .bab-installation-layout > .install-grid .cardimage {
    height: 200px;
  }

  .bab-installation-layout .installation-benefits-list .benefit-capacity {
    max-width: 160px;
    font-size: .82rem;
  }
}
/* Fix WooCommerce variation dropdown sizing */
.rightContent.order form.variations_form table.variations {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse;
}

.rightContent.order form.variations_form table.variations tr {
    display: table-row;
}

.rightContent.order form.variations_form table.variations td.label {
    width: 40% !important;
    padding: 5px 10px !important;;
    vertical-align: middle;
    box-sizing: border-box;
}
.rightContent.order form.variations_form table.variations th {
    padding: 5px 10px !important;;
}
.rightContent.order form.variations_form table.variations td.value {
    width: 60% !important;
    padding: 5px 10px;
    vertical-align: middle;
    box-sizing: border-box;
}

/* Keep all variation dropdowns the same width */
.rightContent.order form.variations_form table.variations td.value select,
.rightContent.order form.variations_form table.variations td.value .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.rightContent.order form.variations_form table.variations td.value .select2-selection--single {
    width: 100% !important;
    height: 44px !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
}

.rightContent.order form.variations_form table.variations td.value .select2-selection__rendered {
    line-height: normal !important;
    padding-right: 30px !important;
}

.rightContent.order form.variations_form table.variations td.value .select2-selection__arrow {
    height: 42px !important;
}

/* Mobile adjustment */
@media (max-width: 600px) {
    .rightContent.order form.variations_form table.variations td.label {
        width: 38% !important;
    }

    .rightContent.order form.variations_form table.variations td.value {
        width: 62% !important;
    }
}
