html body:has(> .shell-shop-footer) {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
html body:has(> .shell-shop-footer) > main {
    flex: 1 0 auto;
    margin-block: 0;
}
html body footer.shop-footer.shell-shop-footer {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--shop-line);
    background: var(--shop-surface);
    color: var(--shop-text);
}
.shell-shop-footer > .shop-footer-inner {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(12rem, .84fr) minmax(22.5rem, 1.5fr) minmax(13rem, .85fr);
    grid-template-areas: "brand categories service" "divider divider divider" "copyright copyright tools";
    column-gap: clamp(24px, 3.5vw, 64px);
    row-gap: 0;
    width: 100%;
    max-width: 1360px;
    margin-inline: auto;
    padding: clamp(24px, 3vw, 40px) 28px max(8px, env(safe-area-inset-bottom, 0px));
    align-items: start;
}
.shell-shop-footer .shop-footer-brand { grid-area: brand; }
.shell-shop-footer .shop-footer-brand .shop-logo {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 1.48rem;
    letter-spacing: -.045em;
    color: var(--shop-text);
    text-decoration: none;
}
.shell-shop-footer .shop-footer-brand p,
.shell-shop-footer .shop-footer-service p {
    margin: .25rem 0 0;
    color: var(--shop-muted);
    font-size: .84rem;
    line-height: 1.5;
}
.shell-shop-footer .shop-footer-brand p { max-width: 26ch; }
.shell-shop-footer .shop-footer-categories { grid-area: categories; }
.shell-shop-footer .shop-footer-service { grid-area: service; }
.shell-shop-footer .shop-footer-section > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    padding: 0 4px;
    border-radius: 5px;
    color: var(--shop-text);
    list-style: none;
    cursor: pointer;
}
.shell-shop-footer .shop-footer-section > summary::-webkit-details-marker { display: none; }
.shell-shop-footer .shop-footer-section > summary::after {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin: 0 6px 3px 16px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.shell-shop-footer .shop-footer-section[open] > summary::after {
    transform: translateY(3px) rotate(225deg);
}
.shell-shop-footer .shop-footer-section h2 {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.2;
}
.shell-shop-footer .shop-footer-section > ul {
    display: grid;
    gap: 0 12px;
    margin: .15rem 0 0;
    padding: 0;
    list-style: none;
}
.shell-shop-footer .shop-footer-categories > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
html body .shell-shop-footer .shop-footer-section li > a {
    box-sizing: border-box;
    display: flex;
    width: fit-content;
    align-items: center;
    min-height: 31px;
    margin: 0;
    padding: 4px;
    color: var(--shop-text);
    background: transparent;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-size: .86rem;
    font-weight: 475;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none !important;
}
html body .shell-shop-footer .shop-footer-section :is(a,summary):is(:hover,:focus-visible) { background: var(--shop-panel); }
html body .shell-shop-footer :is(a,summary):focus-visible { outline: 2px solid var(--shop-accent); outline-offset: 2px; }
.shell-shop-footer .shop-footer-service p { padding-inline-start: 4px; }
.shell-shop-footer .shop-footer-inner::after {
    content: "";
    grid-area: divider;
    margin-block: clamp(16px, 2vw, 26px) 6px;
    border-top: 1px solid var(--shop-line);
}
.shell-shop-footer .shop-footer-inner > .shop-footer-copyright {
    grid-area: copyright;
    align-self: center;
    margin: 0;
    color: var(--shop-muted);
    font-size: .76rem;
    line-height: 1.3;
}
.shell-shop-footer .shop-footer-inner > .shell-footer-tools {
    grid-area: tools;
    justify-self: end;
    align-self: center;
}
@media (max-width: 980px) and (min-width: 701px) {
    .shell-shop-footer > .shop-footer-inner {
        grid-template-columns: minmax(0,.72fr) minmax(0,1.35fr) minmax(0,1fr);
        column-gap: 18px;
    }
}
@media (max-width: 700px) {
    .shell-shop-footer > .shop-footer-inner { padding-inline: 16px; }
}
@media (max-width: 700px) {
    .shell-shop-footer > .shop-footer-inner {
        grid-template-columns: minmax(0,1fr) auto;
        grid-template-areas: "brand brand" "categories categories" "service service" "divider divider" "copyright tools";
        padding-block-start: 16px;
    }
    .shell-shop-footer .shop-footer-brand { padding-bottom: 12px; }
    .shell-shop-footer .shop-footer-brand .shop-logo { min-height: 44px; }
    .shell-shop-footer .shop-footer-brand p { max-width: none; margin-top: 0; }
    .shell-shop-footer .shop-footer-section { border-top: 1px solid var(--shop-line); }
    .shell-shop-footer .shop-footer-section > summary { min-height: 48px; padding: 0; }
    .shell-shop-footer .shop-footer-section > ul { margin: 0 0 6px; }
    html body .shell-shop-footer .shop-footer-section li > a { width: 100%; min-height: 44px; }
    .shell-shop-footer .shop-footer-service p { margin: 0 0 .7rem; }
    .shell-shop-footer .shop-footer-inner::after { margin-block: 0 4px; }
}
@media (max-width: 350px) {
    .shell-shop-footer .shop-footer-categories > ul { grid-template-columns: minmax(0,1fr); }
}

html body .shop-header .shop-profile-menu {
    position: relative;
    align-self: center;
    margin: 0;
}
html body .shop-header .shop-profile-menu[open] > .account-panel {
    position: absolute;
    z-index: 60;
    inset: auto 0 auto auto;
    top: calc(100% + .45rem);
    display: grid !important;
    gap: 2px;
    box-sizing: border-box;
    inline-size: max-content;
    min-inline-size: 12rem;
    max-inline-size: min(21rem, calc(100vw - 1.5rem));
    max-block-size: min(75vh, 32rem);
    max-block-size: min(75dvh, 32rem);
    overflow: auto;
    overscroll-behavior: contain;
    padding: .45rem;
    background: var(--shop-surface);
    color: var(--shop-text);
    border: 1px solid var(--shop-line);
    border-radius: .85rem;
    box-shadow: 0 .8rem 2.25rem rgb(15 27 23 / 14%);
    text-align: start;
}
html body .shop-profile-menu > .account-panel form {margin: 0; padding: 0;}
html body .shop-header .shop-profile-menu .account-panel :is(a,button) {
    display: flex !important;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    padding: .45rem .72rem;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    color: var(--shop-text);
    font: 500 .94rem/1.4 Roboto, sans-serif;
    letter-spacing: normal;
    text-align: start;
    text-decoration: none !important;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
}
html body .shop-header .shop-profile-menu .account-panel :is(a,button):is(:hover,:focus-visible) {
    background: var(--shop-panel);
    color: var(--shop-text);
}
html body .shop-header .shop-profile-menu .account-panel :is(a,button):focus-visible {
    outline: 2px solid var(--shop-accent);
    outline-offset: -2px;
}
@media (max-width: 700px) {
    html body .shop-header .shop-profile-menu {position: static;}
    html body .shop-header .shop-profile-menu[open] > .account-panel {
        top: calc(100% + .25rem);
        inset-inline-end: max(.75rem, env(safe-area-inset-right));
    }
    html body .shop-header .shop-profile-menu .account-panel :is(a,button) {min-height: 44px;}
}
