@charset "utf-8";

/* ASSET_ORIGIN의 LUCKY BOX 색상 시스템: 밝은 UI와 보라색 CTA. */
:root {
    --color-bg: #FBFCFE;
    --color-bg-soft: #F3F5FB;
    --color-lavender: #DCDCFD;
    --color-primary: #564FE6;
    --color-primary-dark: #4730AF;
    --color-violet: #9466DE;
    --color-pink: #E95C90;
    --color-gold: #FCE3A6;
    --color-gold-orange: #F2B067;
    --color-text: #10173C;
    --color-dark: #110E18;
    --color-text-secondary: #707586;
    --color-muted: #ACB1C0;
    --color-border: #E1E4E9;
    --color-success: #B0F0C8;
    --color-blue: #7B9BF3;
}
body:has(#header.luckybox-header), body:has(#header.luckybox-header) #contents_wrap {
    background: var(--color-bg);
    color: var(--color-text);
    color-scheme: light;
}
body:has(#header.luckybox-header) ::selection { background: var(--color-lavender); color: var(--color-text); }

#header.luckybox-header {
    --luckybox-mobile-height: 54px;
    position: fixed;
    inset: 0 0 auto;
    z-index: 300;
    width: 100%;
    padding: 0 !important;
    border: 0;
    border-bottom: 1px solid #E1E4E9;
    background: #FBFCFE;
    box-shadow: none;
    color: #10173C;
    font-family: Pretendard, "Malgun Gothic", Verdana, sans-serif;
}

#header.luckybox-header *,
#header.luckybox-header *::before,
#header.luckybox-header *::after {
    box-sizing: border-box;
}

.luckybox-skip {
    position: fixed;
    z-index: 1000;
    top: -60px;
    left: 15px;
    padding: 12px 18px;
    background: #10173C;
    color: #fff;
}
.luckybox-skip:focus { top: 12px; color: #fff; }

#header.luckybox-header .luckybox-header-inner {
    width: min(1200px, calc(100% - 60px));
    height: 100%;
    margin: 0 auto;
}

#header.luckybox-header a { color: #10173C; text-decoration: none; }
#header.luckybox-header a:hover { color: #10173C; }
#header.luckybox-header button { cursor: pointer; }
#header.luckybox-header svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
#header.luckybox-header [hidden] { display: none !important; }

#header.luckybox-header .luckybox-mainbar { height: 100px; }
#header.luckybox-header .luckybox-mainbar-inner {
    display: flex;
    align-items: center;
    gap: 44px;
}
#header.luckybox-header .luckybox-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: #10173C;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -.055em;
}
#header.luckybox-header .luckybox-logo .luckybox-brand-mark {
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    object-fit: contain;
}
#header.luckybox-header .luckybox-search {
    display: flex;
    align-items: center;
    height: 48px;
    margin: 0;
    border: 1px solid #C7CADA;
    border-radius: 40px;
    background: #F3F5FB;
    overflow: hidden;
}
#header.luckybox-header .luckybox-desktop-search {
    width: min(410px, 36vw);
    flex: 0 1 410px;
}
#header.luckybox-header .luckybox-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 20px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #10173C;
    font: 14px Pretendard, "Malgun Gothic", sans-serif;
}
#header.luckybox-header .luckybox-search input::placeholder { color: #707586; }
#header.luckybox-header .luckybox-search button {
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #10173C;
}
#header.luckybox-header .luckybox-search button:hover,
#header.luckybox-header .luckybox-icon-button:hover { color: #564FE6; }
#header.luckybox-header .luckybox-header-actions {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}
#header.luckybox-header .luckybox-account-links {
    display: flex;
    align-items: center;
    gap: 17px;
    white-space: nowrap;
}
#header.luckybox-header .luckybox-account-links a {
    font-size: 12px;
    font-weight: 500;
}
#header.luckybox-header .luckybox-icon-button {
    display: inline-grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #10173C;
}
#header.luckybox-header .luckybox-menu-button,
#header.luckybox-header .luckybox-search-button,
#header.luckybox-header .luckybox-mobile-subnav { display: none; }

#header.luckybox-header .luckybox-desktop-nav {
    height: 72px;
    border-top: 1px solid #E1E4E9;
    background: #fff;
}
#header.luckybox-header .luckybox-nav-inner {
    display: flex;
    align-items: stretch;
    gap: clamp(24px, 3.2vw, 52px);
    overflow-x: auto;
    scrollbar-width: none;
}
#header.luckybox-header .luckybox-nav-inner::-webkit-scrollbar { display: none; }
#header.luckybox-header .luckybox-nav-inner > a,
#header.luckybox-header .luckybox-nav-category > a {
    display: inline-flex;
    align-items: center;
    height: 72px;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}
#header.luckybox-header .luckybox-nav-inner > a:hover,
#header.luckybox-header .luckybox-nav-category:hover > a,
#header.luckybox-header .luckybox-nav-category:focus-within > a { border-bottom: 2px solid #10173C; }
#header.luckybox-header .luckybox-nav-category { flex: 0 0 auto; }

#header.luckybox-header .luckybox-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    #header.luckybox-has-subnav ~ #contents_wrap #container_title {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    #header.luckybox-header.luckybox-has-subnav { --luckybox-mobile-height: 96px; }
    #header.luckybox-header .luckybox-header-inner { width: calc(100% - 30px); }
    #header.luckybox-header .luckybox-mainbar { height: 54px; }
    #header.luckybox-header .luckybox-mainbar-inner { position: relative; justify-content: space-between; gap: 0; }
    #header.luckybox-header .luckybox-logo {
        position: absolute;
        left: 50%;
        max-width: 48%;
        gap: 5px;
        transform: translateX(-50%);
        font-size: 19px;
    }
    #header.luckybox-header .luckybox-logo .luckybox-brand-mark { flex-basis: 32px; width: 32px; height: 32px; }
    #header.luckybox-header .luckybox-menu-button,
    #header.luckybox-header .luckybox-search-button { display: inline-grid; }
    #header.luckybox-header .luckybox-header-actions { flex: 0 0 auto; gap: 10px; }
    #header.luckybox-header .luckybox-account-links,
    #header.luckybox-header .luckybox-my-button,
    #header.luckybox-header .luckybox-desktop-search,
    #header.luckybox-header .luckybox-desktop-nav { display: none; }
    #header.luckybox-header .luckybox-icon-button { width: 28px; flex-basis: 28px; }
    #header.luckybox-header svg { width: 23px; height: 23px; }
    #header.luckybox-header .luckybox-mobile-subnav {
        display: grid;
        grid-template-columns: 42px 1fr 42px;
        align-items: center;
        height: 42px;
        padding: 0 15px;
        border-top: 1px solid #E1E4E9;
        background: #fff;
    }
    #header.luckybox-header .luckybox-mobile-subnav strong {
        overflow: hidden;
        color: #10173C;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #header.luckybox-header .luckybox-back-button {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #10173C;
        text-align: left;
    }
    #header.luckybox-header .luckybox-search-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 14px 15px;
        border-top: 1px solid #E1E4E9;
        background: #fff;
        box-shadow: 0 12px 22px rgb(0 0 0 / 9%);
    }
    #header.luckybox-header .luckybox-search-panel .luckybox-search { width: 100%; }
    #header.luckybox-header .luckybox-drawer-backdrop {
        position: fixed;
        z-index: 301;
        inset: var(--luckybox-mobile-height) 0 0;
        width: 100%;
        border: 0;
        background: rgb(18 18 18 / 45%);
    }
    #header.luckybox-header .luckybox-mobile-drawer {
        position: fixed;
        z-index: 302;
        top: var(--luckybox-mobile-height);
        bottom: 0;
        left: 0;
        width: min(340px, 86vw);
        padding: 18px 20px 40px;
        overflow-y: auto;
        background: #fff;
        box-shadow: 10px 0 25px rgb(0 0 0 / 12%);
    }
    #header.luckybox-header .luckybox-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    #header.luckybox-header .luckybox-drawer-top strong { font-size: 20px; font-weight: 600; }
    #header.luckybox-header .luckybox-drawer-close { border: 0; background: transparent; color: #10173C; font-size: 28px; line-height: 1; }
    #header.luckybox-header .luckybox-mobile-drawer > a { display: block; padding: 14px 0; border-bottom: 1px solid #E1E4E9; font-size: 15px; font-weight: 500; }
    #header.luckybox-header .luckybox-drawer-divider { height: 20px; }
}
