.mh-gototop {
    position: fixed;
    right: calc(var(--mh-gototop-right, 10px) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--mh-gototop-bottom, 10px) + env(safe-area-inset-bottom, 0px));
    z-index: 35;
    box-sizing: border-box;
    width: var(--mh-gototop-size, 40px);
    height: var(--mh-gototop-size, 40px);
    min-width: 0;
    max-width: calc(100vw - 16px);
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: var(--mh-gototop-bg, #d85f93);
    color: var(--mh-gototop-text, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--mh-gototop-size, 40px) * 0.5);
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(52, 37, 44, 0.16);
}

.mh-gototop[hidden] {
    display: none !important;
}

.mh-gototop:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mh-gototop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

html.mh-age-pending .mh-gototop {
    display: none !important;
}

@media (max-width: 782px) {
    .mh-gototop--no-mobile {
        display: none !important;
    }
}

@media (min-width: 783px) {
    .mh-gototop--no-desktop {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-gototop {
        transition: none;
    }
}
