/* white background box shadow*/
.white-background-shadow {
    box-shadow: 0 0 6px rgb(0 0 0 / .7);
}

/* Header */
/* Navigation Mega menu*/
/* Hide the sub category */
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 a.mega-menu-link .mega-description-group .mega-menu-description{ 
  display: none; 
}

.jc-account a{
  font-size: inherit; /* make the element inherit the size of the container*/
}

/* Header */
.whole-header-jc {
  position: sticky;
  z-index: 9999;
  top: 0;
  box-shadow: 0 0 6px rgb(0 0 0 / .7);
}

/* footer */
.whole-footer-jc{
  margin-block-start: unset;
}

/* ===========================
   Floating CTA (FAB) — Add-on
   =========================== */

/* Container — fixed bottom-right (works with/without Tailwind utilities) */
.fab-container{
  z-index: var(--fab-z);
}
@media (min-width: 768px){
  .fab-container{ bottom: 2rem; right: 2rem; } /* 32px on md+ */
}

/* Shared circular button look */
.fab-btn{
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff; /* overridden by color classes below */
  color: #fff;
  box-shadow: 0 8px 24px hsl(220 20% 10% / 0.12), 0 3px 8px hsl(220 20% 10% / 0.08);
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
}
.fab-btn i{
  /* Scale icons relative to button size; looks good across breakpoints */
  font-size: calc(var(--fab-size) * 0.42);
  line-height: 1;
}

/* Actions stack (invisible until active) */
.fab-actions{
  position: relative;
  transition: all .3s ease-in-out;
}
.fab-action{
  position: absolute;
  bottom: 0; right: 0;
  opacity: 0;
  transform: scale(0.5) translateY(0);
  pointer-events: none; /* not clickable when hidden */
}

/* Reveal actions when container gets .active */
.fab-container.active .fab-action{
  opacity: 1;
  transform: scale(1) translateY(var(--tw-translate-y));
  pointer-events: auto;
}

/* Stagger (top to bottom): Email, Phone, LINE */
.fab-container.active .fab-action:nth-child(1){ /* Email (top) */
  --tw-translate-y: calc(var(--fab-gap) * -2.175);
  transition-delay: .15s;
}
.fab-container.active .fab-action:nth-child(2){ /* Phone */
  --tw-translate-y: calc(var(--fab-gap) * -1.175);
  transition-delay: .10s;
}
.fab-container.active .fab-action:nth-child(3){ /* LINE (bottom) */
  --tw-translate-y: calc(var(--fab-gap) * -0.175);
  transition-delay: .05s;
}

/* Hover / focus states */
.fab-btn:hover{ transform: scale(1.08); }
.fab-btn:focus-visible{
  outline: 2px solid var(--wp--preset--color--brand, #94a3b8);
  outline-offset: 3px;
}

/* Color helpers */
.fab-email{ background: var(--cta-email); }
.fab-email:hover{ background: color-mix(in oklab, var(--cta-email) 88%, black); }

.fab-phone{ background: var(--cta-phone); }
.fab-phone:hover{ background: color-mix(in oklab, var(--cta-phone) 85%, black); }

.fab-line{ background: var(--cta-line); }
.fab-line:hover{ background: color-mix(in oklab, var(--cta-line) 85%, black); }

/* Main toggle button */
.fab-toggle{ background: var(--cta-toggle); }
.fab-toggle:hover{ background: var(--cta-toggle-hover); }

/* Slightly larger LINE glyph to visually balance */
.fab-line i{ font-size: calc(var(--fab-size) * 0.48); }

/* Respect user motion prefs (you already set global reduce-motion, this helps local too) */
@media (prefers-reduced-motion: reduce){
  .fab-actions, .fab-action, .fab-btn{ transition: none !important; }
}

/* Don’t print floating CTA */
@media print{
  .fab-container{ display: none !important; }
}

@media (max-width:850px){

/* Header */
.header-container {
      display: flex;
}

.jc-header-row {
    flex: 1;
    padding: 0;
    background-color: unset;
}

.jc-logo {
    flex: 1;
}

.jc-logo img.custom-logo{
    width: var(--logo-size);
    height: auto;
}

.dgwt-wcas-search-wrapp.dgwt-wcas-has-submit.dgwt-wcas-style-pirx.dgwt-wcas-layout-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 30px;
    width: 30px;
    height: 30px;
    margin: 10px;
}

.jc-nav.has-custom-jc-blue-background-color {
    display: flex;
    padding: 10px 0;
    align-items: center;
    background-color: unset !important;
}

#mega-toggle-block-0.mega-toggle-block.mega-menu-toggle-animated-block.mega-toggle-block-0:not(.random-class) {
    margin: 0px;
    padding: 0 10px;
}

/* footer */
.jc-credit-footer{
  justify-content: center;
}
}
