.trm-wd-mobile-nav {
    --trm-nav-accent: #063867;
    --trm-nav-text: #063867;
    --trm-nav-border: #e7e7e7;
    --trm-nav-bg: #fff;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    min-height: 62px;
    background: var(--trm-nav-bg);
    border-top: 1px solid var(--trm-nav-border);
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}

.trm-wd-nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 6px 6px;
    color: var(--trm-nav-text);
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    transition: color .15s ease, background .15s ease;
}

.trm-wd-nav-item:hover,
.trm-wd-nav-item:focus,
.trm-wd-nav-item.is-active {
    color: var(--trm-nav-accent);
}

.trm-wd-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.trm-wd-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trm-wd-cart-count {
    position: absolute;
    top: -5px;
    right: -9px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--trm-nav-accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 17px;
}

@media (max-width: 849px) {
    body.trm-wd-nav-active {
        padding-bottom: 62px !important;
    }
}

@media (min-width: 850px) {
    .trm-wd-mobile-nav:not(.trm-wd-show-all) {
        display: none !important;
    }
}

.trm-wd-mobile-nav.trm-wd-show-all {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid var(--trm-nav-border);
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
}

/* Keep nav text in the Repair Manual brand blue even when the UX Block/footer inherits Flatsome .dark link styles. */
.dark .trm-wd-mobile-nav .trm-wd-nav-item,
.trm-wd-mobile-nav .trm-wd-nav-item {
    color: var(--trm-nav-text) !important;
}

.dark .trm-wd-mobile-nav .trm-wd-nav-item:hover,
.dark .trm-wd-mobile-nav .trm-wd-nav-item:focus,
.dark .trm-wd-mobile-nav .trm-wd-nav-item.is-active,
.trm-wd-mobile-nav .trm-wd-nav-item:hover,
.trm-wd-mobile-nav .trm-wd-nav-item:focus,
.trm-wd-mobile-nav .trm-wd-nav-item.is-active {
    color: var(--trm-nav-accent) !important;
}


/* v1.0.3: hard override for Flatsome dark/footer/UX Block inheritance. */
html body .trm-wd-mobile-nav a.trm-wd-nav-item,
html body .dark .trm-wd-mobile-nav a.trm-wd-nav-item,
html body .dark .widget .trm-wd-mobile-nav a.trm-wd-nav-item,
html body .trm-wd-mobile-nav a.trm-wd-nav-item .trm-wd-label,
html body .dark .trm-wd-mobile-nav a.trm-wd-nav-item .trm-wd-label,
html body .dark .widget .trm-wd-mobile-nav a.trm-wd-nav-item .trm-wd-label,
html body .trm-wd-mobile-nav a.trm-wd-nav-item .trm-wd-icon {
    color: #063867 !important;
}

html body .trm-wd-mobile-nav a.trm-wd-nav-item .trm-wd-icon svg,
html body .dark .trm-wd-mobile-nav a.trm-wd-nav-item .trm-wd-icon svg,
html body .dark .widget .trm-wd-mobile-nav a.trm-wd-nav-item .trm-wd-icon svg {
    color: #063867 !important;
    stroke: #063867 !important;
    fill: none !important;
}

/* Keep cart badge text white despite the hard nav-color override. */
html body .trm-wd-mobile-nav .trm-wd-cart-count,
html body .dark .trm-wd-mobile-nav .trm-wd-cart-count {
    color: #fff !important;
}
