
*{box-sizing:border-box}
.rhf8-container{width:min(1180px,92%);margin:auto}

/* Hide theme default header/footer only when replacement is enabled.
   Our plugin elements use unique IDs/classes so they remain visible. */
body.rhf8-replace-theme-header #masthead,
body.rhf8-replace-theme-header .site-header:not(.rhf8-header),
body.rhf8-replace-theme-header header.site-header:not(.rhf8-header),
body.rhf8-replace-theme-header .main-header:not(.rhf8-header),
body.rhf8-replace-theme-header .header-main:not(.rhf8-header),
body.rhf8-replace-theme-header .header-wrapper:not(.rhf8-header),
body.rhf8-replace-theme-header #site-header,
body.rhf8-replace-theme-header .top-header,
body.rhf8-replace-theme-header .header-top,
body.rhf8-replace-theme-header .middle-header,
body.rhf8-replace-theme-header .bottom-header{display:none!important}

body.rhf8-replace-theme-footer #colophon,
body.rhf8-replace-theme-footer .site-footer:not(.rhf8-footer),
body.rhf8-replace-theme-footer footer.site-footer:not(.rhf8-footer),
body.rhf8-replace-theme-footer .main-footer:not(.rhf8-footer),
body.rhf8-replace-theme-footer .footer-wrapper:not(.rhf8-footer),
body.rhf8-replace-theme-footer #site-footer{display:none!important}

.rhf8-header{position:relative;z-index:9998;background:var(--rhf8-bg);color:var(--rhf8-secondary);box-shadow:0 2px 14px rgba(0,0,0,.07)}
.rhf8-header.rhf8-sticky{position:sticky;top:0}
.rhf8-header-inner{min-height:78px;display:flex;align-items:center;gap:28px}
.rhf8-brand{display:inline-flex;align-items:center;text-decoration:none;color:inherit;flex-shrink:0}
.rhf8-logo-img{max-height:52px;width:auto;max-width:210px}
.rhf8-site-title{font-size:24px;font-weight:800}
.rhf8-nav{margin-left:auto;display:block}
.rhf8-menu,.rhf8-menu ul,.rhf8-footer-menu{list-style:none;margin:0;padding:0}
.rhf8-menu{display:flex;align-items:center;gap:25px}
.rhf8-menu li{position:relative}
.rhf8-menu a{color:inherit;text-decoration:none;font-weight:650;display:block;padding:8px 0}
.rhf8-menu .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;min-width:210px;box-shadow:0 12px 30px rgba(0,0,0,.12);padding:10px 16px;z-index:100}
.rhf8-menu li:hover>.sub-menu{display:block}
.rhf8-actions{display:flex;align-items:center;gap:12px;margin-left:10px}
.rhf8-phone-btn,.rhf8-chat-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.rhf8-phone-btn{flex-direction:column;align-items:flex-start;color:var(--rhf8-secondary);white-space:nowrap}
.rhf8-phone-btn small{font-size:11px;opacity:.65}
.rhf8-chat-btn{background:var(--rhf8-primary);color:#fff;padding:11px 18px;border-radius:8px;font-weight:700;white-space:nowrap}
.rhf8-menu-toggle{display:none;background:transparent;border:0;padding:8px;cursor:pointer;color:inherit}
.rhf8-menu-toggle span{display:block;width:27px;height:3px;border-radius:4px;background:currentColor;margin:5px}
.rhf8-top-strip{background:var(--rhf8-secondary);color:#fff;font-size:13px}
.rhf8-top-strip .rhf8-container{display:flex;justify-content:space-between;gap:15px;padding:8px 0}
.rhf8-top-actions{display:flex;gap:16px}.rhf8-top-actions a{color:#fff;text-decoration:none}
.rhf8-no-menu{font-size:13px;opacity:.65;padding:8px}

/* 8 Header styles */
.rhf8-header-2 .rhf8-header-inner{border-left:6px solid var(--rhf8-primary);padding-left:18px}
.rhf8-header-2 .rhf8-chat-btn{border-radius:999px}
.rhf8-header-3 .rhf8-header-inner{justify-content:center}
.rhf8-header-3 .rhf8-brand{margin-right:auto}
.rhf8-header-3 .rhf8-actions{margin-left:auto}
.rhf8-header-4 .rhf8-header-inner{min-height:72px}
.rhf8-header-5{box-shadow:none;border-bottom:1px solid rgba(0,0,0,.08)}
.rhf8-header-5 .rhf8-chat-btn{background:transparent;color:var(--rhf8-primary);border:2px solid var(--rhf8-primary)}
.rhf8-header-6{background:transparent;box-shadow:none;padding:10px 0}
.rhf8-header-6 .rhf8-header-inner{background:var(--rhf8-bg);border-radius:18px;padding:0 22px;box-shadow:0 10px 30px rgba(0,0,0,.1)}
.rhf8-header-7{background:var(--rhf8-secondary);color:#fff}
.rhf8-header-7 .rhf8-phone-btn,.rhf8-header-7 .rhf8-menu a{color:#fff}
.rhf8-header-8{background:linear-gradient(115deg,var(--rhf8-secondary),var(--rhf8-primary));color:#fff}
.rhf8-header-8 .rhf8-phone-btn,.rhf8-header-8 .rhf8-menu a{color:#fff}
.rhf8-header-8 .rhf8-chat-btn{background:#fff;color:var(--rhf8-secondary)}

/* Footer */
.rhf8-footer{background:var(--rhf8-footer-bg);color:var(--rhf8-footer-text);margin-top:40px}
.rhf8-footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:34px;padding:52px 0}
.rhf8-footer-brand p{opacity:.78;max-width:360px;line-height:1.7}
.rhf8-footer-phone,.rhf8-footer-chat{display:block;color:inherit;text-decoration:none;margin-top:10px;font-weight:700}
.rhf8-footer-toggle{width:100%;display:flex;justify-content:space-between;background:none;border:0;color:inherit;padding:0 0 14px;font-weight:800;font-size:16px;text-align:left;pointer-events:none}
.rhf8-footer-toggle span{display:none}
.rhf8-footer-menu li{margin:10px 0}.rhf8-footer-menu a{color:inherit;text-decoration:none;opacity:.8}
.rhf8-footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:18px 0;opacity:.8;font-size:14px}
.rhf8-footer-2 .rhf8-footer-grid{border-top:5px solid var(--rhf8-primary)}
.rhf8-footer-3 .rhf8-footer-grid{text-align:center;grid-template-columns:repeat(4,1fr)}
.rhf8-footer-4{border-radius:30px 30px 0 0;overflow:hidden}
.rhf8-footer-5{background:#f5f5f5;color:#161616}.rhf8-footer-5 .rhf8-footer-bottom{border-color:rgba(0,0,0,.1)}
.rhf8-footer-6 .rhf8-footer-grid{padding:38px 0}.rhf8-footer-6 .rhf8-footer-col{border:1px solid rgba(255,255,255,.15);border-radius:14px;padding:20px}
.rhf8-footer-7{background:linear-gradient(135deg,var(--rhf8-secondary),#252525)}
.rhf8-footer-8{background:linear-gradient(135deg,var(--rhf8-primary),var(--rhf8-secondary))}

/* Mobile */
.rhf8-mobile-bar{display:none;position:fixed;left:0;right:0;z-index:99999;background:var(--rhf8-secondary);box-shadow:0 0 14px rgba(0,0,0,.22)}
.rhf8-mobile-bar-top{top:0}.rhf8-mobile-bar-bottom{bottom:0}
.rhf8-mobile-bar a{flex:1;color:#fff;text-decoration:none;text-align:center;padding:12px 8px;font-weight:800;border-right:1px solid rgba(255,255,255,.15)}
.rhf8-mobile-bar a:last-child{border-right:0}

@media(max-width:900px){
  .rhf8-header-inner{min-height:68px;position:relative}
  .rhf8-menu-toggle{display:block;margin-left:auto;order:3}
  .rhf8-actions{display:none}
  .rhf8-nav{display:none!important;position:absolute!important;left:0!important;right:0!important;top:100%!important;margin:0!important;background:var(--rhf8-bg)!important;color:var(--rhf8-secondary)!important;box-shadow:0 12px 22px rgba(0,0,0,.16);padding:12px 5%;z-index:99999}
  .rhf8-nav.is-open{display:block!important}
  .rhf8-menu{display:block!important}
  .rhf8-menu li{display:block;border-bottom:1px solid rgba(128,128,128,.2)}
  .rhf8-menu a{display:block!important;padding:13px 0!important;color:inherit!important}
  .rhf8-menu .sub-menu{display:block;position:static;box-shadow:none;padding:0 0 0 18px;background:transparent}
  .rhf8-top-strip{display:none}
  .rhf8-footer-grid{grid-template-columns:1fr;gap:0;padding:34px 0}
  .rhf8-footer-brand{margin-bottom:22px}
  .rhf8-footer-col{border-top:1px solid rgba(255,255,255,.15)}
  .rhf8-footer-5 .rhf8-footer-col{border-color:rgba(0,0,0,.12)}
  .rhf8-footer-toggle{pointer-events:auto;padding:16px 0;cursor:pointer}
  .rhf8-footer-toggle span{display:block}
  .rhf8-footer-menu-wrap{display:none;padding-bottom:12px}
  .rhf8-footer-col.is-open .rhf8-footer-menu-wrap{display:block}
  .rhf8-footer-col.is-open .rhf8-footer-toggle span{transform:rotate(45deg)}
  .rhf8-footer-3 .rhf8-footer-grid{grid-template-columns:1fr;text-align:left}
  .rhf8-mobile-bar{display:flex}
  body:has(.rhf8-mobile-bar-bottom){padding-bottom:52px}
  body:has(.rhf8-mobile-bar-top){padding-top:48px}
}
@media(max-width:480px){.rhf8-logo-img{max-height:42px;max-width:170px}.rhf8-site-title{font-size:20px}}


/* Desktop sticky bars */
.rhf8-desktop-bar{
  display:flex;
  position:fixed;
  left:0;
  right:0;
  z-index:99999;
  background:var(--rhf8-secondary);
  box-shadow:0 0 14px rgba(0,0,0,.22);
}
.rhf8-desktop-bar-top{top:0}
.rhf8-desktop-bar-bottom{bottom:0}
.rhf8-desktop-bar a{
  flex:1;
  color:#fff;
  text-decoration:none;
  text-align:center;
  padding:12px 18px;
  font-weight:800;
  border-right:1px solid rgba(255,255,255,.15);
}
.rhf8-desktop-bar a:last-child{border-right:0}
@media(max-width:900px){
  .rhf8-desktop-bar{display:none!important}
}
@media(min-width:901px){
  .rhf8-mobile-bar{display:none!important}
}


/* v1.3 sticky bar offset fix */
:root{
  }

@media(min-width:901px){
  body.rhf8-desktop-top-enabled{
    padding-top:var(--rhf8-desktop-bar-height) !important;
  }
  body.rhf8-desktop-top-enabled .rhf8-header.rhf8-sticky{
    top:var(--rhf8-desktop-header-top, var(--rhf8-desktop-bar-height)) !important;
  }
  body.admin-bar.rhf8-desktop-top-enabled .rhf8-desktop-bar-top{
    top:32px !important;
  }
  body.admin-bar.rhf8-desktop-top-enabled{
    padding-top:calc(var(--rhf8-desktop-bar-height) + 32px) !important;
  }
  body.admin-bar.rhf8-desktop-top-enabled .rhf8-header.rhf8-sticky{
    top:calc(var(--rhf8-desktop-header-top, var(--rhf8-desktop-bar-height)) + 32px) !important;
  }
  .rhf8-desktop-bar{
    min-height:var(--rhf8-desktop-bar-height);
    align-items:center;
  }
}

@media(max-width:900px){
  body.rhf8-mobile-top-enabled{
    padding-top:var(--rhf8-mobile-bar-height) !important;
  }
  body.rhf8-mobile-top-enabled .rhf8-header.rhf8-sticky{
    top:var(--rhf8-mobile-bar-height) !important;
  }
  body.admin-bar.rhf8-mobile-top-enabled .rhf8-mobile-bar-top{
    top:46px !important;
  }
  body.admin-bar.rhf8-mobile-top-enabled{
    padding-top:calc(var(--rhf8-mobile-bar-height) + 46px) !important;
  }
  body.admin-bar.rhf8-mobile-top-enabled .rhf8-header.rhf8-sticky{
    top:calc(var(--rhf8-mobile-bar-height) + 46px) !important;
  }
  .rhf8-mobile-bar{
    min-height:var(--rhf8-mobile-bar-height);
    align-items:center;
  }
}

/* keep bottom bars from covering content */
@media(min-width:901px){
  body.rhf8-desktop-bottom-enabled{
    padding-bottom:var(--rhf8-desktop-bar-height) !important;
  }
}
@media(max-width:900px){
  body.rhf8-mobile-bottom-enabled{
    padding-bottom:var(--rhf8-mobile-bar-height) !important;
  }
}


/* v1.4 separate TFN / Live Chat link colors */
.rhf8-tfn-link,
.rhf8-tfn-link:visited,
.rhf8-tfn-link:hover,
.rhf8-tfn-link:focus{
  color:var(--rhf8-tfn-link-color) !important;
}

.rhf8-chat-trigger,
.rhf8-chat-trigger:visited,
.rhf8-chat-trigger:hover,
.rhf8-chat-trigger:focus{
  color:var(--rhf8-chat-link-color) !important;
}

/* Desktop sticky header top is controlled from plugin settings */
@media(min-width:901px){
  body.rhf8-desktop-top-enabled .rhf8-header.rhf8-sticky{
    top:var(--rhf8-desktop-header-top, 48px) !important;
  }
}


/* v1.5 - user-controlled desktop bar height variable */
@media (min-width: 901px) {
  body.rhf8-desktop-top-enabled .rhf8-header.rhf8-sticky {
    top: var(--rhf8-desktop-bar-height) !important;
  }
}


/* v1.6 - user controlled mobile bar height */
@media (max-width: 900px) {
  body.rhf8-mobile-top-enabled .rhf8-header.rhf8-sticky {
    top: var(--rhf8-mobile-bar-height) !important;
  }
}

/* v1.7 Page Visibility selectors */
.rhf8-page-select-label{
  display:block;
  margin:18px 0;
}
.rhf8-page-select-label > span:first-child{
  display:block;
  font-weight:700;
  margin-bottom:7px;
}
.rhf8-page-multiselect{
  width:100%;
  min-height:190px;
  max-width:100%;
}
.rhf8-page-select-label .description{
  display:block;
  margin-top:6px;
}
