.tmdm-widget,
.tmdm-widget * {
    box-sizing: border-box;
}

.tmdm-widget button,
.tmdm-widget a {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    text-shadow: none;
}

.tmdm-widget button::before,
.tmdm-widget button::after,
.tmdm-widget a::before,
.tmdm-widget a::after {
    content: none !important;
    display: none !important;
}

.tmdm-widget .tmdm-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0 !important;
    cursor: pointer;
    line-height: 1;
    background: transparent !important;
    color: #c90000;
    box-shadow: none !important;
    outline: none;
}

.tmdm-widget .tmdm-trigger:hover,
.tmdm-widget .tmdm-trigger:focus,
.tmdm-widget .tmdm-trigger:active {
    background: transparent !important;
    color: #c90000;
    box-shadow: none !important;
    outline: none;
}

.tmdm-widget .tmdm-trigger-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.tmdm-widget .tmdm-trigger-bars span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.tmdm-overlay {
    position: fixed;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99997;
    transition-property: opacity, visibility;
    transition-timing-function: ease;
}

.tmdm-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 100dvh;
    max-width: 100vw;
    transform: translateY(-105%);
    visibility: hidden;
    z-index: 99998;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition-property: transform, visibility;
    transition-timing-function: ease;
    background: #fff8ef;
}

.tmdm-widget.tmdm-style-slide_right .tmdm-drawer {
    left: auto;
    right: 0;
    height: 100dvh;
    max-height: 100dvh;
    transform: translateX(105%);
}

.tmdm-widget.tmdm-style-slide_left .tmdm-drawer {
    left: 0;
    right: auto;
    height: 100dvh;
    max-height: 100dvh;
    transform: translateX(-105%);
}

.tmdm-widget.tmdm-style-slide_down .tmdm-drawer {
    transform: translateY(-105%);
}

.tmdm-widget.tmdm-is-open .tmdm-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tmdm-widget.tmdm-is-open .tmdm-drawer {
    transform: translateX(0);
    visibility: visible;
}

body.tmdm-lock-scroll {
    overflow: hidden;
}

.tmdm-drawer-inner {
    min-height: 100%;
}

.tmdm-topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(92px, auto) 1fr 44px;
    align-items: center;
    gap: 12px;
    padding: 28px 24px 24px;
}

.tmdm-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.tmdm-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.tmdm-find-us {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    color: #c90000;
    border: 2px solid currentColor;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: all .2s ease;
    white-space: nowrap;
    min-width: max-content;
    overflow: hidden;
}

.tmdm-find-us:hover,
.tmdm-find-us:focus,
.tmdm-find-us:active {
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none;
}

.tmdm-find-arrow {
    font-size: 24px;
    line-height: 0;
    margin-top: -1px;
}

.tmdm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    cursor: pointer;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: #c90000;
    transition: all .2s ease;
}

.tmdm-close:hover,
.tmdm-close:focus,
.tmdm-close:active {
    box-shadow: none !important;
    outline: none;
}

.tmdm-menu,
.tmdm-submenu {
    list-style: none;
    padding: 0;
}

.tmdm-menu {
    margin: 0;
}

.tmdm-submenu {
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    border-left-style: solid;
    border-left-color: #c90000;
    border-left-width: 4px;
    transition-property: max-height, opacity;
    transition-timing-function: ease;
}

.tmdm-menu-item {
    margin: 0;
    padding: 0;
}

.tmdm-link,
.tmdm-parent-row {
    min-height: 1px;
}

.tmdm-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: all .2s ease;
}

.tmdm-parent-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    width: 100%;
    transition: all .2s ease;
}

.tmdm-parent-row > .tmdm-link {
    justify-content: center;
}

.tmdm-widget .tmdm-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    border: 0;
    background: transparent !important;
    color: inherit !important;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    padding: 0;
}

.tmdm-widget .tmdm-submenu-toggle:hover,
.tmdm-widget .tmdm-submenu-toggle:focus,
.tmdm-widget .tmdm-submenu-toggle:active {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none;
    outline: none;
}

.tmdm-widget .tmdm-chevron {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 3px solid #c90000;
    border-bottom: 3px solid #c90000;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s ease, border-color .2s ease;
}

.tmdm-widget .tmdm-open > .tmdm-parent-row .tmdm-chevron {
    transform: rotate(225deg) translateY(-3px);
}

.tmdm-open > .tmdm-submenu {
    opacity: 1;
}

.tmdm-empty {
    padding: 20px;
    text-align: center;
    color: #c90000;
}

.tmdm-parent-item > .tmdm-link,
.tmdm-parent-row > .tmdm-link {
    padding: 20px 24px;
    color: #c90000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.tmdm-child-item > .tmdm-link,
.tmdm-child-item > .tmdm-parent-row > .tmdm-link {
    justify-content: flex-start;
    padding: 16px 22px 16px 28px;
    color: #c90000;
    font-weight: 700;
    text-transform: uppercase;
}

.tmdm-parent-item.tmdm-open > .tmdm-parent-row {
    background: #c90000;
}

.tmdm-parent-item.tmdm-open > .tmdm-parent-row > .tmdm-link {
    color: #fff;
}

@media (min-width: 768px) {
    .tmdm-widget.tmdm-mobile-only {
        display: none;
    }
}


@media (max-width: 390px) {
    .tmdm-topbar {
        grid-template-columns: minmax(84px, auto) 1fr 40px;
        gap: 8px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .tmdm-find-us {
        font-size: 11px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* v1.0.4 top bar cleanup */
.tmdm-topbar > * {
    min-width: 0;
}

.tmdm-topbar .tmdm-close {
    justify-self: end;
}

.tmdm-topbar.tmdm-no-find-us {
    grid-template-columns: 1fr auto 1fr;
}

.tmdm-topbar.tmdm-no-logo {
    grid-template-columns: 1fr auto;
}

.tmdm-topbar.tmdm-no-find-us.tmdm-no-logo {
    grid-template-columns: 1fr auto;
}

.tmdm-topbar.tmdm-no-find-us .tmdm-logo {
    grid-column: 2;
}

.tmdm-topbar.tmdm-no-find-us .tmdm-close {
    grid-column: 3;
}

.tmdm-topbar.tmdm-no-logo .tmdm-close {
    grid-column: 2;
}

.tmdm-topbar.tmdm-no-find-us.tmdm-no-logo .tmdm-close {
    grid-column: 2;
}

/* v1.0.5 true-center parent rows with submenu chevrons */
.tmdm-parent-row {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
}

.tmdm-parent-row > .tmdm-link {
    grid-column: 2;
    justify-content: center;
    text-align: center;
}

.tmdm-parent-row > .tmdm-submenu-toggle {
    grid-column: 3;
}


/* v1.0.6 trigger hover cleanup: stop Elementor/theme button hover colors from bleeding through */
.tmdm-widget button.tmdm-trigger,
.tmdm-widget button.tmdm-trigger:hover,
.tmdm-widget button.tmdm-trigger:focus,
.tmdm-widget button.tmdm-trigger:active {
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
}

.tmdm-widget button.tmdm-trigger::before,
.tmdm-widget button.tmdm-trigger::after {
    content: none !important;
    display: none !important;
}


/* v1.0.7 close button positioning cleanup */
.tmdm-topbar {
    padding-right: 86px;
}

.tmdm-topbar .tmdm-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    justify-self: auto;
    z-index: 3;
    margin: 0 !important;
    padding: 0 !important;
}

.tmdm-topbar.tmdm-no-find-us .tmdm-close,
.tmdm-topbar.tmdm-no-logo .tmdm-close,
.tmdm-topbar.tmdm-no-find-us.tmdm-no-logo .tmdm-close {
    grid-column: auto;
}

.tmdm-close {
    line-height: 1 !important;
}

@media (max-width: 390px) {
    .tmdm-topbar {
        padding-right: 74px;
    }
    .tmdm-topbar .tmdm-close {
        right: 20px;
    }
}


/* v1.0.9 topbar alignment cleanup: keep the close button in the right grid column instead of absolute positioning */
.tmdm-topbar {
    grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr) !important;
    align-items: center !important;
    padding-right: 24px !important;
}

.tmdm-topbar .tmdm-find-us,
.tmdm-topbar .tmdm-topbar-spacer:first-child {
    grid-column: 1;
    justify-self: start;
}

.tmdm-topbar .tmdm-logo {
    grid-column: 2;
    justify-self: center;
}

.tmdm-topbar .tmdm-close,
.tmdm-topbar .tmdm-topbar-spacer:last-child {
    grid-column: 3 !important;
    justify-self: end !important;
}

.tmdm-topbar .tmdm-close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.tmdm-topbar.tmdm-no-find-us {
    grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr) !important;
}

.tmdm-topbar.tmdm-no-find-us .tmdm-logo {
    grid-column: 2 !important;
}

.tmdm-topbar.tmdm-no-find-us .tmdm-close {
    grid-column: 3 !important;
}

@media (max-width: 390px) {
    .tmdm-topbar {
        grid-template-columns: minmax(82px, 1fr) auto minmax(82px, 1fr) !important;
        padding-right: 20px !important;
        padding-left: 20px !important;
    }
}


/* v1.1.0 submenu click safety: closed/hidden submenus cannot sit over visible links */
.tmdm-submenu {
    pointer-events: none !important;
    visibility: hidden;
}

.tmdm-open > .tmdm-submenu {
    pointer-events: auto !important;
    visibility: visible;
}

.tmdm-submenu .tmdm-link,
.tmdm-submenu .tmdm-parent-row {
    position: relative;
    z-index: 1;
}
