/* 모바일 내부 스크롤 컨테이너. */
.pb-page-scroll {
    min-height: 100%;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.pb-theme {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .pb-page-scroll {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: none;
        overscroll-behavior-y: contain;
        scroll-behavior: auto;
        scroll-padding-top: 72px;
        scrollbar-width: none;
        scrollbar-color: transparent transparent;
        -ms-overflow-style: none;
        touch-action: pan-y pinch-zoom;
    }

    .pb-page-scroll::-webkit-scrollbar,
    .pb-page-scroll *::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
        background: transparent;
    }

    .pb-page-scroll::-webkit-scrollbar-track,
    .pb-page-scroll::-webkit-scrollbar-thumb,
    .pb-page-scroll::-webkit-scrollbar-corner,
    .pb-page-scroll *::-webkit-scrollbar-track,
    .pb-page-scroll *::-webkit-scrollbar-thumb,
    .pb-page-scroll *::-webkit-scrollbar-corner {
        border: 0;
        background: transparent;
    }

    /* 운영 알림 바와 헤더 연속 고정. */
    body.pb-notice-bar-is-fixed {
        padding-top: 0;
    }

    body.pb-notice-bar-is-fixed .pb-page-scroll {
        padding-top: 0;
    }

    .pb-page-scroll > .pb-notice-bar.pb-notice-bar-fixed {
        position: sticky;
        top: 0;
        right: auto;
        left: auto;
        z-index: 120;
        width: 100%;
    }

    body.pb-notice-bar-is-fixed .pb-header,
    body.pb-notice-bar-is-fixed .pb-header-sticky {
        top: var(--pb-notice-bar-height, 42px);
    }

    body:not(.pb-notice-bar-is-fixed) .pb-header,
    body:not(.pb-notice-bar-is-fixed) .pb-header-sticky {
        top: 0;
    }

    /* 모바일 하단 메뉴 여백. */
    body.pb-mobile-bottom-nav-on {
        padding-bottom: 0;
    }

    body.pb-mobile-bottom-nav-on .pb-page-scroll {
        padding-bottom: calc(58px + env(safe-area-inset-bottom));
    }

    /* 모바일 메뉴 열림 상태. */
    body.pb-menu-open .pb-page-scroll {
        overflow: hidden;
        touch-action: none;
    }
}

/* 모바일 당겨서 새로고침. */
.pb-pull-refresh {
    position: fixed;
    z-index: 1400;
    top: max(10px, env(safe-area-inset-top));
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
    transform: translate(-50%, -14px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.pb-pull-refresh.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.pb-pull-refresh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 16px;
    transition: transform .18s ease;
}

.pb-pull-refresh.is-ready .pb-pull-refresh-icon {
    transform: rotate(180deg);
}

.pb-pull-refresh.is-refreshing .pb-pull-refresh-icon {
    animation: pbPullRefreshSpin .7s linear infinite;
}

@keyframes pbPullRefreshSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .pb-page-scroll {
        transform: translate3d(0, 0, 0);
        transform-origin: top center;
        transition: transform .22s ease;
        will-change: transform;
    }

    .pb-page-scroll.is-pull-active {
        transition: none;
        transform: translate3d(0, var(--pb-pull-distance, 0), 0);
    }

    .pb-page-scroll.is-pull-reset {
        transition: transform .22s ease;
    }
}

@media (min-width: 1025px) and (hover: hover) {
    .pb-pull-refresh {
        display: none;
    }
}

