/* REMIC nav: original desktop CSS */
/* ===== Reset inside header code modules ===== */
.remic-nav, .remic-mobile-nav,
.remic-nav *,.remic-mobile-nav *{
  box-sizing:border-box;
}

.remic-nav a,.remic-mobile-nav a{
  text-decoration:none;
}

/* ===== Desktop ===== */
.remic-nav-desktop{
  background:#fff;
  position:relative;
  z-index:9999;
}

.remic-nav-inner{
  max-width:1280px;
  margin:0 auto;
  height:72px;
  padding:0;
  display:flex;
  align-items:center;
  gap:28px;
}

.remic-logo img{
  max-height:42px;
  width:auto;
  display:block;
}

.remic-nav-items{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}

.remic-nav-item{
  position:relative;
}

.remic-nav-btn{
  background:none;
  border:0;
  color:#111827;
  font-size:16px;
  font-weight:500;
  padding:10px 12px;
  border-radius:8px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
}

.remic-nav-linkonly{
  display:flex;
}

.remic-nav-btn:hover,
.remic-nav-btn.is-active{
  background:#eff4ff;
  color:#1b4fba;
}

.remic-caret{
  font-size:11px;
  line-height:1;
}

.remic-nav-cta{
  display:flex;
  align-items:center;
}

.remic-login-btn{
  color:#111827;
  font-size:16px;
  font-weight:500;
}

/* Flyouts */
.remic-flyout{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 10px 40px rgba(0,0,0,.14);
  overflow:hidden;
}

.remic-flyout.is-open{
  display:block;
}

.remic-flyout-wide{
  width:820px;
}

.remic-flyout-small{
  width:300px;
}

.remic-flyout-right{
  right:0;
  left:auto;
}

.remic-flyout-body{
  display:grid;
  grid-template-columns:1fr 280px;
}

.remic-flyout-links{
  padding:28px 28px 24px;
  background:#fff;
}

.remic-panel-col{
  background:#f4efe6;
  padding:18px;
  border-left:1px solid #ebe3d7;
}

.remic-section-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#94a3b8;
  margin-bottom:14px;
}

.remic-divider{
  height:1px;
  background:#eceff3;
  margin:18px 0;
}

.remic-link{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  transition:.15s ease;
  margin-bottom:4px;
}

.remic-link:hover{
  background:#eff4ff;
}

.remic-link-title{
  font-size:15px;
  font-weight:700;
  color:#111827;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:4px;
}

.remic-link-desc{
  font-size:13px;
  line-height:1.5;
  color:#64748b;
}

.remic-pill{
  font-size:10px;
  font-weight:700;
  padding:3px 7px;
  border-radius:5px;
  line-height:1;
}

.remic-pill-mortgage{
  background:#dbeafe;
  color:#1e40af;
}

.remic-pill-life{
  background:#dcfce7;
  color:#15803d;
}

/* Promo card */
.remic-promo-card{
  background:#1c1a14;
  border-radius:14px;
  padding:18px;
}

.remic-promo-pill{
  display:inline-block;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#c9a227;
  background:rgba(201,162,39,.12);
  border:1px solid rgba(201,162,39,.28);
  border-radius:999px;
  padding:5px 10px;
  margin-bottom:14px;
}

.remic-promo-headline{
  color:#fff;
  font-size:18px;
  line-height:1.25;
  font-weight:800;
  margin-bottom:10px;
}

.remic-promo-desc{
  color:#b7ab96;
  font-size:14px;
  line-height:1.5;
  margin-bottom:16px;
}

.remic-promo-link{
  display:block;
  margin-bottom:14px;
}

.remic-promo-btn{
  display:block;
  width:100%;
  text-align:center;
  background:#fff;
  color:#111;
  font-size:15px;
  font-weight:700;
  padding:12px 14px;
  border-radius:8px;
}

.remic-promo-inner{
  background:#2a2720;
  border-radius:10px;
  padding:14px;
}

.remic-promo-inner-title{
  color:#efe5d0;
  font-size:13px;
  font-weight:700;
  margin-bottom:10px;
}

.remic-promo-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.remic-promo-list li{
  color:#b7ab96;
  font-size:13px;
  line-height:1.45;
  position:relative;
  padding-left:12px;
}

.remic-flyout-simple{
  padding:16px;
}

.remic-link.simple .remic-link-title{
  margin-bottom:0;
}

/* ===== Mobile ===== */
.remic-mobile-nav{
  background:#fff;
  position:relative;
  z-index:9999;
}

.remic-mobile-inner{
  height:64px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.remic-mobile-logo img{
  max-height:34px;
  width:auto;
  display:block;
}

.remic-mobile-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.remic-mobile-login{
  border:1px solid #cfd6de;
  color:#334155;
  padding:8px 14px;
  border-radius:6px;
  font-size:14px;
}

.remic-mobile-burger{
  background:none;
  border:0;
  padding:6px;
  display:flex;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.remic-mobile-burger span{
  width:24px;
  height:2px;
  background:#334155;
  display:block;
  transition:.2s ease;
}

.remic-mobile-burger.is-open span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.remic-mobile-burger.is-open span:nth-child(2){
  opacity:0;
}
.remic-mobile-burger.is-open span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.remic-mobile-drawer{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#fff;
  border-top:1px solid #eef2f6;
  box-shadow:0 12px 28px rgba(0,0,0,.1);
}

.remic-mobile-drawer.is-open{
  display:block;
}

.remic-mobile-item{
  border-bottom:1px solid #eef2f6;
}

.remic-mobile-trigger,
.remic-mobile-link{
  width:100%;
  padding:16px 20px;
  background:none;
  border:0;
  text-align:left;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:15px;
  font-weight:600;
  color:#1e293b;
}

.remic-mobile-panel{
  display:none;
  padding:0 20px 16px;
}

.remic-mobile-panel.is-open{
  display:block;
}

.remic-mobile-group-title{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#94a3b8;
  margin:14px 0 8px;
}

.remic-mobile-panel a{
  display:block;
  color:#1e293b;
  padding:10px 0;
  font-size:14px;
}

.remic-mobile-promo{
  background:#1c1a14;
  border-radius:12px;
  padding:16px;
  margin-top:14px;
}

.remic-mobile-promo-pill{
  display:inline-block;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#c9a227;
  background:rgba(201,162,39,.12);
  border:1px solid rgba(201,162,39,.28);
  border-radius:999px;
  padding:4px 10px;
  margin-bottom:10px;
}

.remic-mobile-promo-headline{
  color:#fff;
  font-size:15px;
  font-weight:800;
  line-height:1.3;
  margin-bottom:8px;
}

.remic-mobile-promo-desc{
  color:#b7ab96;
  font-size:13px;
  line-height:1.45;
  margin-bottom:12px;
}

.remic-mobile-promo-btn{
  display:block;
  text-align:center;
  background:#fff;
  color:#111;
  font-size:14px;
  font-weight:700;
  padding:10px 14px;
  border-radius:8px;
}

/* Right-side CTA buttons */
.remic-nav-cta{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:12px;
}

.remic-login-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  color:#1f2937;
  font-size:15px;
  font-weight:500;
}

.remic-blog-search-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.remic-blog-search-toggle{
  width:42px;
  height:42px;
  border:0;
  background:none;
  color:#1f2937;
  font-size:20px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
}

.remic-blog-search-toggle:hover,
.remic-blog-search-wrap.is-open .remic-blog-search-toggle{
  background:#eff4ff;
  color:#1b4fba;
}

.remic-blog-search-dropdown{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:500px;
  z-index:10000;
}

.remic-blog-search-wrap.is-open .remic-blog-search-dropdown{
  display:block;
}

.remic-blog-search-input{
  width:100%;
  height:40px;
  border:1px solid #d1d5db;
  border-radius:3px;
  background:#fff;
  padding:0 16px;
  font-size:15px;
  font-style:italic;
  color:#1f2937;
  outline:none;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.remic-blog-search-input::placeholder{
  color:#8b8f98;
}

.remic-blog-search-input:focus{
  border-color:#94a3b8;
}
.remic-blog-search-toggle{
  width:42px;
  height:42px;
  border:0;
  background:none;
  color:#1f2937;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
}

.remic-search-icon{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
}

.remic-blog-search-toggle:hover,
.remic-blog-search-wrap.is-open .remic-blog-search-toggle{
  background:#eff4ff;
  color:#1b4fba;
}

/* Small screens */
@media (max-width: 980px){
  .remic-blog-search-dropdown{
    right:-60px;
    width:calc(100vw - 36px);
  }
}

/* Hover support on desktop */
@media (min-width: 981px){
  .remic-nav-item{
    position:relative;
  }

  .remic-nav-item:hover > .remic-flyout{
    display:block;
  }

  .remic-nav-item:hover > .remic-nav-btn{
    background:#eff4ff;
    color:#1b4fba;
  }
}

/* Guide card */
.remic-guide-card{
  display:block;
  padding:14px 14px 12px;
  border-radius:10px;
  transition:.15s ease;
}

.remic-guide-card:hover{
  background:#eff4ff;
}

.remic-guide-title{
  font-size:15px;
  font-weight:700;
  color:#1f2937;
  margin-bottom:4px;
}

.remic-guide-desc{
  font-size:13px;
  line-height:1.45;
  color:#64748b;
}

/* Book pill */
.remic-pill-book{
  background:#f3e8ff;
  color:#7e22ce;
}

/* Keep promo card/button looking strong */
.remic-promo-btn{
  display:block;
  width:100%;
  text-align:center;
  background:#fff;
  color:#111;
  font-size:15px;
  font-weight:700;
  padding:12px 14px;
  border-radius:8px;
}

/* Better small dropdown sizing */
.remic-flyout-small{
  width:310px;
}

/* Optional: slightly stronger active state */
.remic-nav-btn.is-active{
  background:#eff4ff;
  color:#1b4fba;
}

/* Device visibility */
@media (max-width: 980px){
  .remic-nav-desktop{display:none;}
}

@media (min-width: 981px){
  .remic-mobile-nav{display:none;}
}

/* REMIC nav: original mobile CSS */
@media (max-width: 980px){
  .remic-nav-desktop{
    display:none !important;
  }
}

@media (min-width: 981px){
  .remic-mobile-nav{
    display:none !important;
  }
}

.remic-mobile-nav,
.remic-mobile-nav *{
  box-sizing:border-box;
}

.remic-mobile-nav{
  background:#fff;
  position:relative;
  z-index:9999;
width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

.remic-mobile-inner{
  min-height:64px;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.remic-mobile-logo{
  flex:0 0 auto;
}

.remic-mobile-logo img{
  display:block;
  max-height:34px;
  width:auto;
}

.remic-mobile-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.remic-mobile-login{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border:1px solid #cfd6de;
  border-radius:8px;
  background:#fff;
  color:#1f2937;
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
}

.remic-mobile-burger{
  background:none;
  border:0;
  padding:6px;
  display:flex;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.remic-mobile-burger span{
  width:24px;
  height:2px;
  background:#334155;
  display:block;
  transition:.22s ease;
  transform-origin:center;
}

.remic-mobile-burger.is-open span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.remic-mobile-burger.is-open span:nth-child(2){
  opacity:0;
}

.remic-mobile-burger.is-open span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.remic-mobile-drawer{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#fff;
  border-top:1px solid #eef2f6;
  box-shadow:0 12px 28px rgba(0,0,0,.1);
  max-height:calc(100vh - 64px);
  overflow-y:auto;
}

.remic-mobile-drawer.is-open{
  display:block;
}

.remic-mobile-item{
  border-bottom:1px solid #eef2f6;
}

.remic-mobile-trigger,
.remic-mobile-link-single{
  width:100%;
  padding:16px 20px;
  background:none;
  border:0;
  text-align:left;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#1e293b;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
}

.remic-mobile-chevron{
  font-size:12px;
  transition:transform .2s ease;
  flex:0 0 auto;
}

.remic-mobile-trigger.is-open .remic-mobile-chevron{
  transform:rotate(180deg);
}

.remic-mobile-panel{
  display:none;
  padding:0 20px 16px;
}

.remic-mobile-panel.is-open{
  display:block;
}

.remic-mobile-group-title{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#94a3b8;
  margin:16px 0 8px;
}

.remic-mobile-panel a{
  display:block;
  padding:10px 0;
  text-decoration:none;
}

.remic-mobile-link-title{
  display:block;
  color:#111827;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}

.remic-mobile-link-desc{
  display:block;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
  margin-top:3px;
}

.remic-mobile-guide-card{
  display:block;
  padding:14px;
  margin-top:8px;
  border-radius:10px;
}

.remic-mobile-guide-title{
  display:block;
  color:#1f2937;
  font-size:14px;
  font-weight:700;
  margin-bottom:4px;
}

.remic-mobile-guide-desc{
  display:block;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}

.remic-mobile-promo{
  background:#1c1a14;
  border-radius:12px;
  padding:16px;
  margin-top:16px;
}

.remic-mobile-promo-pill{
  display:inline-block;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#c9a227;
  background:rgba(201,162,39,.12);
  border:1px solid rgba(201,162,39,.28);
  border-radius:999px;
  padding:4px 10px;
  margin-bottom:10px;
}

.remic-mobile-promo-headline{
  color:#fff;
  font-size:15px;
  font-weight:800;
  line-height:1.3;
  margin-bottom:8px;
}

.remic-mobile-promo-desc{
  color:#b7ab96;
  font-size:13px;
  line-height:1.45;
  margin-bottom:12px;
}

.remic-mobile-promo-btn{
  display:block;
  text-align:center;
  background:#fff;
  color:#111;
  font-size:14px;
  font-weight:700;
  padding:10px 14px;
  border-radius:8px;
  text-decoration:none;
}

.remic-mobile-bottom{
  padding:18px 20px 24px;
}

.remic-mobile-login-btn{
  display:block;
  width:100%;
  text-align:center;
  background:#2f80ed;
  color:#fff;
  font-size:15px;
  font-weight:700;
  padding:14px 16px;
  border-radius:10px;
  text-decoration:none;
}

/* Smaller phones */
@media (max-width: 480px){
  .remic-mobile-inner{
    padding:10px 12px;
  }

  .remic-mobile-logo img{
    max-height:28px;
  }

  .remic-mobile-login{
    min-height:36px;
    padding:0 12px;
    font-size:13px;
  }

  .remic-mobile-trigger,
  .remic-mobile-link-single{
    padding:15px 16px;
  }

  .remic-mobile-panel{
    padding:0 16px 14px;
  }

  .remic-mobile-bottom{
    padding:16px;
  }
}
.remic-mobile-blog-search{
  display:flex;
  align-items:center;
  width:100%;
  height:44px;
  margin-bottom:14px;
  border:1px solid #cfd6de;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}

.remic-mobile-blog-search-label{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.remic-mobile-blog-search-input{
  flex:1;
  min-width:0;
  height:44px;
  border:0;
  padding:0 14px;
  color:#1f2937;
  font-size:15px;
  outline:none;
}

.remic-mobile-blog-search-input::placeholder{
  color:#94a3b8;
  font-style:italic;
}

.remic-mobile-blog-search-submit{
  width:46px;
  height:44px;
  border:0;
  border-left:1px solid #eef2f6;
  background:#fff;
  color:#1f2937;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.remic-mobile-blog-search-submit:hover{
  background:#eff4ff;
  color:#1b4fba;
}

.remic-mobile-search-icon{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
}

/* =====================================================================
   shop.remic.ca (Storefront) adjustments
   Everything below this line was added when porting the nav from
   remic.ca; the rules above are the original desktop + mobile CSS.
   ===================================================================== */

/* Replace Storefront's own header with the REMIC nav */
#masthead.site-header{
  display:none !important;
}

/* Storefront adds no side padding around the nav, so add some */
.remic-nav-inner{
  padding:0 24px;
}

/* The nav is printed at the top of <body>, so the full-bleed trick
   used inside Divi is not needed (it caused sideways scroll here) */
.remic-mobile-nav{
  width:auto;
  max-width:none;
  margin-left:0;
  margin-right:0;
}

/* Storefront styles every <button>; undo that inside the nav */
.remic-nav button,
.remic-mobile-nav button{
  font-family:inherit;
  line-height:normal;
  letter-spacing:normal;
  text-transform:none;
  text-shadow:none;
  box-shadow:none;
}

.remic-mobile-nav .remic-mobile-trigger,
.remic-mobile-nav .remic-mobile-trigger:hover,
.remic-mobile-nav .remic-mobile-trigger:focus,
.remic-mobile-nav .remic-mobile-burger,
.remic-mobile-nav .remic-mobile-burger:hover,
.remic-mobile-nav .remic-mobile-burger:focus{
  background:none;
  color:#1e293b;
}

.remic-nav .remic-nav-btn:focus:not(.is-active):not(:hover){
  background:none;
  color:#111827;
}

/* Storefront's input[type="search"] rules outrank the nav's classes */
.remic-nav input.remic-blog-search-input[type="search"],
.remic-nav input.remic-blog-search-input[type="search"]:focus{
  width:100%;
  height:40px;
  margin:0;
  border:1px solid #d1d5db;
  border-radius:3px;
  background:#fff;
  padding:0 16px;
  font-size:15px;
  font-style:italic;
  color:#1f2937;
  outline:none;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.remic-nav input.remic-blog-search-input[type="search"]:focus{
  border-color:#94a3b8;
}

.remic-mobile-nav input.remic-mobile-blog-search-input[type="search"],
.remic-mobile-nav input.remic-mobile-blog-search-input[type="search"]:focus{
  flex:1;
  min-width:0;
  width:auto;
  height:44px;
  margin:0;
  border:0;
  border-radius:0;
  background:#fff;
  padding:0 14px;
  color:#1f2937;
  font-size:15px;
  outline:none;
  box-shadow:none;
}

/* Keep a hover flyout open while the pointer crosses the 10px gap */
@media (min-width: 981px){
  .remic-nav-item:hover::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:12px;
  }
}

/* Cart link (desktop + mobile) */
.remic-cart-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:8px;
  color:#1f2937;
}

.remic-cart-link:hover,
.remic-cart-link:focus{
  background:#eff4ff;
  color:#1b4fba;
}

.remic-cart-icon{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.remic-cart-count{
  position:absolute;
  top:3px;
  right:1px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#1b4fba;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:18px;
  text-align:center;
}

.remic-cart-count[hidden]{
  display:none;
}

.remic-mobile-nav .remic-cart-link{
  width:38px;
  height:38px;
}

/* Storefront hides every inline SVG (svg:not(:root){display:none!important}),
   which removes the search, cart and mobile-search icons */
.remic-nav svg:not(:root),
.remic-mobile-nav svg:not(:root){
  display:block !important;
}

/* Keep labels on one line; Storefront's line-height made the
   <a> "Partner" button taller than the <button> items */
.remic-nav .remic-nav-btn,
.remic-nav .remic-login-btn{
  white-space:nowrap;
  line-height:1.25;
}

.remic-logo,
.remic-nav-cta{
  flex-shrink:0;
}

/* Storefront's button padding squashed these fixed-size icon buttons
   to a 0px-wide icon */
.remic-nav .remic-blog-search-toggle,
.remic-mobile-nav .remic-mobile-blog-search-submit{
  padding:0;
}

.remic-nav svg,
.remic-mobile-nav svg{
  flex-shrink:0;
}

/* The cart icon needs a little more room than the main site's 1280px */
.remic-nav-inner{
  max-width:1360px;
}

/* Laptops: tighten spacing so everything stays on one row */
@media (min-width: 981px) and (max-width: 1365px){
  .remic-nav-inner{ gap:16px; padding:0 16px; }
  .remic-nav-items{ gap:2px; }
  .remic-nav-btn{ font-size:15px; padding:10px 8px; }
  .remic-nav-cta{ gap:4px; margin-left:4px; }
  .remic-login-btn{ padding:0 10px; }
  .remic-logo img{ max-height:36px; }
}

@media (min-width: 981px) and (max-width: 1120px){
  .remic-nav-inner{ gap:10px; padding:0 12px; }
  .remic-nav-btn{ font-size:14px; padding:8px 6px; gap:4px; }
  .remic-nav-cta{ gap:0; margin-left:0; }
  .remic-login-btn{ padding:0 6px; font-size:14px; }
  .remic-logo img{ max-height:30px; }
}

/* =====================================================================
   CheckoutWC pages (checkout, order-pay, thank-you)
   ===================================================================== */

/* The nav replaces CheckoutWC's "REMIC" logo row */
body.remic-nav-injected #cfw-header{
  display:none;
}

/* Same font as the rest of the shop (CheckoutWC uses Inter) */
body.checkout-wc .remic-nav,
body.checkout-wc .remic-mobile-nav{
  font-family:"Source Sans Pro", HelveticaNeue-Light, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.remic-nav input,
.remic-mobile-nav input{
  font-family:inherit;
}

/* CheckoutWC colours every link (body.checkout-wc a {...}) */
.remic-nav a.remic-nav-btn,
.remic-nav a.remic-login-btn{
  color:#111827;
}
.remic-nav a.remic-nav-btn:hover,
.remic-nav a.remic-nav-btn.is-active,
.remic-nav .remic-nav-item:hover > a.remic-nav-btn{
  color:#1b4fba;
}
.remic-nav a.remic-cart-link,
.remic-mobile-nav a.remic-cart-link{
  color:#1f2937;
}
.remic-nav a.remic-cart-link:hover,
.remic-mobile-nav a.remic-cart-link:hover{
  color:#1b4fba;
}
.remic-mobile-nav a.remic-mobile-link-single,
.remic-mobile-nav .remic-mobile-panel a{
  color:#1e293b;
}
.remic-mobile-nav a.remic-mobile-promo-btn{
  color:#111;
}
.remic-mobile-nav a.remic-mobile-login-btn{
  color:#fff;
}

/* =====================================================================
   Logged-in account menu ("Hi, Name")
   ===================================================================== */
.remic-flyout-account{
  width:200px;
}

.remic-account-name{
  display:inline-block;
  max-width:140px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  vertical-align:bottom;
}

.remic-mobile-account-hi{
  margin:0 0 10px;
  color:#64748b;
  font-size:14px;
  font-weight:600;
  text-align:center;
}

.remic-mobile-nav a.remic-mobile-logout{
  display:block;
  margin-top:10px;
  padding:8px 0;
  color:#64748b;
  font-size:14px;
  font-weight:600;
  text-align:center;
  text-decoration:none;
}

@media (min-width: 981px) and (max-width: 1120px){
  .remic-account-name{ max-width:90px; }
}

/* =====================================================================
   Login link + focus styles
   ===================================================================== */

/* "Login" highlighted while on the shop login page */
.remic-nav a.remic-login-btn.is-current{
  background:#eff4ff;
  color:#1b4fba;
  border-radius:8px;
}

/* Replace Storefront's purple click outline with a keyboard-only one */
.remic-nav a:focus,
.remic-nav button:focus,
.remic-nav input:focus,
.remic-mobile-nav a:focus,
.remic-mobile-nav button:focus,
.remic-mobile-nav input:focus{
  outline:none;
}

.remic-nav a:focus-visible,
.remic-nav button:focus-visible,
.remic-mobile-nav a:focus-visible,
.remic-mobile-nav button:focus-visible{
  outline:2px solid #1b4fba;
  outline-offset:2px;
  border-radius:8px;
}

/* Backup link under the shop login form */
.remic-find-account{
  margin:14px 0 0;
  font-size:14px;
  color:#64748b;
}

.remic-find-account a{
  font-weight:600;
}
