/*
 * Connect-Scent Custom CSS
 * Migrated from WordPress Customizer > Additional CSS
 * Enqueued by functions.php as 'connect-scent-custom-style'
 */

/* START: Custom Header Button */
.custom-header-btn {
  background-color: #ffffff;
  color: #59315F;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.3s ease;
}
.custom-header-btn:hover {
  background-color: #ffffff;
  color: #B3048C;
}
/* END */

/* =========================================================
   START: Hide author/date meta globally (ALL single pages)
   Covers:
   - Blog posts
   - All custom post types (Scentsy CPTs)
   - Any Astra-rendered meta output
   ========================================================= */
.single .ast-single-post-meta,
.single .ast-meta,
.single .entry-meta {
  display: none !important;
}
/* =========================================================
   END: Hide author/date meta globally
   ========================================================= */

/* START: Desktop menu layout (updated to prevent right-side cut-off) */
/* 1) Normal desktop: allow wrapping + centered so "Scentsy Collections" never gets clipped */
@media (min-width: 1339px) and (max-width: 1599px) {
  .ast-desktop .main-header-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .ast-desktop .main-header-menu > li {
    flex: 0 0 auto;
  }
  .ast-desktop .main-header-menu .menu-item a {
    white-space: nowrap;
    padding: 0 10px;
    font-size: 14px;
  }
  .ast-desktop .main-header-menu li.menu-item-has-children {
    position: relative;
  }
  .ast-desktop .main-header-menu .menu-item-has-children:hover > .sub-menu {
    display: block !important;
    visibility: visible;
    opacity: 1;
  }
  .ast-desktop .main-header-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100% !important;
    left: 0;
    z-index: 9999;
    margin: 0;
    padding: 0;
    background: #fff;
    min-width: 180px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
  }
  .ast-desktop .main-header-menu .sub-menu .menu-item-has-children > .sub-menu {
    left: 100% !important;
    top: 0 !important;
    display: none;
  }
  .ast-desktop .main-header-menu .sub-menu .menu-item-has-children:hover > .sub-menu {
    display: block !important;
  }
  .ast-desktop .main-header-menu .sub-menu li {
    position: relative;
  }
  .ast-desktop .main-header-menu .sub-menu a {
    font-size: 14px;
    padding: 10px 15px;
    display: block;
  }
  .ast-desktop .main-header-bar-navigation {
    justify-content: center;
    overflow: visible;
  }
  .ast-desktop .ast-menu-toggle,
  .ast-desktop .main-header-menu .ast-inline-svg,
  .ast-desktop .main-header-menu .ast-icon,
  .ast-desktop .main-header-menu .menu-item-has-children > a::after,
  .ast-desktop .main-header-menu .menu-item-has-children > a > span::after {
    display: none !important;
  }
  .ast-desktop .main-header-menu .menu-item-has-children > a::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    visibility: hidden;
  }
}

/* 2) Very wide desktop: keep original single-row "nowrap" layout */
@media (min-width: 1600px) {
  .ast-desktop .main-header-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .ast-desktop .main-header-menu > li {
    flex-shrink: 0;
  }
  .ast-desktop .main-header-menu .menu-item a {
    white-space: nowrap;
    padding: 0 12px;
    font-size: 15px;
  }
  .ast-desktop .main-header-menu li.menu-item-has-children {
    position: relative;
  }
  .ast-desktop .main-header-menu .menu-item-has-children:hover > .sub-menu {
    display: block !important;
    visibility: visible;
    opacity: 1;
  }
  .ast-desktop .main-header-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100% !important;
    left: 0;
    z-index: 9999;
    margin: 0;
    padding: 0;
    background: #fff;
    min-width: 180px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
  }
  .ast-desktop .main-header-menu .sub-menu .menu-item-has-children > .sub-menu {
    left: 100% !important;
    top: 0 !important;
    display: none;
  }
  .ast-desktop .main-header-menu .sub-menu .menu-item-has-children:hover > .sub-menu {
    display: block !important;
  }
  .ast-desktop .main-header-menu .sub-menu li {
    position: relative;
  }
  .ast-desktop .main-header-menu .sub-menu a {
    font-size: 14px;
    padding: 10px 15px;
    display: block;
  }
  .ast-desktop .ast-menu-toggle,
  .ast-desktop .main-header-menu .ast-inline-svg,
  .ast-desktop .main-header-menu .ast-icon,
  .ast-desktop .main-header-menu .menu-item-has-children > a::after,
  .ast-desktop .main-header-menu .menu-item-has-children > a > span::after {
    display: none !important;
  }
  .ast-desktop .main-header-menu .menu-item-has-children > a::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    visibility: hidden;
  }
}
/* END */

/* START: Center desktop menu rows when it wraps (925px–1338px) */
@media (min-width: 925px) and (max-width: 1338px) {
  .ast-desktop .main-header-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .ast-desktop .main-header-menu > li {
    flex: 0 0 auto;
  }
  .ast-desktop .main-header-menu .menu-item a {
    white-space: nowrap;
    padding: 0 12px;
    font-size: 15px;
  }
  .ast-desktop .main-header-bar-navigation {
    justify-content: center;
  }
}
/* END */

/* START: Prevent content from overlapping header (UPDATED) */
@media (min-width: 925px) and (max-width: 1027px) {
  .site-content {
    margin-top: 20px !important;
  }
}
@media (max-width: 924px), (min-width: 1028px) {
  .site-content {
    margin-top: 5px !important;
  }
}
/* END */

/* START: of out of stock */
.stock-label.out {
  color: red;
  font-weight: bold;
}
.stock-label.limited {
  color: orange;
  font-weight: bold;
}
.stock-label.in {
  color: green;
  font-weight: bold;
}
/* END */

/* START: fix search results so that it prevents stretching */
.search-results img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* END */

/* START: animated gradient with star overlay */
.animated-gradient {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(-45deg,#B3048C,
  #B3048C,#F8C3CD,#D7BDE2,#8E44AD,#8E44AD);
  background-size: 400% 400%;
  animation: gradientShift 30s linear infinite;
  padding: 2rem;
  border-radius: 16px;
  color: white;
}
.animated-gradient::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://connect-scent.com/wp-content/uploads/2025/07/transparent_stars1.png') repeat;
  background-size: 500px 500px;
  animation: twinkleOval 60s linear infinite, sparklePulse 3s ease-in-out infinite;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.animated-gradient > * {
  position: relative;
  z-index: 1;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes twinkleOval {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 25% 10%; }
  50%  { background-position: 50% 20%; }
  75%  { background-position: 75% 10%; }
  100% { background-position: 100% 0%; }
}
@keyframes sparklePulse {
  0%, 100% { opacity: 0.2; filter: brightness(1); }
  50%      { opacity: 0.7; filter: brightness(1.8); }
}
/* END */

/* START video post size */
.sc-video.small-video {
  max-width: 20% !important;
  margin: 20px auto 0;
}
/* END */

/* START - Tighter top gap under the site header */
.site-content .entry-content { margin-top: 0rem !important; }
/* END - Tighter top gap under the site header */

/* START help with Sale Price */
.sc-price del { color:red; opacity:.55; margin-right:8px }
/* END help with Sale Price */

/* Spectra: stable card/title/CTA heights */
.uagb-post-grid .uagb-post__inner-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.uagb-post-grid .uagb-post__title {
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uagb-post-grid .uagb-post__cta { margin-top: auto; }

/* Base shadow for Post Grid cards */
.uagb-post-grid .uagb-post__inner-wrap {
  background: #fbfafb;
  box-shadow: 0 10px 30px rgba(0,0,0,0.44);
  transition: box-shadow .25s ease, transform .25s ease;
  will-change: box-shadow, transform;
}
/* Extra shadow on hover/focus */
.uagb-post-grid article:hover .uagb-post__inner-wrap,
.uagb-post-grid .uagb-post__inner-wrap:hover,
.uagb-post-grid .uagb-post__inner-wrap:focus-within,
.uagb-post-grid a.uagb-post__link:hover .uagb-post__inner-wrap {
  box-shadow: 0 14px 36px rgba(0,0,0,0.6) !important;
  transform: translateY(-2px);
}

/* Limit price styling ONLY to the main product header block */
.single-product-page .sc-price,
.single-product-page .sc-price del,
.single-product-page .sc-price span {
    font-size: 2rem !important;
    line-height: 1.4;
}
/* Ensure post grids render normally */
.wp-block-uagb-post-grid * {
    font-size: inherit !important;
    line-height: inherit !important;
}
/* END Ensure post grids render normally */

/* =========================================================
   Footer Floating Quick Action Bar (All Devices)
   Requires HTML using: .cs-quickbar, .cs-qbtn, .cs-qsearch
   ========================================================= */
:root{
  --cs-purple: #59315f;
  --cs-magenta:#b3048c;
  --cs-ink: rgba(0,0,0,.78);
  --cs-muted: rgba(0,0,0,.62);
  --cs-border: rgba(89,49,95,.20);
  --cs-glow: rgba(179,4,140,.30);
}

.cs-quickbar{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(980px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(
      135deg,
      rgba(89,49,95,.16),
      rgba(179,4,140,.12)
    ),
    rgba(255,255,255,.82);
  border: 1px solid var(--cs-border);
  box-shadow:
    0 18px 50px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.25) inset,
    0 0 28px var(--cs-glow);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  z-index: 999999;
  will-change: transform, box-shadow;
  transition: transform .20s ease, box-shadow .25s ease, background .25s ease;
}
.cs-quickbar:hover{
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    0 22px 62px rgba(0,0,0,.26),
    0 0 0 1px rgba(255,255,255,.30) inset,
    0 0 34px rgba(179,4,140,.38);
}

.cs-qbtn{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--cs-muted);
  text-decoration:none;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.60);
  box-shadow:
    0 8px 18px rgba(0,0,0,.10),
    0 0 0 1px rgba(255,255,255,.35) inset;
  transition:
    transform .15s ease,
    box-shadow .20s ease,
    background-color .20s ease,
    border-color .20s ease,
    color .20s ease;
}
.cs-qbtn:hover{
  transform: translateY(-2px);
  color: var(--cs-ink);
  border-color: rgba(179,4,140,.22);
  background: rgba(179,4,140,.10);
  box-shadow:
    0 14px 30px rgba(0,0,0,.16),
    0 0 0 1px rgba(179,4,140,.18) inset;
}
.cs-qbtn:active{
  transform: translateY(0px) scale(.98);
}
.cs-qbtn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(179,4,140,.22),
    0 14px 30px rgba(0,0,0,.16);
  border-color: rgba(179,4,140,.35);
}
.cs-qbtn.cs-active{
  color: #fff;
  border-color: rgba(179,4,140,.35);
  background: linear-gradient(135deg, var(--cs-purple), var(--cs-magenta));
  box-shadow:
    0 16px 34px rgba(179,4,140,.30),
    0 0 0 1px rgba(255,255,255,.20) inset;
}

.cs-qsearch{
  display:flex;
  align-items:center;
}
.cs-qsearch input{
  width: 170px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.70);
  font-size: 13px;
  font-weight: 700;
  color: var(--cs-ink);
  outline: none;
  box-shadow:
    0 8px 18px rgba(0,0,0,.10),
    0 0 0 1px rgba(255,255,255,.30) inset;
  transition:
    width .20s ease,
    box-shadow .20s ease,
    border-color .20s ease,
    background-color .20s ease;
}
.cs-qsearch input::placeholder{
  color: rgba(0,0,0,.40);
  font-weight: 700;
}
.cs-qsearch input:focus{
  width: 240px;
  border-color: rgba(179,4,140,.35);
  background: rgba(255,255,255,.92);
  box-shadow:
    0 0 0 3px rgba(179,4,140,.18),
    0 14px 30px rgba(0,0,0,.16);
}

body{
  padding-bottom: 120px;
}

@media (min-width: 981px){
  .cs-quickbar{
    bottom: 20px;
    width: min(1020px, calc(100% - 24px));
  }
  .cs-qsearch input{
    width: 200px;
  }
  .cs-qsearch input:focus{
    width: 280px;
  }
}

@media (max-width: 520px){
  .cs-quickbar{
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 10px;
    justify-content: center;
    gap: 8px;
  }
  .cs-qbtn{
    padding: 10px 12px;
  }
  .cs-qsearch{
    width: 100%;
    justify-content: center;
  }
  .cs-qsearch input{
    width: min(340px, 100%);
  }
  .cs-qsearch input:focus{
    width: min(380px, 100%);
  }
}

@media (prefers-reduced-motion: reduce){
  .cs-quickbar,
  .cs-qbtn,
  .cs-qsearch input{
    transition: none !important;
  }
  .cs-quickbar:hover{
    transform: translateX(-50%);
  }
  .cs-qbtn:hover{
    transform: none;
  }
}
/* =========================================================
   END Footer Floating Quick Action Bar
   ========================================================= */

/* =========================================================
   Spectra Button CTA — Primary Gradient Style (FIXED)
   ========================================================= */
.uagb-button__wrapper,
.uagb-buttons-repeater,
.uagb-buttons .uagb-button__wrapper,
.uagb-buttons-repeater > a{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.uagb-button__wrapper a{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.uagb-button__link{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100% !important;
  padding: 14px 26px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: .3px;
  text-decoration: none !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #59315f, #b3048c) !important;
  border: 1px solid rgba(179,4,140,.35) !important;
  box-shadow:
    0 12px 30px rgba(179,4,140,.32),
    0 0 0 1px rgba(255,255,255,.22) inset !important;
  transition:
    transform .15s ease,
    box-shadow .20s ease,
    filter .20s ease;
}
.uagb-button__link:hover{
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 44px rgba(179,4,140,.42),
    0 0 0 1px rgba(255,255,255,.30) inset !important;
}
.uagb-button__link:active{
  transform: scale(.97);
}
.uagb-button__link:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(179,4,140,.22),
    0 18px 44px rgba(179,4,140,.42);
}
@media (max-width: 520px){
  .uagb-button__link{
    padding: 16px 30px !important;
    font-size: 15px !important;
  }
}
/* =========================================================
   END Spectra Button CTA
   ========================================================= */

/* =========================================================
   BUY NOW CTA — works on ANY CPT single page
   ========================================================= */
.entry-content .wp-block-buttons .wp-block-button a.wp-block-button__link.wp-element-button[href*="connect.scentsy.us"]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 14px 26px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: .3px !important;
  text-decoration: none !important;
  color: #fff !important;
  background-color: #59315f !important;
  background-image: linear-gradient(135deg, #59315f, #b3048c) !important;
  border: 1px solid rgba(179,4,140,.35) !important;
  box-shadow:
    0 12px 30px rgba(179,4,140,.32),
    0 0 0 1px rgba(255,255,255,.22) inset !important;
  transition: transform .15s ease, box-shadow .20s ease, filter .20s ease !important;
}
.entry-content .wp-block-buttons .wp-block-button a.wp-block-button__link.wp-element-button[href*="connect.scentsy.us"]:hover{
  transform: translateY(-2px) !important;
  filter: brightness(1.08) !important;
  box-shadow:
    0 18px 44px rgba(179,4,140,.42),
    0 0 0 1px rgba(255,255,255,.30) inset !important;
}
.entry-content .wp-block-buttons .wp-block-button a.wp-block-button__link.wp-element-button[href*="connect.scentsy.us"]:active{
  transform: scale(.97) !important;
}
.entry-content .wp-block-buttons .wp-block-button a.wp-block-button__link.wp-element-button[href*="connect.scentsy.us"]:focus-visible{
  outline: none !important;
  box-shadow:
    0 0 0 3px rgba(179,4,140,.22),
    0 18px 44px rgba(179,4,140,.42) !important;
}
@media (max-width: 520px){
  .entry-content .wp-block-buttons .wp-block-button a.wp-block-button__link.wp-element-button[href*="connect.scentsy.us"]{
    width: 100% !important;
    padding: 16px 30px !important;
    font-size: 15px !important;
  }
}
/* =========================================================
   END - BUY NOW CTA
   ========================================================= */

/* =========================================================
   START - Everything Filter CSS (News & Reviews Top Bar)
   ========================================================= */
:root{
  --cs-purple: #59315f;
  --cs-magenta:#b3048c;
  --cs-border: rgba(0,0,0,.12);
  --cs-ink: rgba(0,0,0,.78);
  --cs-muted: rgba(0,0,0,.38);
  --cs-focus: rgba(179,4,140,.18);
  --cs-shadow: rgba(0,0,0,.08);
  --cs-cta-border: rgba(179,4,140,.35);
  --cs-cta-shadow: rgba(179,4,140,.32);
  --cs-cta-shadow-hover: rgba(179,4,140,.42);
  --cs-inline-bg: rgba(255,255,255,.75);
  --cs-quickbar-offset: 120px;
}

.cs-filterbar{
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin: 12px 0 10px;
}

.cs-top-search{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}

.cs-top-search input[type="search"]{
  flex: 1;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--cs-border);
  background: rgba(255,255,255,.92);
  font-size: 16px;
  font-weight: 600;
  color: var(--cs-ink);
  outline: none;
  box-shadow:
    0 8px 18px var(--cs-shadow),
    0 0 0 1px rgba(255,255,255,.25) inset;
  transition:
    box-shadow .20s ease,
    border-color .20s ease,
    background-color .20s ease;
}
.cs-top-search input[type="search"]::placeholder{
  color: var(--cs-muted);
  font-weight: 600;
}
.cs-top-search input[type="search"]:focus{
  border-color: var(--cs-cta-border);
  background: rgba(255,255,255,.98);
  box-shadow:
    0 0 0 3px var(--cs-focus),
    0 14px 30px rgba(0,0,0,.12);
}

/* Shared CTA pill style (Search + Filter button) */
.cs-top-search button,
.cs-filterbar .fe-open-button,
.cs-filterbar .fe-open-btn,
.cs-filterbar button[class*="fe-open"],
.cs-filterbar a[class*="fe-open"],
.cs-filterbar .wpc-open-button,
.cs-filterbar button[class*="wpc-open"],
.cs-filterbar a[class*="wpc-open"]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 14px 26px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: .3px !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--cs-purple), var(--cs-magenta)) !important;
  border: 1px solid var(--cs-cta-border) !important;
  color: #ffffff !important;
  box-shadow:
    0 12px 30px var(--cs-cta-shadow),
    0 0 0 1px rgba(255,255,255,.22) inset !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition:
    transform .15s ease,
    box-shadow .20s ease,
    filter .20s ease !important;
}
.cs-top-search button:hover,
.cs-filterbar .fe-open-button:hover,
.cs-filterbar .fe-open-btn:hover,
.cs-filterbar button[class*="fe-open"]:hover,
.cs-filterbar a[class*="fe-open"]:hover,
.cs-filterbar .wpc-open-button:hover,
.cs-filterbar button[class*="wpc-open"]:hover,
.cs-filterbar a[class*="wpc-open"]:hover{
  transform: translateY(-2px) !important;
  filter: brightness(1.08) !important;
  box-shadow:
    0 18px 44px var(--cs-cta-shadow-hover),
    0 0 0 1px rgba(255,255,255,.30) inset !important;
}
.cs-top-search button:active,
.cs-filterbar .fe-open-button:active,
.cs-filterbar .fe-open-btn:active,
.cs-filterbar button[class*="fe-open"]:active,
.cs-filterbar a[class*="fe-open"]:active,
.cs-filterbar .wpc-open-button:active,
.cs-filterbar button[class*="wpc-open"]:active,
.cs-filterbar a[class*="wpc-open"]:active{
  transform: scale(.97) !important;
}
.cs-top-search button:focus-visible,
.cs-filterbar .fe-open-button:focus-visible,
.cs-filterbar .fe-open-btn:focus-visible,
.cs-filterbar button[class*="fe-open"]:focus-visible,
.cs-filterbar a[class*="fe-open"]:focus-visible,
.cs-filterbar .wpc-open-button:focus-visible,
.cs-filterbar button[class*="wpc-open"]:focus-visible,
.cs-filterbar a[class*="wpc-open"]:focus-visible{
  outline: none !important;
  box-shadow:
    0 0 0 3px rgba(179,4,140,.22),
    0 18px 44px var(--cs-cta-shadow-hover) !important;
}

.cs-chips{
  margin: 6px 0 14px;
}
.cs-chips *{
  line-height: 1.2;
}

/* Desktop inline vs Mobile popup behavior */
.cs-fe-hidden{
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.cs-mobile-hide{ display: block; }
.cs-desktop-hide{ display: none; }

.cs-fe-inline{
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  background: var(--cs-inline-bg);
}

@media (max-width: 768px){
  .cs-filterbar{
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .cs-top-search{
    width: 100%;
  }
  .cs-mobile-hide{ display: none; }
  .cs-desktop-hide{ display: block; }
}

@media (max-width: 520px){
  .cs-top-search{
    flex-wrap: wrap;
  }
  .cs-top-search button,
  .cs-filterbar .fe-open-button,
  .cs-filterbar .fe-open-btn,
  .cs-filterbar button[class*="fe-open"],
  .cs-filterbar a[class*="fe-open"],
  .cs-filterbar .wpc-open-button,
  .cs-filterbar button[class*="wpc-open"],
  .cs-filterbar a[class*="wpc-open"]{
    padding: 16px 30px !important;
    font-size: 15px !important;
    width: 100% !important;
  }
}

/* FIX: Filter Everything popup behind floating quickbar */
:root{
  --cs-fe-popup-offset: calc(var(--cs-quickbar-offset) + env(safe-area-inset-bottom, 0px) + 12px);
}
.wpc-filters-widget-opened .wpc-filters-widget,
.wpc-filters-widget-opened .wpc-filters-popup,
.wpc-filters-opened .wpc-filters-widget,
.wpc-filters-opened .wpc-filters-popup,
.fe-filters-opened .fe-popup,
.fe-filters-opened .fe-modal,
body[class*="filters-open"] .wpc-filters-popup{
  bottom: var(--cs-fe-popup-offset) !important;
  max-height: calc(100vh - var(--cs-fe-popup-offset) - 20px) !important;
  overflow: auto !important;
  z-index: 9999999 !important;
}
.wpc-filters-widget-opened .wpc-filters-footer,
.wpc-filters-opened .wpc-filters-footer,
.fe-filters-opened .fe-footer{
  bottom: var(--cs-fe-popup-offset) !important;
  z-index: 9999999 !important;
}

@media (prefers-reduced-motion: reduce){
  .cs-top-search input[type="search"],
  .cs-top-search button,
  .cs-filterbar .fe-open-button,
  .cs-filterbar .fe-open-btn,
  .cs-filterbar button[class*="fe-open"],
  .cs-filterbar a[class*="fe-open"],
  .cs-filterbar .wpc-open-button,
  .cs-filterbar button[class*="wpc-open"],
  .cs-filterbar a[class*="wpc-open"]{
    transition: none !important;
  }
}

/* Hide bottom Quick Action Bar when Filter popup is open (mobile) */
@media (max-width: 768px){
  body.wpc-filters-widget-opened .cs-quickbar,
  body.wpc-filters-opened .cs-quickbar,
  body.fe-filters-opened .cs-quickbar,
  body[class*="filters-open"] .cs-quickbar,
  body[class*="wpc-open"] .cs-quickbar,
  body[class*="fe-open"] .cs-quickbar{
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(20px) !important;
    transition: opacity .15s ease, transform .15s ease !important;
  }
  .wpc-filters-overlay[style*="display: block"] ~ .cs-quickbar,
  .fe-overlay[style*="display: block"] ~ .cs-quickbar{
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(20px) !important;
  }
}
@media (prefers-reduced-motion: reduce){
  body.wpc-filters-widget-opened .cs-quickbar,
  body.wpc-filters-opened .cs-quickbar,
  body.fe-filters-opened .cs-quickbar,
  body[class*="filters-open"] .cs-quickbar{
    transition: none !important;
  }
}
/* =========================================================
   END - Everything Filter CSS
   ========================================================= */
