/**
 * WCG Site Identity - Branded Wordmark
 *
 * Overrides Kadence's default .site-title rendering to produce:
 *   Desktop: "Well Control Group" with "Group" in fire orange #f65401
 *   Mobile:  "WCG" with "G" in fire orange
 *
 * Technique: hide the native text via font-size: 0, then rebuild the mark
 * with ::before and ::after.
 *
 * Loaded globally on all pages via wcg\site\SiteIdentity module.
 *
 * @since 1.0.0
 */

/* ==========================================================================
   Global Layout Tokens
   ========================================================================== */

:root {
    --wcg-header-height: 60px;
}

@media (max-width: 767px) {
    :root {
        --wcg-header-height: 60px;
    }
}

/* ==========================================================================
   Desktop Wordmark
   ========================================================================== */
.site-header-wrap {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-branding .site-title {
    font-size: 0 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.site-branding .site-title::before {
    content: "Well Control\00a0 ";
    font-size: 24px;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.site-branding .site-title::after {
    content: "Group";
    font-size: 24px;
    font-weight: 800;
    color: #f65401;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Mobile Wordmark
   ========================================================================== */

.mobile-site-branding .site-title {
    font-size: 0 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.mobile-site-branding .site-title::before {
    content: "WC";
    font-size: 24px;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.mobile-site-branding .site-title::after {
    content: "G";
    font-size: 24px;
    font-weight: 800;
    color: #f65401;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Homepage Hero - Layout
   ========================================================================== */

/* Force only the top-level hero column wrapper into a vertical flex stack. */
.wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100%;
}

/* Let the hero reach viewport height without locking it to a fixed height. */
.wcg-hero {
    min-height: calc(100svh - var(--wcg-header-height));
    height: auto;
}

/* Stretch the actual hero column chain so the proof strip can pin to the
   section bottom without reintroducing viewport-height clipping. */
.wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap {
    min-height: calc(100svh - var(--wcg-header-height)) !important;
}

.wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column {
    display: flex;
    align-self: stretch !important;
    min-height: inherit;
}

.wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col {
    flex: 1 1 auto;
    min-height: inherit;
}

/* First direct inner row holds the hero copy and fills the space above the proof strip. */
.wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .kb-row-layout-wrap:first-child {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding-top: 5vh;
}

/* Proof strip stays at natural height. */
.wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .kb-row-layout-wrap:last-child {
    flex: 0 0 auto;
}

/* Default small-screen alignment. Short landscape proof layout is handled
   later with a targeted 1x4 override. */
@media (max-width: 1024px) {
    .wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .kb-row-layout-wrap:first-child {
        align-items: flex-end !important;
        padding-top: 0 !important;
        padding-bottom: 2rem;
    }

    .wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col {
        height: 100% !important;
    }
}

/* ==========================================================================
   Homepage Hero - Typography
   ========================================================================== */

.wcg-hero-overline {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem !important;
}

.wcg-hero-overline::before {
    content: "";
    width: 40px;
    height: 2px;
    background: #f65401;
    flex-shrink: 0;
}

.wcg-hero-overline,
.wcg-hero-overline * {
    font-family: "Albert Sans", var(--global-heading-font-family, system-ui, sans-serif) !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: #6b6b6b !important;
    margin-top: 0 !important;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.7);
}

.wcg-hero-title,
.wcg-hero-title * {
    font-family: "Albert Sans", var(--global-heading-font-family, system-ui, sans-serif) !important;
    font-size: clamp(2.5rem, 5.5vw, 4rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 2.5rem !important;
}

.wcg-hero-sub,
.wcg-hero-sub * {
    font-family: "Inter", var(--global-body-font-family, system-ui, sans-serif) !important;
    font-size: clamp(0.9375rem, 1.25vw, 1.0625rem) !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 2.5rem !important;
}

@media (max-width: 767px) {
    .wcg-hero-title,
    .wcg-hero-title * {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
    }

    .wcg-hero-overline,
    .wcg-hero-overline * {
        letter-spacing: 0.05em !important;
        color: #9a9a9a !important;
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.7);
    }

    .wcg-hero-overline::before {
        width: 3px;
        height: 16px;
    }
}

/* Tighten the portrait text stack slightly so the copy sits lower over the
   hero image without changing the overall mobile layout. */
@media (max-width: 767px) and (orientation: portrait) {
    .wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .kb-row-layout-wrap:first-child {
        padding-bottom: 1.25rem;
    }

    .wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .kb-row-layout-wrap:first-child > .kt-row-column-wrap > .wp-block-kadence-column:first-child > .kt-inside-inner-col {
        width: 100%;
        max-width: 230px;
    }

    .wcg-hero-overline {
        margin-bottom: 1.5rem !important;
    }

    .wcg-hero-title,
    .wcg-hero-title * {
        margin-bottom: 1.25rem !important;
    }

    .wcg-hero-sub,
    .wcg-hero-sub * {
        margin-bottom: 1.25rem !important;
    }
}

/* Narrow landscape phones and small responsive widths need their own hero
   copy width cap; otherwise they fall back to a very wide text block until
   the shorter-height landscape overrides kick in. */
@media (max-width: 767px) and (orientation: landscape) {
    .wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .kb-row-layout-wrap:first-child > .kt-row-column-wrap > .wp-block-kadence-column:first-child > .kt-inside-inner-col {
        width: 100%;
        max-width: 340px;
    }

    .wcg-hero-title,
    .wcg-hero-title * {
        font-size: clamp(2rem, 4.8vw, 2.5rem) !important;
    }
}

/* ==========================================================================
   Homepage Hero - Proof Strip
   ========================================================================== */

.wcg-hero-proof {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem 2rem;
    position: relative;
    transition: background 0.15s ease;
}

.wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column:last-child {
    border-right: none;
}

.wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f65401;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column:hover::before {
    opacity: 1;
}

.wcg-hero-proof h2,
.wcg-hero-proof h3 {
    font-family: "Albert Sans", var(--global-heading-font-family, system-ui, sans-serif);
    font-size: clamp(1.5rem, 3vw, 2.375rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.03em;
}

.wcg-hero-proof h2 mark,
.wcg-hero-proof h3 mark {
    color: #f65401;
    background: none;
}

.wcg-hero-proof p {
    font-family: "Inter", var(--global-body-font-family, system-ui, sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.45;
    margin: 0;
}

/* Default mobile proof-strip fallback - 2x2 grid. */
@media (max-width: 1024px) {
    .wcg-hero-proof > .kt-row-column-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column {
        padding: 0.5rem 0.75rem;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-top: none;
    }

    .wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(2n) {
        border-right: none;
    }

    .wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Split-the-difference portrait tweak: keep the proof strip punchy, but let
   the hero header reclaim a bit more visual priority on short phones. */
@media (max-width: 767px) and (orientation: portrait) and (max-height: 780px) {
    .wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column {
        padding: 0.4375rem 0.625rem;
    }

    .wcg-hero-proof h2,
    .wcg-hero-proof h3 {
        font-size: 1.4375rem;
        margin-bottom: 0.3125rem;
    }

    .wcg-hero-proof p {
        font-size: 0.71875rem;
        line-height: 1.4;
    }
}

/* Short landscape phones have enough width for 1x4; keep that layout and
   tighten padding instead of falling back to the default 2x2 stack. */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 550px) {
    .wcg-hero.wp-block-kadence-rowlayout > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .kb-row-layout-wrap:first-child {
        align-items: center !important;
        padding-bottom: 0.75rem;
    }

    .wcg-hero-overline {
        margin-bottom: 0.75rem !important;
    }

    .wcg-hero-title,
    .wcg-hero-title * {
        font-size: 1.875rem !important;
        line-height: 1 !important;
        margin-bottom: 0.75rem !important;
    }

    .wcg-hero-sub,
    .wcg-hero-sub * {
        font-size: 0.875rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.875rem !important;
    }

    .wcg-hero-proof > .kt-row-column-wrap {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column {
        padding: 0.5rem 0.625rem;
        border-top: none !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(2n) {
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .wcg-hero-proof > .kt-row-column-wrap > .wp-block-kadence-column:last-child {
        border-right: none !important;
    }
}

/* ==========================================================================
   Mega Menu — Panel & Nav Styling
   ========================================================================== */

/* Dropdown panel styling */
.kadence-menu-mega-enabled > ul.sub-menu {
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08) !important;
  border: 1px solid #222 !important;
  border-top: none !important;
  overflow: hidden;
  color:#222 !important
}

/* Caret rotation */
.menu-item-has-children > a .kadence-arrow-down-svg {
  transition: transform 0.25s ease;
}

.menu-item-has-children:hover > a .kadence-arrow-down-svg {
  transform: rotate(180deg);
}

/* Pointer cursor on disabled links */
.kadence-menu-mega-enabled > a {
  cursor: pointer !important;
}

/* ==========================================================================
   Header Nav — Top-Level Label Hover Pill
   ========================================================================== */

/* Apply hover pill to top-level label only.
   Do not move this to li:hover or the state will linger while mega menu is open.
   Kadence reset block is intentionally omitted unless native hover styling reappears. */

/* Plain top-level items like Schedule / Contact */
#site-navigation .primary-menu-container > ul.menu > li.menu-item:not(.menu-item-has-children) > a {
  position: relative;
  isolation: isolate;
}

#site-navigation .primary-menu-container > ul.menu > li.menu-item:not(.menu-item-has-children) > a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.35rem;
  right: 0.35rem;
  height: 2rem;
  transform: translateY(-50%) scale(0.96);
  transform-origin: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: -1;
}

#site-navigation .primary-menu-container > ul.menu > li.menu-item:not(.menu-item-has-children) > a:hover::before,
#site-navigation .primary-menu-container > ul.menu > li.menu-item:not(.menu-item-has-children) > a:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Dropdown parents like Courses / About — pill sits on the inner label wrapper only */
#site-navigation .primary-menu-container > ul.menu > li.menu-item.menu-item-has-children > a .nav-drop-title-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  isolation: isolate;
}

#site-navigation .primary-menu-container > ul.menu > li.menu-item.menu-item-has-children > a .nav-drop-title-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.45rem;
  right: -0.45rem;
  height: 2rem;
  transform: translateY(-50%) scale(0.96);
  transform-origin: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: -1;
}

/* Important: hover the LABEL, not the whole <li>, so it doesn't stay lit while you're in the mega menu */
#site-navigation .primary-menu-container > ul.menu > li.menu-item.menu-item-has-children > a:hover .nav-drop-title-wrap::before,
#site-navigation .primary-menu-container > ul.menu > li.menu-item.menu-item-has-children > a:focus-visible .nav-drop-title-wrap::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ==========================================================================
   Header Account — Initials Avatar
   ========================================================================== */

body.logged-in #account-navigation .header-account-button .nav-drop-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

body.logged-in #account-navigation .header-account-button .nav-drop-title-wrap > .kadence-svg-iconset:not(.svg-baseline),
body.logged-in .header-mobile-account-in-wrap .header-account-button > .kadence-svg-iconset {
  display: none;
}

body.logged-in #account-navigation .header-account-button .nav-drop-title-wrap::before,
body.logged-in .header-mobile-account-in-wrap .header-account-button::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #f65401;
  color: #fff;
  font-family: "Inter", var(--global-body-font-family, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.logged-in .header-mobile-account-in-wrap .header-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.logged-in #account-navigation .header-account-username
{
    font-size:15px !important;
    font-weight: 500 !important;
}

/* ==========================================================================
   Mobile Drawer — Targeted pass
   ========================================================================== */

/* Base shell */
body #mobile-drawer .drawer-inner,
body #mobile-drawer .drawer-content.mobile-drawer-content {
  background: #fff !important;
}

body #mobile-drawer .drawer-content > .site-header-item {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

body #mobile-site-navigation .drawer-menu-container,
body #mobile-site-navigation .mobile-menu-container {
  margin: 0 !important;
  padding: 0 !important;
}

/* Close row */
body #mobile-drawer .drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px !important;
}

body #mobile-drawer .menu-toggle-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 6px;
  position: relative;
}

body #mobile-drawer .menu-toggle-close .toggle-close-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: 0;
  background: #141818;
  transform-origin: center;
}

body #mobile-drawer .menu-toggle-close .toggle-close-bar:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

body #mobile-drawer .menu-toggle-close .toggle-close-bar:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Emergency strip */
body #mobile-drawer .wcg-mobile-emergency {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

body #mobile-drawer .wcg-mobile-emergency::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: #555;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") center / contain no-repeat;
}

body #mobile-drawer .wcg-mobile-emergency__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body #mobile-drawer .wcg-mobile-emergency__label {
  font-family: "Albert Sans", var(--global-heading-font-family, system-ui, sans-serif);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c62828;
  line-height: 1;
}

body #mobile-drawer .wcg-mobile-emergency__number {
  font-family: "Albert Sans", var(--global-heading-font-family, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: #141818;
  line-height: 1;
}

/* 1. Category labels styled as non-clickable headers */
#mobile-menu .wcg-mobile-heading > a,
#mobile-menu .wcg-mobile-heading > .drawer-nav-drop-wrap > a {
  font-family: 'Albert Sans', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #999 !important;
  pointer-events: none;
  padding-top: 16px !important;
  padding-bottom: 4px !important;
}

/* 2. Expanded sub-menu gets tinted background */
#mobile-menu .menu-item-has-children > .sub-menu.show-drawer {
  background: #f9f9f9;
  border-left: 3px solid #eee;
  padding-bottom: 12px !important;
}

/* 3. Stronger divider between category groups */
#mobile-menu .wcg-mobile-heading {
  border-top: 1px solid #d8d8d8 !important;
}
#mobile-menu .wcg-mobile-heading:first-child {
  border-top: none !important;
}

/* 4. Remove underline from drawer links */
#mobile-menu .menu-item > a,
#mobile-menu .drawer-nav-drop-wrap > a {
  text-decoration: none !important;
}

/* Secondary links — hub pages, FAQ, "view all" */
#mobile-menu .wcg-mobile-secondary > a,
#mobile-menu .wcg-mobile-secondary > .drawer-nav-drop-wrap > a {
  font-size: 14px !important;
  color: #555 !important;
}

/* Secondary links — hover state + pointer */
#mobile-menu .wcg-mobile-secondary > a {
  cursor: pointer;
  transition: color 0.15s;
}
#mobile-menu .wcg-mobile-secondary > a:hover {
    color: var(--global-palette1) !important;
}

/* Kill all dividers inside sub-menu */
#mobile-menu .menu-item-has-children > .sub-menu li {
  border-bottom: none !important;
}
#mobile-menu .menu-item-has-children > .sub-menu li a {
  border-bottom: none !important;
}
#mobile-menu .menu-item-has-children > .sub-menu .drawer-nav-drop-wrap {
  border-bottom: none !important;
}

/* Restore dividers above category headers only */
#mobile-menu .menu-item-has-children > .sub-menu li.wcg-mobile-heading {
  border-top: 1.5px solid #ccc !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
  margin-right: 1em !important;
}
#mobile-menu .menu-item-has-children > .sub-menu li.wcg-mobile-heading:first-child {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* remove divider on open parent menu */
#mobile-menu li.menu-item-has-children:has(> .sub-menu.show-drawer) > .drawer-nav-drop-wrap {
  border-bottom: none !important;
}

/* Keep stronger dividers only on category group headers */
#mobile-menu .wcg-mobile-heading {
  border-top: 1.5px solid #ccc !important;
}
#mobile-menu .wcg-mobile-heading:first-child {
  border-top: none !important;
}

/* Keep the drawer stack anchored while accordion submenus expand. */
body #mobile-drawer .drawer-inner {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  overflow: hidden !important;
}

body #mobile-drawer .drawer-header {
  flex: 0 0 auto !important;
}

body #mobile-drawer .drawer-content.mobile-drawer-content {
  display: block !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
}

body #mobile-drawer .site-header-item-mobile-navigation,
body #mobile-drawer #mobile-site-navigation,
body #mobile-drawer #mobile-site-navigation .drawer-menu-container {
  max-height: none !important;
  overflow: visible !important;
}

/* ==========================================================================
   Mobile Drawer — Account Footer ([wcg_mobile_account] shortcode)
   ========================================================================== */

.wcg-mobile-account {
  padding: 20px;
  border-top: 1px solid #e8e8e8;
}

/* ── Logged out: Sign In button ── */
.wcg-mobile-account__signin {
  display: block;
  width: 100%;
  font-family: "Albert Sans", var(--global-heading-font-family, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  background: #141818;
  border: none;
  padding: 14px 0;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.wcg-mobile-account__signin:hover {
  background: #333;
}

/* ── Logged in: Avatar + Name row ── */
.wcg-mobile-account__row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.wcg-mobile-account__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f65401;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Albert Sans", var(--global-heading-font-family, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.wcg-mobile-account__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wcg-mobile-account__name {
  font-family: "Albert Sans", var(--global-heading-font-family, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: #141818;
}

.wcg-mobile-account__label {
  font-family: "Inter", var(--global-body-font-family, system-ui, sans-serif);
  font-size: 12px;
  color: #777;
}

/* ── Sign Out ghost button ── */
.wcg-mobile-account__signout {
  display: block;
  width: 100%;
  font-family: "Albert Sans", var(--global-heading-font-family, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #888 !important;
  background: transparent;
  border: 1.5px solid #ccc;
  padding: 11px 0;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  margin-top: 14px;
}

.wcg-mobile-account__signout:hover {
  color: #141818 !important;
  border-color: #999;
}
