/* PC·모바일 공통 마이페이지 메뉴의 로그인 회원 이름. */
.bojagiAccountMenuIdentity {
    margin: 0 0 var(--bj-space-1);
    padding: var(--bj-space-2);
    border-bottom: 1px solid var(--bj-line);
    color: var(--bj-ink);
    font-family: var(--bj-font-family);
    font-size: var(--bj-type-body);
    font-weight: var(--bj-type-action-weight);
    line-height: var(--bj-type-body-line);
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}
.bojagiAccountMenuIdentity[hidden] { display: none; }

.bojagiMobileTaskHeader {
    --bojagi-task-header-ink: var(--bj-ink, #181817);
    box-sizing: border-box;
    width: 100%;
    height: 62px;
    display: none;
    grid-template-columns: 44px minmax(0, 1fr) 88px;
    align-items: center;
    position: relative;
    padding: 0 4px 0 2px;
    color: var(--bojagi-task-header-ink);
    font-family: var(--bj-font-family, 'Pretendard', sans-serif);
}
.mobileHeaderSurface--shared-task,
.mobileHeaderSurface--shared-task .header#main_header,
.window .mobileHeaderSurface--shared-task .header#main_header {
    height: 62px;
}
.mobileHeaderSurface--shared-task .bojagiMobileTaskHeader--mobile {
    display: grid;
}
.bojagiMobileTaskHeader__back,
.bojagiMobileTaskHeader__account,
.bojagiMobileTaskHeader__cart,
.bojagiMobileTaskHeader__cart .unifiedCartEntry {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--bojagi-task-header-ink) !important;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}
.bojagiMobileTaskHeader__back:focus-visible,
.bojagiMobileTaskHeader__account:focus-visible,
.bojagiMobileTaskHeader__cart .unifiedCartEntry:focus-visible {
    background: var(--bj-nav-hover-surface, #f3f1f0);
    outline: 2px solid var(--bj-nav-focus-ring, #cdc6c2);
    outline-offset: -4px;
}
.bojagiMobileTaskHeader__icon {
    width: 22px;
    height: 22px;
    display: block;
    color: currentColor;
    pointer-events: none;
}
.bojagiMobileTaskHeader__back .bojagiMobileTaskHeader__icon {
    width: 24px;
    height: 24px;
}
.bojagiMobileTaskHeader__title {
    width: auto;
    max-width: calc(100% - 176px);
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
    color: var(--bojagi-task-header-ink);
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -.02em;
    text-align: center;
    text-overflow: ellipsis;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}
.bojagiMobileTaskHeader__actions {
    grid-column: 3;
    display: flex;
    align-items: center;
}
.bojagiMobileTaskHeader__account {
    position: relative;
}
.bojagiMobileTaskHeader__account.is-authenticated::after {
    width: 5px;
    height: 5px;
    position: absolute;
    right: 7px;
    bottom: 8px;
    border-radius: 50%;
    background: var(--bj-accent, #914552);
    content: '';
}
.bojagiMobileTaskHeader__cart .unifiedCartEntry svg,
.bojagiMobileTaskHeader__cart .unifiedCartEntry svg path {
    color: currentColor !important;
    stroke: currentColor !important;
}
.bojagiMobileTaskHeader__cart .unifiedCartEntry-badge {
    top: 2px !important;
    right: 1px !important;
    color: var(--bj-on-accent, #fff) !important;
    background: var(--bj-accent, #914552) !important;
}
.bojagiMobileTaskHeader__popover {
    box-sizing: border-box;
    width: min(220px, calc(100vw - 32px));
    display: none;
    position: fixed;
    top: 70px;
    right: 8px;
    z-index: 140;
    padding: 6px;
    border: 1px solid var(--bj-line, #e4dfdc);
    border-radius: 10px;
    color: var(--bj-text, #252525);
    background: var(--bj-surface, #fff);
    box-shadow: 0 12px 28px rgba(25, 39, 49, .12), 0 2px 8px rgba(25, 39, 49, .05);
}
.bojagiMobileTaskHeader__popover.is-open {
    display: block;
}
.bojagiMobileTaskHeader__menuList {
    display: grid;
    gap: 2px;
}
.bojagiMobileTaskHeader__menuItem,
.bojagiMobileTaskHeader__menuFooter a {
    box-sizing: border-box;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--bojagi-task-header-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
}
.bojagiMobileTaskHeader__menuItem:hover,
.bojagiMobileTaskHeader__menuItem:focus-visible {
    color: var(--bojagi-task-header-ink);
    background: var(--bj-nav-hover-surface, #f3f1f0);
    outline: none;
}
.bojagiMobileTaskHeader__menuIconBox {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--bj-secondary, #625e5a);
    background: var(--bj-product-stage, #f5f3f1);
}
.bojagiMobileTaskHeader__menuIcon {
    width: 17px;
    height: 17px;
    display: block;
}
.bojagiMobileTaskHeader__menuFooter {
    margin-top: 4px;
    padding-top: 5px;
    border-top: 1px solid var(--bj-line, #e4dfdc);
}
.bojagiMobileTaskHeader__menuFooter a {
    min-height: 44px;
    color: var(--bj-accent, #914552);
}
.bojagiMobileTaskHeader__menuIconBox--logout {
    color: var(--bj-accent, #914552);
    background: #fbf4f5;
}
.bojagiMobileTaskHeader__menuFooter a:hover,
.bojagiMobileTaskHeader__menuFooter a:focus-visible {
    color: var(--bj-accent, #914552);
    background: #fbf4f5;
    outline: none;
}
@media (max-width: 768px) {
    #menu_r1[data-mobile-task-header-enabled="1"] > .bojagiMobileTaskHeader--responsive {
        display: grid;
    }
    #menu_r1[data-mobile-task-header-enabled="1"] > .top_r1_block_wrapper {
        display: none !important;
    }
}

/* 관리자가 회원으로 로그인해 고객 화면을 볼 때의 회원 신원(common/header_admin_member_identity.php).
   헤더 줄 칸·아이콘을 바꾸지 않도록 높이 0 띠로 헤더 아래에 매단다 — 손님 헤더와 배치가 같다. */
.bojagiAdminMemberStrip {
    position: relative;
    z-index: 5;
    height: 0;
    pointer-events: none;
}
#main_header > .bojagiAdminMemberStrip,
.top_r1_block_wrapper > .bojagiAdminMemberStrip {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
}
.bojagiAdminMemberStrip__label {
    box-sizing: border-box;
    max-width: calc(100% - 16px);
    position: absolute;
    top: 2px;
    right: 8px;
    overflow: hidden;
    padding: 0 6px;
    border-radius: 3px;
    color: var(--bj-accent, #914552);
    background: var(--bj-header-surface, #fdfdfc);
    font-family: var(--bj-font-family, 'Pretendard', sans-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* PC 헤더는 아래 줄이 메뉴라 매달면 메뉴 글자와 겹친다 — 윗줄 빈자리(빠른 메뉴 왼쪽)에 둔다. 왼쪽 auto 여백이라 빠른 메뉴 자리는 그대로다. */
@media (min-width: 768px) {
    .top_r1_block_wrapper > .bojagiAdminMemberStrip {
        height: auto;
        position: static;
        align-self: center;
        margin: 0 16px 0 auto;
    }
    .top_r1_block_wrapper > .bojagiAdminMemberStrip .bojagiAdminMemberStrip__label {
        max-width: 240px;
        display: block;
        position: static;
    }
}
