/* compress using https://www.seomagnifier.com/best-css-minifier */
/* =========================================================
   THEME TOKENS
   ========================================================= */
:root{
  --bg:#ffffff;
  --ink:#111827;
  --text:var(--ink);
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f5f5f5;

  --brand:#111827;
  --brand-2:#1f2937;
  --accent:#2563eb;

  --ok:#166534;   --ok-bg:#ecfdf5;
  --warn:#92400e; --warn-bg:#fffbeb;
  --bad:#991b1b;  --bad-bg:#fef2f2;

  --radius:16px; --radius-sm:10px;
  --shadow:0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);

  --header-height:52px;
  --header-offset:52px;
    
  /* SSB palette */
  --navy:#0b2d4d;
  --ocean:#0f5e74;
  --sand:#f3efe6;
  --cream:#ffffff;
  --coral:#d86b5a;
  --gold:#c9a227;

  /* SSB neutrals (these affect borders + text tone) */
  --ink:#0e1726;
  --muted:#55657a;
  --line:#e6e8ec;

  /* optional but helps the “SSB feel” */
  --shadow:0 10px 28px rgba(15,23,42,.14);
  --radius:18px;
  --radius2:26px;
  --max:1180px;
  --page-pad:16px;
}
@supports(padding:max(0px)){
  :root{
    --safe-l:env(safe-area-inset-left);
    --safe-r:env(safe-area-inset-right);
  }
}
@media (max-width:600px){
  :root{
    --header-height:58px;
    --header-offset:58px;
  }
}

/* =========================================================
   BASE / RESET
   ========================================================= */
*{ box-sizing:border-box; }
html,body{
  margin:0;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--ink);
}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  line-height:1.5;
  scroll-padding-top:var(--header-offset);
  padding-top:var(--header-height) !important;
  transition:background-color .5s;
}
a{ color:inherit; text-decoration:none; }

/* Break old center wrappers so they don't cap the header width */
body > div[align="center"],
#wrap,
#main_wrap{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
}

/* =========================================================
   CONTENT WIDTHS
   ========================================================= */
#main_content,
.content_area{
  width:100%;
  max-width:none;
  margin:0 auto;
  padding-left:16px;
  padding-right:16px;
}
@media (min-width:1024px){
  #main_content,
  .content_area{
    max-width:1120px;
    padding-left:16px;
    padding-right:16px;
  }
}
.content_area a:link,
.content_area a:visited{ text-decoration:none; }
.wrap{
  max-width:1120px;
  margin:auto;
  padding:0 16px;
}
.container{
  max-width:1120px;
  margin:0 !important;
  padding:20px;
  padding-top:0 !important;
}
.grid{ display:grid; gap:24px; }
.grid-4{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:1100px){
  .grid-4{ grid-template-columns:repeat(3,1fr); }
}
@media(max-width:840px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:560px){
  .grid-4{ grid-template-columns:1fr; }
}
.soft{ background:var(--soft); }

/* =========================================================
   FIXED HEADER (FULL-BLEED BACKGROUND)
   ========================================================= */
#header_wrap{
  position:fixed !important;
  top:0;
  left:0;
  right:0;
  width:100vw !important;                 /* background + border reach edges */
  margin:0 !important;
  background:#fff;
  border-bottom:1px solid var(--line);
  z-index:2500;
  line-height:1;
}

/* Inner menu: same width as sections below */
#header_menu{
  max-width:1120px !important;            /* match section width */
  width:100% !important;
  margin:0 auto !important;               /* center inside full-bleed bar */
  padding:10px 16px;
  padding-left:max(16px,var(--safe-l));
  padding-right:max(16px,var(--safe-r));
  line-height:1.1;
}

/* Keep table layout but ensure it fills the row */
#header_menu table{
  width:100% !important;
  table-layout:fixed;
  border-collapse:collapse;
}
#header_menu td{
  padding:0 6px;
  vertical-align:middle;
  white-space:nowrap;
}
#header_menu img{
  max-width:100%;
  height:auto;
  display:inline-block;
}
#header_menu select{ max-width:100%; }

/* Brand text behaviour */
.brand{ white-space:nowrap; }
.brand-full{ display:inline; }
.brand-short{ display:none; }

@media (max-width:900px){
  .brand-full{ display:none !important; }
  .brand-short{ display:inline !important; }
}

/* Remove any accidental gap below header */
#header_wrap + section{
  border-top:0 !important;
  display:flow-root;
}
#header_wrap + section .wrap{
  padding-top:8px !important;
}
#header_wrap + section h1:first-child{
  margin-top:0 !important;
}
#header_wrap + header.hero{
  margin-top:0 !important;
}

/* =========================================================
   ANCHOR OFFSET
   ========================================================= */
[id]:target::before{
  content:"";
  display:block;
  height:var(--header-offset);
  margin-top:calc(-1 * var(--header-offset));
  visibility:hidden;
  pointer-events:none;
}
section[id]{ scroll-margin-top:var(--header-offset); }

/* =========================================================
   HERO (tight) — KeySafe
   ========================================================= */

.hero{
  margin:0 !important;
  padding:6px 0 4px !important;
  display:flow-root;
}
header.hero{ padding:6px 0 4px !important; }

.hero .wrap{
  max-width:1120px;
  margin:0 auto;
  padding:0 16px;
}

/* Layout */
.hero--main .hero-inner{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr; /* left bigger than right */
  gap:18px;
  align-items:start; /* CRITICAL: stop stretch */
}

/* Left blue panel */
.hero--main .hero-main{
  background: linear-gradient(180deg, #1f5c8c 0%, #1c4f7b 100%);
  color:#fff;
  border-radius:18px;
  padding:22px 22px 18px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* Title + lead */
.hero--main .hero-main h1{
  font-size:clamp(28px,4vw,44px);
  line-height:1.1;
  margin:0 0 10px !important;
  font-weight:900;
  letter-spacing:-0.3px;
}

.hero--main .hero-main .hero-lead,
.hero--main .hero-main p{
  color:rgba(255,255,255,0.92);
  font-size:16px;
  line-height:1.55;
  margin:0 0 14px;
}

/* Trust strip inside left panel */
.hero--main .truststrip--hero{
  margin-top:14px;
}

.hero--main .truststrip--hero .trust-left{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

/* Badges */
.hero--main .truststrip--hero .badge{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(255,255,255,0.28);
  background:rgba(255,255,255,0.08);
  color:#fff;
  padding:7px 12px;
  border-radius:999px;
  font-weight:750;
  font-size:14px;
  white-space:nowrap;
}

/* Buttons inside badges */
.hero--main .truststrip--hero .badge .btn{
  padding:6px 12px;
  border-radius:999px;
  font-weight:850;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.hero--main .truststrip--hero .badge .btn.small.secondary{
  background:#fff;
  color:#173b5a;
}

.hero--main .truststrip--hero .badge .btn.small.primary{
  background:rgba(255,255,255,0.16);
  border:1px solid rgba(255,255,255,0.35);
  color:#fff;
}

/* Right card */
.hero--main .hero-side-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px 16px 14px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  align-self:start; /* ensure no stretch */
}

.hero--main .hero-side-card h2{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.2;
  font-weight:900;
  text-align:center;
}

/* Right card text */
.hero--main .hero-side-card ul{
  list-style:none;
  padding:0;
  margin:10px 0 8px;
}

.hero--main .hero-side-card li{
  margin:0 0 10px;
  line-height:1.35;
  font-size:14px;
  color:#223;
}

.hero--main .hero-side-card li strong{
  font-weight:900;
}

.hero--main .hero-side-note{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
  text-align:center;
}

/* --- HERO image block in right card --- */
.hero-side-media{
  margin:0 0 10px;
}

.hero-side-media .frame{
  max-width: 300px;            /* smaller footprint */
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.hero-side-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.hero-side-media .caption{
  max-width: 300px;
  margin: 8px auto 0;
  font-size: 13px;
  line-height: 1.25;
  text-align:center;
}

.hero-side-media .caption strong{
  display:inline;
  margin-right: 6px;
  font-weight:900;
}

.hero-side-media .caption span{
  display:inline;
  color: var(--muted);
  font-weight:650;
}

/* Responsive */
@media (max-width: 980px){
  .hero--main .hero-inner{
    grid-template-columns:1fr;
  }
  .hero--main .hero-main{
    padding:18px 18px 14px;
  }
  .hero--main .hero-side-card{
    padding:14px 14px 12px;
  }
}

/* Normalize hero buttons */
.hero .cta-row a{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

/* Primary CTA */
.hero .cta-row a.primary,
.hero .cta-row a:last-child{
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.hero .trust-inline{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  font-size:14px;
  color:rgba(255,255,255,.85);
}

.hero .trust-inline span{
  padding:2px 8px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
}

.hero-main{
  display:flex;
  flex-direction:column;
  justify-content:space-between; /* ← THIS is the fill */
  min-height:100%;
}

.hero-ctas{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.hero-trustline{
  margin-top:14px;
  font-size:14px;
  color:rgba(255,255,255,0.85);
}
/* centre the CTA block */
.hero-ctas{
  display:flex;
  justify-content:center;   /* ← centre horizontally */
  gap:14px;
  flex-wrap:wrap;
  margin-top:22px;
}

/* optional: keep both buttons same visual weight/height */
.hero-ctas .btn{
  min-width: 220px;         /* adjust 200–240 */
  text-align:center;
}

/* centre the trust line under the buttons */
.hero-trustline{
  text-align:center;
}

.hero-support{
  margin:10px auto 0;
  max-width: 56ch;
  font-size: 18px;
  font-weight: 700;
  opacity: 0.92;
  text-align: center;
}

.hero-main{
  text-align:center;
}


/* =========================================================
   TYPE
   ========================================================= */
h1{
  font-size:clamp(28px,4vw,40px);
  line-height:1.2;
  margin:0 0 8px;
}
h2{ font-size:clamp(20px,2.6vw,28px); margin:0; }
h3{ font-size:20px; margin:0; }

/* =========================================================
   BUTTONS / BADGES
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:12px;
  min-height:44px;
  font-weight:700;
  cursor:pointer;
  border:1px solid var(--line);
  background:#fff;
  color:var(--brand);
}
.btn.primary{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}
.btn.secondary{
  background:#fff;
  color:var(--brand);
  border:1px solid var(--line);
}
.btn.small{
  padding:8px 12px;
  font-size:14px;
}
.btn:focus,
:focus-visible{
  outline:3px solid #93c5fd;
  outline-offset:2px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  font-size:14px;
  color:#374151;
}
.pillrow{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:16px;
  color:#374151;
  font-size:14px;
}

/* =========================================================
   RECOMMENDATIONS — FULL BLOCK (base + fixes)
   Safe: scoped to .recommendations only
   Paste at END of CSS file
   ========================================================= */

/* Section wrapper */
.recommendations .wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header rows (matches your markup: .section-head--split) */
.recommendations .section-head.section-head--split{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
}

.recommendations .section-head-title{
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: .2px;
}

.recommendations .section-head-text{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  text-align: right;
  max-width: 60ch;
}

/* Spacing between groups */
.recommendations .reco-group{
  margin: 0 0 18px;
}

/* Grid base */
.recommendations .cards--reco{
  display: grid;
  gap: 14px;
  align-items: stretch;
}

/* 2-col / 3-col variants (as in your HTML classes) */
.recommendations .cards--reco-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recommendations .cards--reco-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Card base */
.recommendations .reco-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  overflow: hidden; /* keeps image window corners clean */
}

/* ---------------------------------------------------------
   SAFE FIXES (do not affect other site parts)
   --------------------------------------------------------- */

/* 1) Stop any global "badge/pill" styling from floating TAG/NOTE */
.recommendations .reco-card .tag,
.recommendations .reco-card .note{
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;

  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  white-space: normal !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.recommendations .reco-card .tag::before,
.recommendations .reco-card .tag::after,
.recommendations .reco-card .note::before,
.recommendations .reco-card .note::after{
  content: none !important;
}

/* 2) Full-width image “window” inside reco cards */
.recommendations .reco-card .imgwrap{
  width: 100% !important;
  margin: 0 !important;

  border-bottom: 1px solid var(--line) !important;
  background: #fff !important;

  /* consistent window */
  aspect-ratio: 4 / 3 !important;

  /* override any global imgwrap flex/height rules */
  height: auto !important;
  display: block !important;
  overflow: hidden !important;
}

.recommendations .reco-card .imgwrap a{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.recommendations .reco-card .imgwrap img,
.recommendations .reco-card .imgwrap img.responsive-image-100{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: contain !important; /* swap to cover if you prefer cropping */
}

/* 3) Meta row tidy (price + button) */
.recommendations .reco-card .meta{
  gap: 10px;
}

.recommendations .reco-card .price{
  font-weight: 900;
}

/* Responsive */
@media (max-width: 980px){
  .recommendations .cards--reco-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommendations .section-head.section-head--split{ align-items: flex-start; }
  .recommendations .section-head-text{ text-align: left; }
}

@media (max-width: 640px){
  .recommendations .cards--reco-2,
  .recommendations .cards--reco-3{ grid-template-columns: 1fr; }

  .recommendations .section-head.section-head--split{
    flex-direction: column;
    align-items: flex-start;
  }
  .recommendations .section-head-text{
    margin-top: 6px;
    text-align: left;
  }
}

.cards--reco .reco-card .imgwrap{
  aspect-ratio: 4 / 3;     /* choose the shape you like */
  width: 100%;
  overflow: hidden;
}

.cards--reco .reco-card .imgwrap img{
  width: 100%;
  height: 100%;
  object-fit: contain;     /* keeps full product visible (no cropping) */
  display: block;
}

/* More breathing room between HERO and RECOMMENDATIONS */
#recommended{
  margin-top: 28px;
}

@media (max-width: 640px){
  #recommended{
    margin-top: 20px;
  }
}
/* =========================================================
   TRUST STRIP (tight)
   ========================================================= */
.truststrip{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  text-align:center;
  margin:0 !important;
  padding:4px 0 6px !important;
}
.truststrip .trust-left{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:18px !important;
  margin:0 auto !important;
  width:auto !important;
}
.truststrip .badge{ margin:4px 6px; }

/* =========================================================
   MEDIA WRAPS
   ========================================================= */
.imgwrap{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:#f8fafc;
  height:210px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.imgwrap img{
  max-height:100%;
  width:auto;
}
.ribbon{
  position:absolute;
  top:8px;
  left:8px;
  background:var(--brand);
  color:#fff;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
}
.frame{
  aspect-ratio:4/3;
  background:#fafafa;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:inset 0 1px 0 rgba(0,0,0,.03);
  padding:24px;
  position:relative;
  display:grid;
  place-items:center;
  text-align:center;
  max-width:100%;
}
.frame-figure{ margin:0; }
.frame-caption{
  margin-top:12px;
  line-height:1.4;
}
.responsive-image-100{
  max-width:100%;
  height:auto;
}
.note{
  position:absolute;
  right:-12px;
  bottom:-12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px 10px;
  box-shadow:var(--shadow);
  font-size:12px;
}

/* =============================================
   INFO CARDS 
   ============================================== */
.section{
   padding:28px 0 0;
}

.section h2{
   font-family:"Playfair Display",serif;
   font-weight:600;
   font-size:32px;
   letter-spacing:-.2px;
   text-align:center;
   margin:18px 0 8px;
   color:#1f2430;
}

.section .sub{
   text-align:center;
   color:#6b7280;
   margin:0 auto 18px;
   max-width:72ch;
   font-size:14px;
   line-height:1.5;
}

.cards-4{
   display:grid;
   grid-template-columns:repeat(4,1fr);
   gap:20px;
}

.info-card{
   background:#fff;
   border:1px solid rgba(15,23,42,.10);
   border-radius:18px;
   box-shadow:0 10px 24px rgba(15,23,42,.05);
   overflow:hidden;
}

.info-card .thumb{
   aspect-ratio:4/3;
   background:#e9eef5;
   border-bottom:1px solid rgba(15,23,42,.10);
}

.info-card .thumb img{
   width:100%;
   height:100%;
   object-fit:cover;
}

.info-card .body{
   padding:18px 18px 20px;
   background:#fff;
}

.info-card h3{
   margin:0 0 8px;
   font-size:18px;
   line-height:1.25;
   letter-spacing:-.1px;
   color:#1f2430;
   font-weight:700;
}

.info-card p{
   margin:0;
   color:#6b7280;
   font-size:15px;
   line-height:1.55;
}
/* =============================================
   LINKS CARDS 
   ============================================= */
.coffre-links {
   padding: 16px 0 28px 0;
}

.coffre-links-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 18px;
   margin-top: 14px;
}

.coffre-link-card {
   display: block;
   text-decoration: none;
   color: inherit;
   background: #f8fbff;
   border: 1px solid #d8e4f0;
   border-radius: 16px;
   padding: 18px;
   text-align: left;
   transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.coffre-link-card:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.coffre-link-card h3 {
   margin: 0 0 8px 0;
   font-size: 1.08rem;
   line-height: 1.3;
}

.coffre-link-card p {
   margin: 0;
   line-height: 1.6;
}

@media (max-width: 900px) {
   .coffre-links-grid {
      grid-template-columns: 1fr;
   }
}

/* =============================================
   PRODUCT CARDS / GRID
   ============================================= */
.cards{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fill, minmax(220px,1fr));
}
@media (max-width:360px){
  .cards{ grid-template-columns:1fr; }
}
@media (min-width:700px){
  .cards{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width:1024px){
  .cards{ grid-template-columns:repeat(4,1fr); }
}

.cards .card{ display:flex; flex-direction:column; }
.cards .imgwrap{ height:180px; }
.cards .title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.3;
  min-height:2.6em;
}
.cards .cta .btn{ width:100%; }

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  background:#fff;
  display:flex;
  flex-direction:column;
}
.title{
  font-size:16px;
  font-weight:600;
  margin:10px 0 6px;
}
.price{
  font-size:28px;
  font-weight:800;
  margin:0 0 6px;
}
.price small{
  font-weight:500;
  color:var(--muted);
}
.reviews,
.ship,
.usp,
.pay{
  font-size:13px;
  color:var(--muted);
  margin:4px 0;
}
.stars{ letter-spacing:2px; }
.cta{ margin-top:auto; }
.catalog-link{
  display:block;
  text-align:center;
  margin:18px auto 8px;
  text-decoration:underline;
  color:var(--accent);
}

/* =========================================================
   COMPATIBILITY / STATUS
   ========================================================= */
.seg{ display:flex; gap:8px; }
.seg button{
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  min-height:44px;
}
.seg button.active{
  background:#000;
  color:#fff;
  border-color:#000;
}
.status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid;
  border-radius:12px;
  padding:8px 12px;
  font-weight:600;
}
.ok{
  color:var(--ok);
  background:var(--ok-bg);
  border-color:#bbf7d0;
}
.warn{
  color:var(--warn);
  background:var(--warn-bg);
  border-color:#fde68a;
}
.bad{
  color:var(--bad);
  background:var(--bad-bg);
  border-color:#fecaca;
}

#compatibilite,
#compatibility{
  display:flow-root;
  position:relative;
}
#compatibilite .wrap,
#compatibility .wrap{
  padding-top:12px;
}
#compatibilite h2,
#compatibility h2{
  margin-top:12px;
  margin-bottom:8px;
  line-height:1.25;
  word-break:break-word;
}
@media (max-width:768px){
  .frame{ margin-bottom:12px; }
  section{ display:flow-root; }
}

/* =========================================================
   USE-CASES
   ========================================================= */
/* Give space above usecases everywhere (fixes “no gap” on mobile) */
.usecases{
  margin-top: 28px;
  clear: both;                 /* helps if previous section uses floats */
}

/* Cards layout */
.usecases .usecases-inner{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));  /* 3 cards on desktop */
  gap: 16px;
  max-width: 1100px;           /* optional: keeps it neat on wide screens */
  margin: 0 auto;              /* center the whole block */
  padding: 0 12px;             /* side padding so cards don't touch edges */
  box-sizing: border-box;
}

/* Card styling */
.usecases .case{
  background: #f1f1f1;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-sizing: border-box;
}

.usecases .case strong{
  display:block;
  margin-bottom: 8px;
  font-size: 18px;
}

/* Tablet */
@media (max-width: 840px){
  .usecases .usecases-inner{
    grid-template-columns: 1fr; /* stack */
  }
  .usecases{
    margin-top: 18px;          /* tweak as you like */
  }
}

/* Phone */
@media (max-width: 700px){
  .usecases{
    margin-top: 18px;          /* ensures visible gap above */
  }
}

/* =========================================================
   FAQ (scoped)
   ========================================================= */
#faq.faq{
  margin:30px 0;
  text-align:left;
}
#faq.faq h2{
  font-size:22px;
  margin:0 0 8px;
}
#faq.faq details{
  background:#f2f2f2;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  margin:8px 0;
  text-align:left;
}
#faq.faq summary{
  cursor:pointer;
  font-weight:600;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  text-align:left;
}
#faq.faq details p,
#faq.faq details ul,
#faq.faq details ol,
#faq.faq details li,
#faq.faq details div{
  text-align:left;
}


/* =========================================================
   FAQ (scoped)
   ========================================================= */

#faq.faq-grid-section{
  background:#f3f4f6;
  padding:40px 0;
}

#faq .faq-title{
  text-align:center;
  font-size:clamp(24px,3vw,32px);
  font-weight:800;
  margin-bottom:28px;
  color:var(--ink);
}

#faq .faq-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
  max-width:1100px;
  margin:0 auto;
}

/* Use <details> as the card */
#faq .faq-item{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
  padding:0;
  overflow:hidden;
}

/* Question row */
#faq .faq-item > summary{
  list-style:none;
  cursor:pointer;
  padding:16px 20px;
  font-size:16px;
  font-weight:500;
  color:var(--ink);
}

/* Remove default disclosure triangle */
#faq .faq-item > summary::-webkit-details-marker{ display:none; }
#faq .faq-item > summary::marker{ content:""; }

/* Answer */
#faq .faq-answer{
  border-top:1px solid var(--line);
  padding:12px 20px 16px;
  font-size:14px;
  color:var(--muted);
}


/* =========================================================
   SIDENAV (mobile menu)
   ========================================================= */
.sidenav{
  position:fixed;
  top:0;
  left:0;
  height:100vh;
  width:300px;
  max-width:90vw;
  background:#000000;
  color:#f1f1f1;
  padding:20px 0 40px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  z-index:3000;
  transform:translateX(-100%);
  transition:transform .35s ease;
}
.sidenav.is-open{ transform:translateX(0); }
.sidenav .closebtn{
  position:absolute;
  top:10px;
  right:14px;
  padding:6px 8px;
  line-height:1;
  cursor:pointer;
  color:#f1f1f1;
}
.sidenav a{
  display:block;
  padding:8px 12px 8px 14px;
  color:#f1f1f1;
  text-decoration:none;
  transition:color .2s ease;
}
.sidenav a:hover{
  color:gold;           
}
.sidenav h3{
  margin:8px 14px;
  color:#5d6d7e;
  font-size:1.1rem;
}
.sidenav ul{
  list-style:none;
  margin:0;
  padding:6px 0 6px 14px;
}
.sidenav li{ margin:5px 0; }
.sidenav-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:2900;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}
.sidenav.is-open + .sidenav-backdrop{
  opacity:1;
  pointer-events:auto;
}
@media (prefers-reduced-motion:reduce){
  .sidenav,
  .sidenav-backdrop{
    transition:none !important;
  }
}

/* =========================================================
   TRUST STRIP (KeySafe) — SSB-style section
   Put this AFTER any earlier .trust blocks so it overrides
   ========================================================= */

.trust{
  /* softer band like SSB */
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust .wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 16px;
  display: block;
}

/* Header row: H3 left, subtitle right (desktop) */
.trust .section-title{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
}

.trust .section-title h3{
  margin: 0;
  font-size: 28px;          /* bigger like SSB */
  line-height: 1.1;
  letter-spacing: .2px;
}

.trust .section-title p{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  text-align: right;
  max-width: 60ch;
}

/* Tiles grid */
.trust .trust-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

/* Tile */
.trust .t{
  background:var(--sand);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 14px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);   /* subtle lift like SSB */
}

.trust .t strong{
  display: block;
  font-size: 16px;          /* bigger heading */
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}

.trust .t span{
  display: block;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.35;
}

/* Footer link row */
.trust .section-footer{
  margin-top: 16px;
  text-align: center;
}

.trust .section-footer-link{
  font-weight: 900;
  text-decoration: none;
}

.trust .section-footer-link:hover{
  text-decoration: underline;
}

/* Responsive: 2 cols then 1 col */
@media (max-width: 980px){
  .trust .trust-grid{ grid-template-columns: repeat(2, 1fr); }
  .trust .section-title{ align-items: flex-start; }
  .trust .section-title p{ text-align: left; }
}

@media (max-width: 640px){
  .trust .trust-grid{ grid-template-columns: 1fr; }
  .trust .section-title{
    flex-direction: column;
    align-items: flex-start;
  }
  .trust .section-title p{
    margin-top: 6px;
    text-align: left;
  }
}

/***************************************************************
   BUY / INFO BUTTONS
***************************************************************/
.buybutton,
.soldoutbutton,
.infobutton{
  font-size:1.2rem !important;
  padding-left:0.3rem;
  padding-right:0.3rem;
  padding-top:0.2rem;
  padding-bottom:0.2rem;
  background:#f3bb01;
  color:black !important;
  white-space:nowrap;
  border:2px solid #847e83;
  webkit-border-radius:10px;
  moz-border-radius:10px;
  border-radius:10px;
}
.buybutton:hover{ background:#53760D; }

.soldoutbutton{
  background:#cd5c5c;
  color:black;
  border-color:#847e83;
}
.soldoutbutton:hover{ background:#cd5c5c; }

.infobutton{
  background:#f3bb01;
  color:black;
  border-color:#847e83;
}
.infobutton:hover{ background:#53760D; }

/* BLOG Accordion 
============================================================================= */

.blog_accordion{
   font-size:0.90rem;
   padding: .35rem .60rem;        /* was 0.05rem (too tight to read) */
   cursor:pointer;
   border:none;
   text-align:center;
   outline:none;
   transition:0.2s;
   background-color:#fff;
   color:#444;                    /* better contrast than darkgrey */
   width:100%;

   display:block;                 /* important: stacks tightly */
   margin:2px 0;                  /* IMPORTANT: reduces vertical gaps */
   line-height:1.2;
   box-sizing:border-box;
}

/* hover + open state (scoped: NOT global .active) */
.blog_accordion:hover{
   background-color:#f2f2f2;
}
.blog_accordion.active{
   background-color:#fafafa;      /* lighter when open */
}

/* plus/minus (scoped) */
.blog_accordion:after{
   content:'\02795';              /* + */
   font-size:13px;
   color:#333;
   float:right;
   margin-left:8px;
}
.blog_accordion.active:after{
   content:"\2796";               /* – */
   color:#111;
}

/* headings INSIDE the button only (scoped) */
.blog_accordion h2,
.blog_accordion h3,
.blog_accordion h4,
.blog_accordion h5,
.blog_accordion h6{
   font-size:0.90rem;
   color:#444;                    /* better contrast */
   text-align:center;
   font-weight:normal;
   margin:0;                      /* avoids extra spacing */
}
.accordion-heading{
  margin:0 !important;
  padding:0 !important;
}
/* panel */
.blog_panel{
   max-height:0;
   width:100%;
   overflow:hidden;
   transition:max-height 0.2s ease-out;
   text-align:left;
   background-color:#fff;

   margin:0;                      /* prevents “mystery gaps” */
   padding:0 .60rem;              /* small side padding for readability */
   box-sizing:border-box;
}

/* optional: remove top/bottom margins inside panels (helps perceived gaps) */
.blog_panel p,
.blog_panel ul,
.blog_panel ol{
   margin:.5rem 0;
}

/* =========================================================
   BIZCARD
   ========================================================= */
.bizcard{
  max-width:420px;
  margin:16px auto;
  border-radius:20px;
  border:1px solid var(--line);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  padding:16px;
}
.bizcard-header{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
}
.bizcard-logo{
  width:64px;
  height:64px;
  object-fit:contain;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  display:block;
}
.bizcard-title{
  font-weight:800;
  font-size:18px;
  line-height:1.2;
  text-align:center;
}
.bizcard-tagline{
  color:#374151;
  font-size:14px;
  margin-top:2px;
  text-align:center;
}
.bizcard-perks{
  color:#var(--muted);
  font-size:12px;
  margin-top:4px;
  text-align:center;
}
.bizcard-body{
  display:grid;
  gap:12px;
  margin-top:12px;
  grid-template-columns:1fr;
  justify-items:center;
}
@media (min-width:460px){
  .bizcard-body{ grid-template-columns:1fr 1fr; }
}
.bizcard-col{
  font-size:14px;
  color:var(--ink);
  text-align:center;
}
.bizcard-name{ font-weight:600; }
.bizcard-line{
  display:flex;
  align-items:center;
  gap:8px;
  margin:4px 0;
  justify-content:center;
}
.bizcard-actions{
  display:flex;
  gap:8px;
  margin-top:12px;
  justify-content:center;
}
.bizcard-hours{
  margin-top:12px;
  font-size:12px;
  color:#374151;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px 10px;
  text-align:center;
}
.bizcard-col > div > div{ justify-content:center; }

/* =========================================================
   FOOTER
   ========================================================= */
footer{
  border-top:1px solid var(--line);
  padding:20px 0;
  color:#var(--muted);
  font-size:14px;
}
footer .wrap{ padding:40px 16px; }
.footgrid{
  display:grid;
  gap:24px;
}
@media (min-width:768px){
  .footgrid{ grid-template-columns:1fr 1fr 1fr; }
}

/* =========================================================
   UTILITIES / ACCESSIBILITY
   ========================================================= */
.sticky-phone{
  position:fixed;
  bottom:18px;
  right:18px;
  z-index:50;
}
.chip img{
  vertical-align:middle;
  margin-right:8px;
}
:focus-visible{
  outline:3px solid #2563eb;
  outline-offset:2px;
}
@media (prefers-reduced-motion:reduce){
  *{
    scroll-behavior:auto;
    animation:none !important;
    transition:none !important;
  }
}

/* --------------------------------------------------
   Who is this for?
-------------------------------------------------- */
.audience-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:1rem;
}

.audience-card{
  padding:1rem 1.2rem;
  text-align:left;
}

.audience-card h3{
  margin:0.25rem 0 0.4rem;
  font-size:1rem;
  text-align:left;
}

.audience-card p{
  margin:0;
  font-size:0.95rem;
  color:#555c66;
  line-height:1.55;
}

.audience-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid #194a7a;
  color:#194a7a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.95rem;
  margin-bottom:0.35rem;
  background:#ffffff;
}

/* =========================================================
   LEGACY DEVICE TYPOGRAPHY (kept)
   ========================================================= */
@media screen and (max-device-width:320px) and (orientation:portrait){
  html{ font-size:16px; line-height:16px; }
  #header_menu{ font-size:1.15rem; line-height:1.3rem; }
  h1{ font-size:1.05rem; line-height:1.1rem; }
}
@media screen and (max-device-width:320px) and (orientation:landscape){
  #header_menu{ font-size:1.2rem; line-height:1.2rem; }
  h1{ font-size:1.2rem; line-height:1.3rem; }
}
@media screen and (min-device-width:321px) and (max-device-width:400px) and (orientation:portrait){
  #header_menu{ font-size:1.2rem; line-height:1.8rem; }
  h1{ font-size:1.1rem; line-height:1.2rem; }
}
@media screen and (min-device-width:321px) and (max-device-width:400px) and (orientation:landscape){
  #header_menu{ font-size:1.2rem; line-height:1.8rem; }
  h1{ font-size:1.2rem; line-height:1.3rem; }
}
@media screen and (min-device-width:401px) and (max-device-width:640px) and (orientation:portrait){
  #header_menu{ font-size:1.2rem; line-height:1.8rem; }
  h1{ font-size:1.1rem; line-height:1.2rem; }
}
@media screen and (min-device-width:401px) and (max-device-width:767px) and (orientation:landscape){
  #header_menu{ font-size:1.2rem; line-height:1.8rem; }
  h1{ font-size:1.2rem; line-height:1.3rem; }
}
@media screen and (min-device-width:768px) and (max-device-width:1024px){
  #header_menu{ font-size:1.2rem; line-height:1.8rem; }
  h1{ font-size:1.2rem; line-height:1.3rem; }
}

/* ===========================================
   NEW HEADER (SDN layout, adapted for Keysafe)
   =========================================== */

.site-header{
  background:#ffffff;
  border-bottom:1px solid #dde2ea;
  text-align:left;              /* cancel outer align=center wrappers */
  margin-bottom:6px;
}

@media (max-width:640px){
  .site-header{
    margin-bottom:10px;
  }
}

/* main header row: Menu left – Brand centre – Phone/lang right */
.site-header .header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:0.7rem 1rem;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;            /* needed to absolutely centre .brand-block */
}

/* LEFT: burger / menu button */
.menu-toggle,
#main span[onclick*="openNav"]{
  border:1px solid #c4ccd7;
  background:#ffffff;
  border-radius:999px;
  padding:0.35rem 0.8rem;
  font-size:0.85rem;
  cursor:pointer;
}

/* CENTRE: flag + titles */
.brand-block{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:0.5rem;
  text-align:center;
}

.flag-icon{
  font-size:1.1rem;
}

.flag-icon img{
  max-width:24px;
  max-height:24px;
  display:block;
}

.brand-text{
  line-height:1.2;
  text-align:center;
}

.brand-title{
  font-weight:600;
  font-size:0.98rem;
}

.brand-subtitle{
  font-size:0.8rem;
  color:#6c7684;
}

/* RIGHT: phone + language */
.header-right{
  display:flex;
  flex-direction:column;        /* phone above language on desktop */
  align-items:flex-end;
  gap:0.15rem;
}

.header-phone{
  font-size:0.85rem;
  text-decoration:none;
  color:#194a7a;
  line-height:1.2;
  white-space:nowrap;
}

.header-phone:hover{
  text-decoration:underline;
}

.lang-select,
select[name="language_select"]{
  font-size:0.8rem;
  padding:0.25rem 0.4rem;
}

/* Desktop width: align header with main content, like SDN */
@media (min-width:900px){
  .site-header .header-inner{
    width:90%;
    max-width:1100px;
    margin:0 auto;
  }
}

/* Mobile:
   Row 1: brand centred
   Row 2: menu left, phone centred, language right
*/
@media (max-width:640px){

  .site-header .header-inner{
    display:grid;
    grid-template-columns:minmax(72px,1fr) auto minmax(72px,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:8px;
    row-gap:6px;
    padding:0.55rem 0.75rem;
  }

  /* Brand on its own first row */
  .site-header .brand-block{
    position:static;
    left:auto;
    transform:none;
    grid-column:1 / -1;
    grid-row:1;
    justify-self:center;
    width:auto;
    max-width:100%;
    margin:0;
    text-align:center;
    justify-content:center;
    white-space:nowrap;
  }

  /* Menu on row 2, left */
  .site-header .header-inner > *:first-child{
    grid-column:1;
    grid-row:2;
    justify-self:start;
    margin:0;
  }

  /*
    Remove the header-right wrapper from the mobile grid
    so phone and language can occupy separate columns.
  */
  .site-header .header-right{
    display:contents;
  }

  /* Phone on row 2, centred */
  .site-header .header-phone{
    grid-column:2;
    grid-row:2;
    justify-self:center;
    align-self:center;
    margin:0;
    font-size:0.82rem;
    font-weight:600;
    text-align:center;
    white-space:nowrap;
  }

  /* Language on row 2, right */
  .site-header .header-right > *:not(.header-phone){
    grid-column:3;
    grid-row:2;
    justify-self:end;
    align-self:center;
    margin:0;
  }

  .site-header .brand-title{
    font-size:0.9rem;
  }

  .site-header .brand-subtitle{
    font-size:0.75rem;
  }

  .site-header .flag-icon img{
    max-width:22px;
    max-height:22px;
  }

  .site-header .lang-select,
  .site-header select[name="language_select"]{
    font-size:0.78rem;
    padding:0.25rem 0.35rem;
    max-width:76px;
  }

  .site-header .menu-toggle,
  .site-header #main span[onclick*="openNav"]{
    font-size:0.8rem;
    padding:0.32rem 0.68rem;
    white-space:nowrap;
  }
}
/* =========================================================
   "Our advice" floating button + modal (overlay + cards)
   ========================================================= */

/* Full-screen overlay */
.advice-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:flex-start;
  justify-content:center;

  /* start just below the header, both desktop & mobile */
  padding:calc(var(--header-offset) + 20px) 16px 24px;

  background:rgba(15,23,42,.45);

  /* above the fixed header (which is z-index:2500) */
  z-index:3000;

  overflow-y:auto;
}

.advice-modal[hidden]{ display:none; }

/* White dialog card */
.advice-dialog{
  position:relative;
  max-width:840px;
  width:100%;
  max-height:calc(100vh - 80px);
  background:#ffffff;
  border-radius:24px;
  padding:42px 22px 20px;        /* top padding leaves room for close button */
  box-shadow:0 24px 70px rgba(15,23,42,.35);
  text-align:center;
  overflow-y:auto;
}
.advice-dialog h2{
  margin:0 0 .75rem;
  font-size:1.35rem;
}

/* Close button */
.advice-close{
  position:absolute;
  top:10px;
  right:12px;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  line-height:1;
  cursor:pointer;
  z-index:999;
}

/* Grid of cards */
.advice-list{
  list-style:none;
  margin:.6rem 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
  align-items: stretch;
}
.advice-item {
  margin:0;
  display: flex;          /* grid item becomes a flex container */
  height: 100%;           /* let the card stretch inside */
}
.advice-card{
  display:flex;
  flex-direction:column;
  height: 100%;
  background:#f9fafb;
  border-radius:20px;
  padding:8px 10px 10px;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 30px rgba(15,23,42,.12);
  color:#111827;
  text-decoration:none;
  font-size:.9rem;
  text-align:left;
  transition:box-shadow .15s ease, transform .15s ease;
}
.advice-card:hover{
  box-shadow:0 14px 40px rgba(15,23,42,.2);
  transform:translateY(-1px);
  text-decoration:none;
}

/* Image area */
.advice-image{
  flex: 0 0 auto;
  max-width:150px;
  margin:0 auto 0.5rem;
  border-radius:16px;
  overflow:hidden;
  background:#ffffff;
}
.advice-image img{
  display:block;
  width:100%;
  height:auto;
}

/* Text inside card */
.advice-body{
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
  gap:.2rem;
}

/* Advantage pill */
.advice-tag{
  display:inline-flex;
  align-items:center;
  padding:0.18rem 0.7rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  background:#020617;   /* deep navy */
  color:#f9fafb;        /* white text */
}

/* Name + price + CTA text */
.advice-name{
  font-size:.9rem;
  font-weight:600;
}
.advice-price{
  margin-top:0.15rem;
  font-weight:700;
  font-size:.9rem;
}
.advice-cta-text{
  margin-top: auto;
  align-self: flex-start; 
  display:inline-flex;
  align-items:center;
  padding:.2rem .6rem;
  border-radius:999px;
  border:1px solid #020617;
  font-size:.76rem;
  font-weight:600;
}


/* Mobile tweak */
@media (max-width:640px){
  .advice-dialog{
    max-width:100%;
    padding:36px 14px 16px;
    border-radius:18px;
  }
}


/* =========================================
   Recommend redesign
   ========================================= */

.recommendation-card{
   border:1px solid #d9d9d9;
   border-radius:18px;
   background:#ffffff;
   margin:0 0 24px 0;
   overflow:hidden;
   box-shadow:0 1px 3px rgba(0,0,0,0.06);
}

.recommendation-card-top{
   display:grid;
   grid-template-columns:180px 1fr;
   gap:20px;
   padding:20px;
   align-items:center;
}

.recommendation-media{
   text-align:center;
}

.recommendation-image{
   max-width:100%;
   height:auto;
   border-radius:10px;
}

.recommendation-main{
   text-align:left;
}

.recommendation-ref{
   font-size:0.85rem;
   color:#666666;
   margin-bottom:6px;
   text-transform:uppercase;
   letter-spacing:0.04em;
}

.recommendation-title{
   margin:0 0 6px 0;
   font-size:1.45rem;
   line-height:1.2;
}

.recommendation-title a{
   text-decoration:none;
   color:#111111;
}

.recommendation-subtitle{
   margin-bottom:14px;
   color:#444444;
   font-size:1rem;
}

.recommendation-price-row{
   display:flex;
   flex-wrap:wrap;
   gap:10px;
   align-items:baseline;
   margin-bottom:14px;
}

.recommendation-price-old{
   color:#b00020;
   text-decoration:line-through;
   font-weight:700;
   font-size:1.15rem;
}

.recommendation-price-new{
   color:#1a7f37;
   font-weight:800;
   font-size:1.4rem;
}

.recommendation-cta-row{
   display:flex;
   flex-wrap:wrap;
   gap:10px;
   align-items:center;
}

.recommendation-ratings{
   border-top:1px solid #ececec;
   border-bottom:1px solid #ececec;
   background:#fafafa;
   padding:16px 20px;
}

.recommendation-score-box{
   display:flex;
   gap:10px;
   align-items:center;
   margin-bottom:14px;
   font-weight:700;
}

.recommendation-score-label{
   color:#1a7f37;
}

.recommendation-score-value{
   color:#111111;
}

.recommendation-rating-grid{
   display:grid;
   grid-template-columns:repeat(5, minmax(0,1fr));
   gap:12px;
}

.recommendation-rating-item{
   background:#ffffff;
   border:1px solid #e5e5e5;
   border-radius:12px;
   padding:10px 8px;
   text-align:center;
}

.recommendation-rating-label{
   display:block;
   font-size:0.8rem;
   color:#555555;
   margin-bottom:6px;
   line-height:1.2;
}

.recommendation-rating-stars{
   display:block;
   color:#d38b00;
   font-size:0.9rem;
}

.recommendation-text{
   padding:20px;
   text-align:left;
   line-height:1.6;
}

.recommendation-text b,
.recommendation-text strong{
   font-weight:700;
}

@media (max-width:900px){
   .recommendation-rating-grid{
      grid-template-columns:repeat(2, minmax(0,1fr));
   }
}

@media (max-width:640px){
   .recommendation-card-top{
      grid-template-columns:1fr;
      text-align:center;
   }

   .recommendation-main{
      text-align:center;
   }

   .recommendation-price-row,
   .recommendation-cta-row,
   .recommendation-score-box{
      justify-content:center;
   }

   .recommendation-rating-grid{
      grid-template-columns:1fr;
   }

   .recommendation-text{
      text-align:left;
   }
}

.recommendation-shortcuts {
   display:grid;
   grid-template-columns:repeat(4, 1fr);
   gap:14px;
   max-width:1100px;
   margin:20px auto 28px auto;
}

.recommendation-shortcut-card {
   display:block;
   text-decoration:none;
   padding:16px 14px;
   border:1px solid #d8dbe3;
   border-radius:10px;
   background:#f8fafc;
   text-align:center;
   transition:all 0.2s ease;
   box-shadow:0 1px 3px rgba(0,0,0,0.06);
   min-height:96px;
}

.recommendation-shortcut-card:hover {
   background:#eef4ff;
   border-color:#5b7db8;
   box-shadow:0 4px 12px rgba(0,0,0,0.10);
   transform:translateY(-2px);
}

.shortcut-label {
   display:block;
   font-size:0.88rem;
   font-weight:700;
   color:#1f2f46;
   margin-bottom:6px;
   line-height:1.3;
}

.shortcut-product {
   display:block;
   font-size:1rem;
   font-weight:600;
   color:#0f172a;
   line-height:1.35;
}

@media (max-width: 900px) {
   .recommendation-shortcuts {
      grid-template-columns:repeat(2, 1fr);
   }
}

@media (max-width: 560px) {
   .recommendation-shortcuts {
      grid-template-columns:1fr;
   }
}

/* =========================================================
   WHY US grid
   ========================================================= */
.why-us {
   padding: 18px 0 28px 0;
}

.why-us .section-head.section-head--split {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 14px;
   margin: 0 0 16px;
}

.why-us .section-head-title {
   margin: 0;
   font-size: 28px;
   line-height: 1.1;
   letter-spacing: .2px;
   text-align: left;
}

.why-us .section-head-text {
   margin: 0;
   color: var(--muted);
   font-weight: 650;
   text-align: right;
   max-width: 60ch;
}

.why-us-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 18px;
}

.why-us-card {
   background: #ffffff;
   border: 1px solid #d8e4f0;
   border-radius: 16px;
   padding: 18px;
   text-align: left;
   box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.why-us-card h3 {
   margin: 0 0 8px 0;
   font-size: 1.08rem;
   line-height: 1.3;
}

.why-us-card p {
   margin: 0;
   line-height: 1.6;
   color: var(--ink);
}

@media (max-width: 900px) {
   .why-us .section-head.section-head--split {
      flex-direction: column;
      align-items: flex-start;
   }

   .why-us .section-head-text {
      text-align: left;
   }

   .why-us-grid {
      grid-template-columns: 1fr;
   }
}
/* =========================================================
   KEYSafe main hero (hybrid SDN + product focus)
   ========================================================= */

.hero--main{
  background:linear-gradient(135deg,#194a7a 0%,#275e96 45%,#2f6fae 100%);
  color:#ffffff;
  padding:2.6rem 1rem 2.4rem;
}

/* Ensure main hero is two columns on desktop */
.hero.hero--main .hero-inner{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,2.8fr) minmax(0,2.2fr);
  gap:2.2rem;
  align-items:flex-start;
}

/* Title + text */
.hero--main h1{
  margin:0 0 .7rem;
  font-size:clamp(2rem,3.1vw,2.4rem);
  line-height:1.15;
}
.hero-lead{
  margin:0 0 1.2rem;
  font-size:.98rem;
  line-height:1.55;
  color:rgba(255,255,255,.9);
}

/* CTAs (kept in case you re-add a separate row later) */
.hero-ctas{
  margin-top:1rem;
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}

/* Truststrip inside hero – align left and make pills translucent */
.hero--main .truststrip{
  justify-content:flex-start !important;
  padding:0 !important;
  margin:0 !important;
}
.hero--main .truststrip .trust-left{
  justify-content:flex-start !important;
  margin:0 !important;
}
.hero--main .truststrip .badge{
  margin:4px 6px;
  background:rgba(15,23,40,.18);
  border-color:rgba(255,255,255,.7);
  color:#f9fafb;
}

/* small buttons inside truststrip */
.hero--main .truststrip .btn.small{
  min-height:0;
  padding:6px 10px;
  font-size:.8rem;
  border-radius:999px;
}

/* give the primary advice button a bit more contrast */
.hero--main .truststrip .btn.small.primary{
  background:#f9fafb;
  color:#111827;
  border-color:transparent;
}
.hero--main .truststrip .btn.small.primary:hover{
  background:#e5e7eb;
}

/* Right-hand card */
.hero-side-card{
  background:#ffffff;
  color:#111827;
  border-radius:18px;
  padding:1.2rem 1.3rem;
  box-shadow:0 18px 40px rgba(15,23,42,.25);
  margin-top:.35rem;
  margin-bottom:.2rem;
}

/* Remove bullets + indent from right-hand hero list */
.hero-side-card ul{
  list-style:none;
  margin:0;
  padding:0;
  font-size:.86rem;
  color:#374151;
}
.hero-side-card li{
  position:relative;
  margin:0 0 .35rem 0;
  padding-left:0;
}

.hero-side-card h2{
  margin-top:0;
  margin-bottom:.55rem;
  font-size:1.1rem;
}
.hero-side-note{
  margin:.75rem 0 0;
  font-size:.8rem;
  color:#6b7280;
}

/* Slightly more inset on wide screens so it doesn't hug the edge */
.hero--main .hero-inner{
  padding:0 .25rem;
}

/* -------------------------------------------------
   Stop bullets on lists
   ------------------------------------------------- */

.no-bullets {
   list-style: none;
   padding-left: 0;
   margin-left: 0;
}
.no-bullets li {
   margin: 4px 0;
}

/* Responsive tweaks */
@media(max-width:900px){
  .hero--main{
    padding:2.2rem 1rem 2.1rem;
  }
  .hero.hero--main .hero-inner{
    grid-template-columns:1fr;
    row-gap:1.8rem;
  }
  .hero-side-card{
    max-width:520px;
    margin:0 auto;
  }
}
@media(max-width:640px){
  .hero--main{
    padding:2rem 1rem 1.9rem;
  }
  .hero--main h1{
    text-align:center;
  }
  .hero-lead{
    text-align:center;
  }
  .hero-ctas{
    justify-content:center;
  }
  .hero--main .truststrip{
    justify-content:center !important;
  }
  .hero--main .truststrip .trust-left{
    justify-content:center !important;
  }
}
/* Force no bullets + no indent in hero side box list */
.hero-side-card ul{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}
.hero-side-card li{
  padding-left:0 !important;
  margin-left:0 !important;
}
/* SEO footer block with blue background */
.seo-content-box{
  background: #1b4f7a; /* Keysafe blue – adjust if needed */
  color: #ffffff;
  padding: 2rem 1.2rem;
  margin: 2rem 0 0; /* space above footer */
}

.seo-content-box .seo-content{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

.seo-content-box h2{
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.seo-content-box h3{
  color: #e2e8f0;
  font-size: 1.05rem;
  margin: 1.2rem 0 0.4rem;
}

.seo-content-box p{
  color: #f8fafc;
  margin: 0 0 0.8rem;
  line-height: 1.65;
}

.seo-content-box ul{
  list-style-type: none;
  margin: 0.5rem 0 1rem 1.2rem;
  padding: 0;
}

.seo-content-box li{
  margin: 0.3rem 0;
}

.seo-content-box a{
  color: #ffe48a; /* gold-ish highlight */
  text-decoration: none;
  font-weight: 600;
}

.seo-content-box a:hover{
  text-decoration: underline;
}



/* --- Correct real header height so hero is not hidden under it --- */
:root{
  /* desktop / tablet */
  --header-height:90px;
  --header-offset:90px;
}

@media (max-width:640px){
  :root{
    /* mobile: header is taller (2 rows), so we offset more */
    --header-height:120px;
    --header-offset:120px;
  }
}

/* Mobile header: brand on first row, menu left & phone/lang right on second row */
@media (max-width:640px){
  #header_menu table{
    width:100%;
    border-collapse:separate;
  }

  #header_menu tr{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
  }

  #header_menu td{
    display:flex;
    align-items:center;
  }

  /* Centre cell = brand: full-width first row */
  #header_menu td:nth-child(2){
    order:1;
    flex:1 0 100%;
    justify-content:center;
    text-align:center;
    padding-bottom:4px;
  }

  /* First cell = Menu button: second row, left */
  #header_menu td:first-child{
    order:2;
    flex:0 0 auto;
  }

  /* Third cell = phone + language: second row, right */
  #header_menu td:nth-child(3){
    order:3;
    flex:0 0 auto;
    margin-left:auto;
    justify-content:flex-end;
    text-align:right;
  }
}
/* Mobile header layout: 
   Row 1: flag + site title centered
   Row 2: Menu on left, phone + language on right
*/
@media (max-width:640px){
  #header_menu table{
    width:100%;
    border-collapse:separate;
  }

  #header_menu tr{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
  }

  #header_menu td{
    display:flex;
    align-items:center;
  }

  /* Centre cell (flag + titles) -> full-width first row */
  #header_menu td:nth-child(2){
    order:1;
    flex:1 0 100%;
    justify-content:center;
    text-align:center;
    padding-bottom:4px;
  }

  /* First cell (☰ Menu) -> second row, left */
  #header_menu td:first-child{
    order:2;
    flex:0 0 auto;
  }

  /* Third cell (phone + language) -> second row, right */
  #header_menu td:nth-child(3){
    order:3;
    flex:0 0 auto;
    margin-left:auto;
    justify-content:flex-end;
    text-align:right;
  }
}

/* =========================================================
   MOBILE HEADER LAYOUT & OFFSET OVERRIDES (do not affect desktop)
   ========================================================= */
@media (max-width:640px){

  /* Two-row header on phones:
     - Row 1: brand centred full width
     - Row 2: Menu on the left, phone + language on the right
  */
  #header_menu table{
    width:100%;
    border-collapse:separate;
  }

  #header_menu tr{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
  }

  #header_menu td{
    display:flex;
    align-items:center;
  }

  /* Centre cell (brand) – first row */
  #header_menu td:nth-child(2){
    order:1;
    flex:1 0 100%;
    justify-content:center;
    text-align:center;
    padding-bottom:4px;
  }

  /* Menu cell – second row, left */
  #header_menu td:first-child{
    order:2;
    flex:0 0 auto;
  }

  /* Phone + language – second row, right */
  #header_menu td:nth-child(3){
    order:2;
    flex:0 0 auto;
    margin-left:auto;
    justify-content:flex-end;
    text-align:right;
  }

  /* Make sure page content + anchors sit below the taller mobile header */
  body{
    padding-top:var(--header-height) !important;
    scroll-padding-top:var(--header-offset) !important;
  }

  /* Ensure the advice modal opens fully below the header on phones */
  .advice-modal{
    padding:calc(var(--header-offset) + 20px) 16px 24px !important;
    z-index:3000 !important; /* above the fixed header */
  }
}
/* Legacy Screens */
.request_heading {
   text-decoration:none;
   font-weight:600;
   padding-left:0.25rem;
   padding-right:0.25rem;
}
.request_text {
   text-decoration:none;
   font-weight:normal;
   padding-left:0.25rem;
   padding-right:0.25rem;
   padding-top:0.25rem;
   padding-bottom:0.25rem;	
}
.request_text_medium {
   font-size:0.85rem;
   line-height:0.75rem;	   
   text-decoration:none;
   font-weight:normal;
   padding-left:0.25rem;
   padding-right:0.25rem;
   padding-top:0.25rem;
   padding-bottom:0.25rem;	
}	  
.request_commander {
   font-size:0.85rem;
   color:#29088A;
   font-weight:650;	   
   padding-left:0.40rem;
   padding-right:0.40rem;
   padding-top:0.40rem;
   padding-bottom:0.40rem;	
}	   
.request_commander  a{	
   font-size:0.85rem;
   color:#29088A;
   font-weight:650;	   
   padding-left:0.25rem;
   padding-right:0.25rem;
   padding-top:0.25rem;
   padding-bottom:0.25rem;	
}
.request_commander  a:hover {
   color:#000000;
   font-weight:850;
}
/* Legacy catalogue: make product images actually responsive */
img.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Optional: cap image size on large screens so they don't look huge */
@media (min-width: 900px) {
  img.responsive-image {
    max-width: 180px;   /* tweak: 160–220px to taste */
  }
}

/* Optional: give the left column a sane width on desktop */
@media (min-width: 768px) {
  table[align="center"] > tr > td[width="210"] {
    width: 210px;
    max-width: 210px;
  }
}

#cta_phone_fab.sticky-phone{
  position: fixed !important;
  bottom: 18px !important;
  right: 18px !important;
  z-index: 2400 !important;  /* below modal (3000), above content */
  display: inline-flex !important;
}

#cta_phone_fab{
   background:#ea7a1f !important;
   color:#ffffff !important;
   border:1px solid #c85f0f !important;
   box-shadow:0 8px 22px rgba(0,0,0,0.25) !important;
}

#cta_phone_fab:hover{
   background:#c85f0f !important;
   color:#ffffff !important;
   border:1px solid #a94f0c !important;
}
/* === Recommendations: force equal image size across 2-col and 3-col === */
.recommendations .reco-card .imgwrap{
  aspect-ratio: auto !important; /* disable ratio-driven scaling */
  height: 170px !important;      /* same image window everywhere */
  display: block !important;
  overflow: hidden !important;
  background: #fff !important;
}

.recommendations .reco-card .imgwrap a{
  display:block !important;
  width:100% !important;
  height:100% !important;
}

.recommendations .reco-card .imgwrap img{
  width:100% !important;
  height:100% !important;
  object-fit: contain !important; /* no cropping */
}

/* Optional: slightly smaller on phones */
@media (max-width: 640px){
  .recommendations .reco-card .imgwrap{ height: 150px !important; }
}

.build-marker { font-size: 11px; opacity: .35; }

/* =========================================================
   MODERN SHARED CATALOGUE
   Shared responsive standard — desktop + mobile
   Ratings remain visible.
   Full product description is expandable on all screen sizes.

   Replace the complete existing catalogue CSS section with
   this block in each KeySafe stylesheet.
   ========================================================= */

/* =========================================================
   CATALOGUE LIST
   ========================================================= */

.catalogue-list{
   width:100%;
   max-width:1120px;
   margin:0 auto 36px;
   display:grid;
   gap:18px;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.catalogue-card{
   width:100%;
   margin:0;
   padding:22px;
   background:#ffffff;
   border:1px solid #e1e7ef;
   border-radius:20px;
   box-shadow:0 8px 24px rgba(15,23,42,.07);
   overflow:hidden;
}

.catalogue-card-top{
   display:grid;
   grid-template-columns:230px minmax(0,1fr);
   gap:26px;
   align-items:start;
   margin:0;
}

/* =========================================================
   PRODUCT IMAGE AND COLOURS
   ========================================================= */

.catalogue-media{
   min-width:0;
   text-align:center;
}

.catalogue-media > a{
   display:block;
   border-radius:16px;
}

.catalogue-image{
   display:block;
   width:100%;
   max-width:220px;
   aspect-ratio:1 / 1;
   object-fit:contain;
   margin:0 auto;
   padding:12px;
   background:#f7f9fc;
   border:1px solid #e3e8ef;
   border-radius:16px;
}

.catalogue-colours{
   display:flex;
   flex-wrap:wrap;
   justify-content:center;
   gap:8px;
   margin:10px 0 0;
}

.catalogue-colours-label{
   flex:1 0 100%;
   display:block;
   margin:0 0 2px;
   color:#4a596b;
   font-size:13px;
   line-height:1.35;
   font-weight:750;
   text-align:center;
}

.catalogue-colour{
   position:relative;
   top:auto !important;
   display:inline-flex;
   flex-direction:column;
   align-items:center;
   gap:4px;
   margin:0 !important;
   color:#596779;
   font-size:11px;
   line-height:1.2;
   font-weight:650;
}

.catalogue-colour img{
   width:38px;
   height:38px;
   display:block;
   object-fit:cover;
   border:1px solid #d4dbe4;
   border-radius:50%;
   box-shadow:0 2px 5px rgba(15,23,42,.08);
}

/* =========================================================
   PRODUCT SUMMARY
   ========================================================= */

.catalogue-main{
   min-width:0;
   display:flex;
   flex-direction:column;
   align-items:flex-start;
}

.catalogue-ref{
   margin:0 0 5px;
   color:#647184;
   font-size:13px;
   line-height:1.35;
   font-weight:700;
}

.catalogue-title{
   margin:0 0 7px !important;
   color:#111827;
   font-size:clamp(22px,2.2vw,29px);
   line-height:1.16;
   font-weight:850;
   letter-spacing:-.015em;
}

.catalogue-title a{
   color:inherit;
   text-decoration:none;
}

.catalogue-title a:hover{
   text-decoration:underline;
   text-underline-offset:3px;
}

.catalogue-subtitle{
   margin:0 0 10px;
   color:#536174;
   font-size:16px;
   line-height:1.48;
   font-weight:600;
}

/* =========================================================
   PRICE
   ========================================================= */

.catalogue-price-row{
   display:flex;
   align-items:baseline;
   flex-wrap:wrap;
   gap:8px 12px;
   margin:3px 0 2px;
}

.catalogue-price-old{
   color:#7a8492;
   font-size:16px;
   font-weight:650;
   text-decoration:line-through;
}

.catalogue-price-new{
   color:#123f67;
   font-size:clamp(26px,3vw,34px);
   line-height:1;
   font-weight:900;
   letter-spacing:-.025em;
}

/* =========================================================
   BUY AND INFORMATION BUTTONS
   ========================================================= */

.catalogue-cta-row{
   width:100%;
   display:flex;
   flex-wrap:wrap;
   align-items:center;
   gap:10px;
   margin:14px 0 9px;
}

.catalogue-cta-row .buybutton,
.catalogue-cta-row .infobutton,
.catalogue-cta-row .soldoutbutton{
   min-height:46px;
   min-width:150px;
   margin:0 !important;
   padding:11px 18px !important;
   display:inline-flex;
   align-items:center;
   justify-content:center;
   border:1px solid transparent !important;
   border-radius:12px !important;
   box-shadow:none;
   font-family:inherit;
   font-size:16px !important;
   line-height:1.2;
   font-weight:850 !important;
   text-align:center;
   text-decoration:none !important;
   white-space:normal;
}

.catalogue-cta-row .buybutton{
   background:#ea7a1f !important;
   border-color:#d66811 !important;
   color:#ffffff !important;
}

.catalogue-cta-row .buybutton:hover{
   background:#cf640f !important;
   color:#ffffff !important;
}

.catalogue-cta-row .infobutton{
   background:#ffffff !important;
   border-color:#b9c5d2 !important;
   color:#173f63 !important;
}

.catalogue-cta-row .infobutton:hover{
   background:#f3f7fb !important;
   border-color:#8fa2b7 !important;
}

.catalogue-cta-row .soldoutbutton{
   background:#f5e6e6 !important;
   border-color:#ddb7b7 !important;
   color:#8f1f1f !important;
}

/* PayPal-generated controls */
.catalogue-cta-row form{
   margin:0;
}

.catalogue-cta-row input[type="image"]{
   display:block;
   max-width:190px;
   height:auto;
   margin:0;
}

/* =========================================================
   RATINGS — ALWAYS VISIBLE
   ========================================================= */

.catalogue-ratings{
   width:100%;
   margin:18px 0 0;
   padding:16px 0;
   border-top:1px solid #e5eaf0;
   border-bottom:1px solid #e5eaf0;
   color:#172033;
   font-size:16px;
   line-height:1.45;
}

.catalogue-ratings table{
   width:100% !important;
   max-width:100% !important;
   table-layout:fixed;
   border-collapse:collapse;
}

.catalogue-ratings td,
.catalogue-ratings th{
   padding:8px 10px;
   vertical-align:middle;
}

.catalogue-rating-grid{
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:10px 18px;
}

/* =========================================================
   EXPANDABLE PRODUCT DESCRIPTION
   ========================================================= */

.catalogue-details{
   width:100%;
   margin:0;
   border-bottom:1px solid #e5eaf0;
}

.catalogue-details-summary{
   width:100%;
   min-height:52px;
   padding:14px 2px;
   display:flex;
   align-items:center;
   justify-content:space-between;
   gap:14px;
   color:#173f63;
   cursor:pointer;
   list-style:none;
   font-size:16px;
   line-height:1.3;
   font-weight:800;
   user-select:none;
}

.catalogue-details-summary::-webkit-details-marker{
   display:none;
}

.catalogue-details-summary::marker{
   content:"";
}

.catalogue-details-summary:hover{
   color:#0d2f4d;
}

.catalogue-details-summary:focus-visible{
   outline:3px solid #93c5fd;
   outline-offset:4px;
   border-radius:6px;
}

.catalogue-details-icon{
   position:relative;
   flex:0 0 28px;
   width:28px;
   height:28px;
   border:1px solid #cad4df;
   border-radius:50%;
   background:#f7f9fc;
}

.catalogue-details-icon::before,
.catalogue-details-icon::after{
   content:"";
   position:absolute;
   top:50%;
   left:50%;
   width:12px;
   height:2px;
   border-radius:2px;
   background:#173f63;
   transform:translate(-50%,-50%);
}

.catalogue-details-icon::after{
   transform:translate(-50%,-50%) rotate(90deg);
   transition:transform .18s ease;
}

.catalogue-details[open] .catalogue-details-icon::after{
   transform:translate(-50%,-50%) rotate(0);
}

.catalogue-details-content{
   padding:4px 0 18px;
   color:#273445;
   font-size:16px;
   line-height:1.62;
}

.catalogue-text{
   margin:0;
   padding:0;
}

.catalogue-text p{
   margin:0 0 12px;
}

.catalogue-text ul,
.catalogue-text ol{
   margin:10px 0 14px;
   padding-left:20px;
}

.catalogue-text li{
   margin:6px 0;
}

.catalogue-text table{
   width:100% !important;
   max-width:100% !important;
   table-layout:fixed;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:820px){

   .catalogue-card{
      padding:20px;
   }

   .catalogue-card-top{
      grid-template-columns:190px minmax(0,1fr);
      gap:20px;
   }

   .catalogue-image{
      max-width:180px;
   }

   .catalogue-rating-grid{
      grid-template-columns:1fr;
   }
}

/* =========================================================
   MOBILE CATALOGUE
   Full-width cards, readable type, prominent purchase action
   ========================================================= */

@media (max-width:640px){

   .catalogue-list{
      position:relative;
      left:50%;
      width:100vw;
      max-width:none;
      margin-left:-50vw;
      margin-right:-50vw;
      margin-bottom:24px;
      gap:10px;
      padding:10px 0;
      background:#f2f5f8;
   }

   .catalogue-card{
      width:100%;
      padding:18px 16px;
      border-left:0;
      border-right:0;
      border-radius:0;
      box-shadow:none;
   }

   .catalogue-card-top{
      display:grid;
      grid-template-columns:112px minmax(0,1fr);
      gap:14px;
      align-items:start;
   }

   .catalogue-media{
      width:112px;
   }

   .catalogue-image{
      width:112px;
      max-width:112px;
      padding:7px;
      border-radius:13px;
   }

   .catalogue-colours{
      gap:5px;
      margin-top:7px;
   }

   .catalogue-colours-label{
      font-size:12px;
   }

   .catalogue-colour{
      font-size:0;
      gap:0;
   }

   .catalogue-colour img{
      width:29px;
      height:29px;
   }

   .catalogue-ref{
      margin-bottom:3px;
      font-size:12px;
   }

   .catalogue-title{
      margin-bottom:5px !important;
      font-size:22px;
      line-height:1.14;
   }

   .catalogue-subtitle{
      margin-bottom:7px;
      font-size:16px;
      line-height:1.42;
   }

   .catalogue-price-row{
      margin-top:2px;
   }

   .catalogue-price-old{
      font-size:14px;
   }

   .catalogue-price-new{
      font-size:28px;
   }

   .catalogue-cta-row{
      grid-column:1 / -1;
      display:grid;
      grid-template-columns:1fr;
      gap:9px;
      margin:14px 0 7px;
   }

   .catalogue-cta-row .buybutton,
   .catalogue-cta-row .infobutton,
   .catalogue-cta-row .soldoutbutton,
   .catalogue-cta-row form{
      width:100%;
      max-width:none;
   }

   .catalogue-cta-row .buybutton,
   .catalogue-cta-row .infobutton,
   .catalogue-cta-row .soldoutbutton{
      min-height:48px;
      font-size:16px !important;
   }

   .catalogue-cta-row input[type="image"]{
      width:auto;
      max-width:100%;
      margin:0 auto;
   }

   .catalogue-ratings{
      width:100% !important;
      max-width:100% !important;
      margin-top:14px;
      padding:13px 0;
      overflow:hidden !important;
   }

   .catalogue-ratings table{
      width:100% !important;
      max-width:100% !important;
      min-width:0 !important;
      table-layout:fixed !important;
      border-collapse:collapse !important;
   }

   .catalogue-ratings col,
   .catalogue-ratings td,
   .catalogue-ratings th{
      width:25% !important;
      max-width:25% !important;
   }

   .catalogue-ratings td,
   .catalogue-ratings th{
      padding:7px 4px !important;
      overflow:hidden;
      overflow-wrap:anywhere;
      white-space:normal !important;
      font-size:13px !important;
      line-height:1.22 !important;
      text-align:center !important;
      vertical-align:middle !important;
   }

   .catalogue-ratings td:nth-child(even),
   .catalogue-ratings th:nth-child(even){
      font-size:12px !important;
      letter-spacing:0 !important;
   }

   .catalogue-ratings td span,
   .catalogue-ratings th span{
      max-width:100%;
      white-space:normal !important;
   }

   .catalogue-details-summary{
      min-height:52px;
      padding:14px 2px;
      font-size:16px;
   }

   .catalogue-details-content{
      padding:4px 0 18px;
      font-size:16px;
      line-height:1.65;
   }

   .catalogue-rating-grid{
      grid-template-columns:1fr;
      gap:8px;
   }
}

/* =========================================================
   VERY NARROW PHONES
   ========================================================= */

@media (max-width:390px){

   .catalogue-card-top{
      grid-template-columns:1fr;
   }

   .catalogue-media{
      width:100%;
   }

   .catalogue-image{
      width:150px;
      max-width:150px;
   }

   .catalogue-main{
      width:100%;
   }

   .catalogue-title,
   .catalogue-subtitle,
   .catalogue-ref,
   .catalogue-price-row{
      width:100%;
      text-align:center;
      justify-content:center;
   }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce){

   .catalogue-details-icon::after{
      transition:none;
   }
}

/* =========================================================
   MODERN PURCHASE CATALOGUE
   Replacement CSS for purchase_stock_summary()
   Shared desktop + mobile standard

   The new PHP does not depend on:
   .request_heading
   .request_text
   .request_text_medium
   .request_text_large
   .request_text_small
   .request_commander
   .responsive-image-50
   .swatch

   Keep those legacy rules only if other older functions use them.
   ========================================================= */

.purchase-catalogue{
   width:100%;
   max-width:1120px;
   margin:0 auto 38px;
   color:#111827;
}

.purchase-group{
   margin:0 0 30px;
}

.purchase-group-heading{
   margin:0 0 16px;
   padding:16px 20px;
   background:linear-gradient(135deg,#173f63 0%,#246493 100%);
   color:#ffffff;
   border-radius:16px;
   box-shadow:0 8px 22px rgba(15,23,42,.10);
   text-align:left;
}

.purchase-group-heading h2{
   margin:0 !important;
   color:#ffffff !important;
   font-family:inherit !important;
   font-size:clamp(20px,2.4vw,27px) !important;
   line-height:1.2;
   font-weight:850;
   text-align:left !important;
   letter-spacing:-.01em;
}

.purchase-group--ungrouped .purchase-group-heading{
   display:none;
}

.purchase-grid{
   display:grid;
   grid-template-columns:repeat(var(--purchase-columns,2),minmax(0,1fr));
   gap:18px;
   align-items:stretch;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.purchase-card{
   min-width:0;
   height:100%;
   display:flex;
   flex-direction:column;
   overflow:hidden;
   background:#ffffff;
   border:1px solid #dbe3ec;
   border-radius:18px;
   box-shadow:0 9px 26px rgba(15,23,42,.07);
   transition:
      transform .16s ease,
      box-shadow .16s ease,
      border-color .16s ease;
}

.purchase-card:hover{
   transform:translateY(-2px);
   border-color:#bdcad8;
   box-shadow:0 13px 32px rgba(15,23,42,.11);
}

.purchase-image-link{
   display:block;
   width:100%;
   padding:18px 18px 0;
   text-decoration:none !important;
}

.purchase-image-window{
   width:100%;
   height:210px;
   display:flex;
   align-items:center;
   justify-content:center;
   overflow:hidden;
   background:linear-gradient(180deg,#f8fafc 0%,#f2f5f8 100%);
   border:1px solid #e4e9ef;
   border-radius:14px;
}

.purchase-image{
   display:block;
   width:auto;
   max-width:88%;
   height:auto;
   max-height:188px;
   object-fit:contain;
   transition:transform .18s ease;
}

.purchase-card:hover .purchase-image{
   transform:scale(1.025);
}

/* =========================================================
   CARD COPY
   ========================================================= */

.purchase-card-body{
   flex:1 1 auto;
   min-width:0;
   display:flex;
   flex-direction:column;
   align-items:center;
   padding:16px 18px 18px;
   text-align:center;
}

.purchase-card-ref{
   margin:0 0 5px;
   color:#6b7788;
   font-size:12px;
   line-height:1.3;
   font-weight:750;
   text-transform:uppercase;
   letter-spacing:.055em;
}

.purchase-card-title{
   margin:0 0 6px !important;
   color:#111827;
   font-family:inherit !important;
   font-size:21px !important;
   line-height:1.2;
   font-weight:900;
   letter-spacing:-.015em;
   text-align:center !important;
}

.purchase-card-title a{
   color:inherit !important;
   text-decoration:none !important;
}

.purchase-card-title a:hover{
   color:#173f63 !important;
}

.purchase-card-subtitle{
   min-height:2.8em;
   margin:0 0 11px;
   color:#566476;
   font-size:15px;
   line-height:1.4;
   font-weight:600;
}

/* =========================================================
   PRICE AND DELIVERY
   ========================================================= */

.purchase-price-block{
   display:flex;
   flex-wrap:wrap;
   align-items:baseline;
   justify-content:center;
   gap:7px 10px;
   margin:4px 0 2px;
}

.purchase-price-old{
   color:#8a3440;
   font-size:15px;
   line-height:1;
   font-weight:650;
   text-decoration:line-through;
}

.purchase-price-current{
   color:#173f63;
   font-size:30px;
   line-height:1;
   font-weight:950;
   letter-spacing:-.025em;
}

.purchase-tax-note{
   margin:5px 0 11px;
   color:#737f8e;
   font-size:13px;
   line-height:1.35;
   font-weight:600;
}

.purchase-delivery{
   min-height:44px;
   margin:0 0 10px;
   color:#273548;
   font-size:15px;
   line-height:1.4;
}

.purchase-delivery strong{
   color:#1b4e73;
   font-weight:850;
}

.purchase-delivery-extra{
   display:block;
   margin-top:2px;
   color:#697687;
   font-size:12px;
}

/* =========================================================
   STOCK STATUS
   ========================================================= */

.purchase-stock-status{
   display:inline-flex;
   align-items:center;
   justify-content:center;
   gap:7px;
   margin:0 0 12px;
   padding:7px 11px;
   border:1px solid;
   border-radius:999px;
   font-size:13px;
   line-height:1;
   font-weight:850;
}

.purchase-stock-dot{
   width:8px;
   height:8px;
   flex:0 0 8px;
   border-radius:50%;
   background:currentColor;
}

.purchase-stock-status.is-in-stock{
   color:#17643a;
   background:#edf9f1;
   border-color:#bee4ca;
}

.purchase-stock-status.is-limited{
   color:#8a5200;
   background:#fff7df;
   border-color:#edd79e;
}

.purchase-stock-status.is-sold-out{
   color:#942c2c;
   background:#fff0f0;
   border-color:#e9bcbc;
}

/* =========================================================
   COLOUR SWATCHES
   ========================================================= */

.purchase-colours{
   width:100%;
   display:flex;
   flex-wrap:wrap;
   align-items:flex-start;
   justify-content:center;
   gap:8px;
   margin:0 0 14px;
}

.purchase-colours-label{
   flex:1 0 100%;
   color:#536174;
   font-size:12px;
   line-height:1.3;
   font-weight:800;
}

.purchase-colour{
   display:inline-flex;
   flex-direction:column;
   align-items:center;
   gap:3px;
   color:#687587;
   font-size:10px;
   line-height:1.2;
}

.purchase-colour img{
   display:block;
   width:34px;
   height:34px;
   object-fit:cover;
   border:1px solid #cfd8e2;
   border-radius:50%;
   box-shadow:0 2px 5px rgba(15,23,42,.09);
}

/* =========================================================
   PURCHASE ACTION
   ========================================================= */

.purchase-actions{
   width:100%;
   margin-top:auto;
   padding-top:6px;
   display:flex;
   flex-direction:column;
   align-items:center;
   gap:9px;
}

.purchase-order-button,
.purchase-sold-out{
   width:100%;
   min-height:48px;
   margin:0 !important;
   padding:12px 18px !important;
   display:inline-flex;
   align-items:center;
   justify-content:center;
   border-radius:12px !important;
   font-family:inherit;
   font-size:16px !important;
   line-height:1.2;
   font-weight:900 !important;
   text-align:center;
   text-decoration:none !important;
}

.purchase-order-button,
.purchase-order-button.buybutton{
   background:#ea7a1f !important;
   color:#ffffff !important;
   border:1px solid #cf650f !important;
   box-shadow:0 8px 17px rgba(234,122,31,.22);
}

.purchase-order-button:hover,
.purchase-order-button.buybutton:hover{
   background:#cf650f !important;
   color:#ffffff !important;
   border-color:#b9570b !important;
}

.purchase-sold-out{
   color:#8c2929;
   background:#f8e7e7;
   border:1px solid #dfb7b7;
}

.purchase-paypal{
   width:100%;
   display:flex;
   justify-content:center;
}

.purchase-paypal form{
   margin:0;
}

.purchase-paypal input[type="image"]{
   display:block;
   max-width:190px;
   height:auto;
   margin:0 auto;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.purchase-empty{
   max-width:760px;
   margin:24px auto;
   padding:22px;
   color:#4f5e70;
   background:#f7f9fb;
   border:1px solid #dce4ec;
   border-radius:16px;
   font-size:16px;
   line-height:1.55;
   text-align:center;
}

/* =========================================================
   RESPONSIVE GRID
   ========================================================= */

@media (max-width:1050px){
   .purchase-grid{
      grid-template-columns:repeat(2,minmax(0,1fr));
   }
}

@media (max-width:700px){

   .purchase-catalogue{
      position:relative;
      left:50%;
      width:100vw;
      max-width:none;
      margin-left:-50vw;
      margin-right:-50vw;
      margin-bottom:26px;
      padding:10px 0;
      background:#f1f4f7;
   }

   .purchase-group{
      margin:0 0 14px;
   }

   .purchase-group:last-child{
      margin-bottom:0;
   }

   .purchase-group-heading{
      margin:0;
      padding:14px 16px;
      border-radius:0;
      box-shadow:none;
   }

   .purchase-group-heading h2{
      font-size:22px !important;
      text-align:center !important;
   }

   .purchase-grid{
      grid-template-columns:1fr;
      gap:10px;
   }

   .purchase-card{
      display:grid;
      grid-template-columns:132px minmax(0,1fr);
      border-left:0;
      border-right:0;
      border-radius:0;
      box-shadow:none;
      transform:none !important;
   }

   .purchase-image-link{
      padding:16px 0 16px 14px;
   }

   .purchase-image-window{
      height:150px;
      border-radius:13px;
   }

   .purchase-image{
      max-width:90%;
      max-height:134px;
   }

   .purchase-card-body{
      padding:15px 14px 16px;
      align-items:flex-start;
      text-align:left;
   }

   .purchase-card-ref{
      margin-bottom:3px;
      font-size:11px;
   }

   .purchase-card-title{
      width:100%;
      margin-bottom:4px !important;
      font-size:20px !important;
      line-height:1.18;
      text-align:left !important;
   }

   .purchase-card-subtitle{
      min-height:0;
      margin-bottom:8px;
      font-size:15px;
      line-height:1.38;
   }

   .purchase-price-block{
      justify-content:flex-start;
      margin-top:2px;
   }

   .purchase-price-current{
      font-size:27px;
   }

   .purchase-tax-note{
      margin-bottom:8px;
      font-size:12px;
   }

   .purchase-delivery{
      min-height:0;
      margin-bottom:8px;
      font-size:14px;
   }

   .purchase-stock-status{
      margin-bottom:10px;
   }

   .purchase-colours{
      justify-content:flex-start;
      margin-bottom:10px;
   }

   .purchase-colours-label{
      text-align:left;
   }

   .purchase-colour span{
      display:none;
   }

   .purchase-colour img{
      width:30px;
      height:30px;
   }

   .purchase-actions{
      grid-column:1 / -1;
      width:calc(100% + 146px);
      margin-left:-146px;
      padding-top:5px;
   }

   .purchase-order-button,
   .purchase-sold-out{
      min-height:50px;
      font-size:17px !important;
   }
}

/* Extremely narrow screens: image above product information */
@media (max-width:390px){

   .purchase-card{
      display:flex;
   }

   .purchase-image-link{
      padding:16px 16px 0;
   }

   .purchase-image-window{
      width:160px;
      height:160px;
      margin:0 auto;
   }

   .purchase-card-body{
      align-items:center;
      padding:14px 16px 18px;
      text-align:center;
   }

   .purchase-card-title{
      text-align:center !important;
   }

   .purchase-price-block,
   .purchase-colours{
      justify-content:center;
   }

   .purchase-colours-label{
      text-align:center;
   }

   .purchase-actions{
      width:100%;
      margin-left:0;
   }
}

@media (prefers-reduced-motion:reduce){
   .purchase-card,
   .purchase-image{
      transition:none;
   }
}

/* =========================================================
   FINAL MOBILE CATALOGUE RATINGS
   ========================================================= */

@media (max-width:390px){

   .catalogue-ratings td,
   .catalogue-ratings th{
      padding:6px 2px !important;
      font-size:12px !important;
   }

   .catalogue-ratings td:nth-child(even),
   .catalogue-ratings th:nth-child(even){
      font-size:11px !important;
   }
}

/* =========================================================
   COMPACT MOBILE RECOMMENDATION CARDS
   Ratings remain visible; long text stays expandable.
   ========================================================= */

@media (max-width:760px){

   .recommendation-page-fullwidth .recommendation-list{
      width:100vw !important;
      max-width:none !important;
      margin:12px 0 0 !important;
      padding:8px 0 20px !important;
      gap:8px !important;
      background:#f1f4f7 !important;
   }

   .recommendation-page-fullwidth .recommendation-card{
      width:100% !important;
      max-width:none !important;
      margin:0 !important;
      padding:13px 12px !important;
      border-left:0 !important;
      border-right:0 !important;
      border-radius:0 !important;
      box-shadow:none !important;
   }

   .recommendation-card-top{
      display:grid !important;
      grid-template-columns:96px minmax(0,1fr) !important;
      gap:11px !important;
      align-items:start !important;
      margin-bottom:0 !important;
      padding:0 !important;
   }

   .recommendation-media{
      width:96px !important;
      min-width:96px !important;
      text-align:left !important;
   }

   .recommendation-image{
      display:block !important;
      width:96px !important;
      max-width:96px !important;
      height:96px !important;
      margin:0 !important;
      padding:5px !important;
      object-fit:contain !important;
      border-radius:11px !important;
   }

   .recommendation-main{
      min-width:0 !important;
      text-align:left !important;
   }

   .recommendation-ref{
      margin:0 0 2px !important;
      font-size:11px !important;
      line-height:1.2 !important;
   }

   .recommendation-title{
      display:-webkit-box !important;
      margin:0 0 4px !important;
      overflow:hidden !important;
      font-size:19px !important;
      line-height:1.15 !important;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
   }

   .recommendation-subtitle{
      display:-webkit-box !important;
      margin:0 0 5px !important;
      overflow:hidden !important;
      font-size:14px !important;
      line-height:1.3 !important;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
   }

   .recommendation-price-row{
      justify-content:flex-start !important;
      gap:5px 8px !important;
      margin:5px 0 6px !important;
   }

   .recommendation-price-old{
      font-size:13px !important;
   }

   .recommendation-price-new{
      font-size:23px !important;
   }

   .recommendation-cta-row{
      grid-column:1 / -1 !important;
      width:calc(100% + 107px) !important;
      margin:5px 0 0 -107px !important;
      display:grid !important;
      grid-template-columns:1fr 1fr !important;
      gap:7px !important;
   }

   .recommendation-cta-row .buybutton,
   .recommendation-cta-row .infobutton,
   .recommendation-cta-row .soldoutbutton{
      width:100% !important;
      min-width:0 !important;
      min-height:43px !important;
      margin:0 !important;
      padding:9px 7px !important;
      font-size:15px !important;
      line-height:1.2 !important;
      white-space:normal !important;
   }

   .recommendation-cta-row form{
      width:100% !important;
      max-width:none !important;
      margin:0 !important;
   }

   .recommendation-ratings{
      margin:10px 0 0 !important;
      padding:10px 0 !important;
   }

   .recommendation-score-box{
      margin-bottom:7px !important;
      padding:7px 8px !important;
   }

   .recommendation-rating-grid{
      display:grid !important;
      grid-template-columns:repeat(2,minmax(0,1fr)) !important;
      gap:6px !important;
   }

   .recommendation-rating-item{
      display:flex !important;
      flex-direction:column !important;
      align-items:flex-start !important;
      gap:4px !important;
      min-width:0 !important;
      padding:7px !important;
   }

   .recommendation-rating-label{
      font-size:11px !important;
      line-height:1.2 !important;
   }

   .recommendation-rating-stars{
      font-size:14px !important;
      line-height:1 !important;
      letter-spacing:0 !important;
      white-space:nowrap !important;
   }

   .recommendation-details-summary{
      min-height:45px !important;
      padding:10px 2px !important;
      font-size:15px !important;
   }

   .recommendation-details-icon{
      width:25px !important;
      height:25px !important;
      flex-basis:25px !important;
   }

   .recommendation-details-content{
      padding:2px 0 13px !important;
   }

   .recommendation-text{
      padding:0 !important;
      font-size:15px !important;
      line-height:1.52 !important;
   }
}

@media (max-width:390px){

   .recommendation-card-top{
      grid-template-columns:86px minmax(0,1fr) !important;
      gap:9px !important;
   }

   .recommendation-media{
      width:86px !important;
      min-width:86px !important;
   }

   .recommendation-image{
      width:86px !important;
      max-width:86px !important;
      height:86px !important;
   }

   .recommendation-title{
      font-size:18px !important;
   }

   .recommendation-price-new{
      font-size:21px !important;
   }

   .recommendation-cta-row{
      width:calc(100% + 95px) !important;
      margin-left:-95px !important;
      grid-template-columns:1fr !important;
   }
}