html.tmm-open,
html.tmm-open body {
    overflow: hidden;
    overscroll-behavior: none;
}

#top #tappy-mobile-menu {
    --tmm-line: #e9e9e9;
    --tmm-muted: #64676b;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 440px);
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #202124;
    font: 400 14px/1.45 system-ui, sans-serif;
    box-shadow: -12px 0 40px #17202b30;
}

#top #tappy-mobile-menu::backdrop { background: #17202b70; }
#tappy-mobile-menu *, #tappy-mobile-menu *::before, #tappy-mobile-menu *::after { box-sizing: border-box; }
#top #tappy-mobile-menu [hidden] { display: none !important; }

#top #tappy-mobile-menu .tmm-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: env(safe-area-inset-top, 0px) 20px 16px;
    border-bottom: 1px solid var(--tmm-line);
    background: #fff;
}

#top #tappy-mobile-menu .tmm-top {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#top #tmm-title { font-size: 21px; font-weight: 750; letter-spacing: -.5px; }
#top #tmm-title small { display: block; color: var(--tmm-muted); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
#top #tappy-mobile-menu form { margin: 0; }
#top #tappy-mobile-menu .tmm-close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f5f5;
    color: #202124;
    font: 400 26px/1 system-ui, sans-serif;
    cursor: pointer;
}

#top #tappy-mobile-menu .tmm-search { display: block; position: relative; margin: 0; }
#top #tappy-mobile-menu .tmm-search svg { position: absolute; top: 14px; left: 14px; color: var(--tmm-muted); pointer-events: none; }
#top #tappy-mobile-menu input[type="search"] {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 14px 0 42px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f5f5f5;
    color: #202124;
    font: inherit;
    font-size: 16px;
}

#top #tappy-mobile-menu .tmm-content { padding: 8px 20px max(24px, env(safe-area-inset-bottom)); }
#top #tappy-mobile-menu :is(a, summary, button, input):focus-visible { outline: 2px solid #286b5b; outline-offset: 2px; }
#top #tappy-mobile-menu a { color: inherit; text-decoration: none; }
#top #tappy-mobile-menu .section,
#top #tappy-mobile-menu .direct { border-bottom: 1px solid var(--tmm-line); }
#top #tappy-mobile-menu summary,
#top #tappy-mobile-menu .direct {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    list-style: none;
    cursor: pointer;
}

#top #tappy-mobile-menu summary::-webkit-details-marker { display: none; }
#top #tappy-mobile-menu .section > summary,
#top #tappy-mobile-menu .direct { min-height: 61px; font-size: 15px; font-weight: 700; letter-spacing: .03em; }
#top #tappy-mobile-menu .direct span { color: var(--tmm-muted); font-size: 20px; font-weight: 400; }
#top #tappy-mobile-menu .chevron {
    flex: 0 0 10px;
    height: 10px;
    margin: -4px 5px 0 0;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    transform: rotate(45deg);
}

#top #tappy-mobile-menu details[open] > summary .chevron { margin-top: 4px; transform: rotate(225deg); }
#top #tappy-mobile-menu .panel { padding-bottom: 15px; }
#top #tappy-mobile-menu .subsection + .subsection { border-top: 1px solid #f2f2f2; }
#top #tappy-mobile-menu .subsection > summary { padding-inline: 8px; font-weight: 650; }
#top #tappy-mobile-menu .subsection > .panel { padding-inline: 8px; }
#top #tappy-mobile-menu .featured,
#top #tappy-mobile-menu .regular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#top #tappy-mobile-menu .featured a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 47px;
    padding: 8px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fafafa;
    font-size: 12px;
    font-weight: 600;
}

#top #tappy-mobile-menu .dot { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #a1a1a1; }
#top #tappy-mobile-menu .regular a { display: flex; align-items: center; min-height: 44px; padding: 3px 4px; color: var(--tmm-muted); font-size: 13px; }
#top #tappy-mobile-menu .more { margin-top: 10px; border-top: 1px solid #eee; }
#top #tappy-mobile-menu .more > summary { font-size: 13px; font-weight: 700; }
#top #tappy-mobile-menu .all-link { display: inline-block; padding-block: 10px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
#top #tappy-mobile-menu .colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
#top #tappy-mobile-menu .color-link { text-align: center; font-size: 12px; }
#top #tappy-mobile-menu .swatch { display: block; width: 34px; height: 34px; margin: 0 auto 6px; border: 1px solid #dedede; border-radius: 50%; background: var(--swatch); }
#top #tappy-mobile-menu .tmm-empty { margin: 0; padding: 12px 20px 24px; color: var(--tmm-muted); text-align: center; }

#top #tappy-mobile-menu:not([open]) { display: none; }

/* Tappy's global details/summary rules also style the cookie policy. */
#top #tappy-mobile-menu details {
    margin: 0 !important;
    padding: 0;
    text-align: left;
    background: transparent;
    border-radius: 0;
}

#top #tappy-mobile-menu details > summary {
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #202124 !important;
    bottom: auto !important;
    text-align: left;
}

#top #tappy-mobile-menu .tmm-category + .tmm-category {
    border-top: 1px solid var(--tmm-line);
}

#top #tappy-mobile-menu .tmm-category > summary {
    min-height: 61px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
}

#top #tappy-mobile-menu .tmm-category > .panel { padding-inline: 0; }
#top #tappy-mobile-menu .tmm-category .subsection > summary { padding-inline: 8px; }

#top #tappy-mobile-menu .tmm-featured-label {
    margin: 7px 0 11px;
    color: var(--tmm-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}

#top #tappy-mobile-menu details.more { margin-top: 13px !important; }
#top #tappy-mobile-menu .more > summary .chevron { display: none; }
#top #tappy-mobile-menu .more > summary::after { content: "+"; font-size: 20px; font-weight: 400; }
#top #tappy-mobile-menu .more[open] > summary::after { content: "−"; }

#top #tappy-mobile-menu input[type="search"] { font-weight: 400; }
#top #tappy-mobile-menu input[type="search"]::placeholder { color: var(--tmm-muted); font-weight: 400; opacity: 1; }
