@charset "utf-8";

#header_wrap.kihya-shop-header,
.kihya-shop-header + #sub_header_wrap {
    --kh-shop-header-end: 12px;
    --kh-shop-search-bg: #f5f6f7;
    --kh-shop-search-border: #edeef0;
}

#header_wrap.kihya-shop-header {
    min-width: 320px;
}

.kihya-shop-header #kihya-header {
    --kh-shop-pickup-max: min(144px, 36%);
    --kh-shop-header-controls: fit-content(var(--kh-shop-pickup-max)) minmax(76px, 1fr) 44px;
    display: grid;
    grid-template-columns: 52px var(--kh-shop-header-controls);
    align-items: center;
    gap: 5px;
    max-width: 100vw;
    padding: 5px var(--kh-shop-header-end) 5px 16px !important;
}

.kihya-shop-header-simple #kihya-header {
    --kh-shop-header-controls: minmax(0, 1fr) 44px;
}

.kihya-shop-header #kihya-header #kihya-header-logo {
    display: flex;
    align-items: center;
    height: auto;
}

html.kihya-shop-header-app .kihya-shop-header #kihya-header {
    grid-template-columns: var(--kh-shop-header-controls);
}

html.kihya-shop-header-app .kihya-shop-header #kihya-header #kihya-header-logo {
    display: none;
}

.kihya-shop-header #kihya-header-logo a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.kihya-shop-header #kihya-header #kihya-header-pickupStore {
    min-width: 0;
    padding-left: 0;
}

.kihya-shop-header:not(.kihya-shop-header-simple) #kihya-header #kihya-header-pickupStore {
    min-width: 58px;
}

.kihya-shop-header.is-pickup-unselected:not(.kihya-shop-header-simple) #kihya-header #kihya-header-pickupStore {
    min-width: 111px;
}

.kihya-shop-header #kihya-header-pickupStore button {
    width: 100%;
    min-height: 44px;
    padding: 0 !important;
    color: #24262b !important;
    background: transparent !important;
    box-shadow: none;
    text-align: left;
}

/* WebKit needs the pin and label widths when sizing the pickup grid column. */
.kihya-shop-header:not(.kihya-shop-header-simple) #kihya-header-pickupStore button {
    width: auto;
    max-width: 100%;
}

.kihya-shop-header #kihya-header-pickupStore button:focus-visible,
.kihya-shop-header .kh-shop-search:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 1px;
}

.kihya-shop-header #kihya-header-pickupStore .bi-geo-alt-fill {
    display: grid !important;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    font-size: 13px;
}

.kihya-shop-header #kihya-header-pickupStore .bi-chevron-right {
    display: none !important;
}

.kihya-shop-header #pickupStoreName {
    display: block !important;
    flex: 1;
    min-width: 0;
    max-width: none !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 18px;
}

.kihya-shop-header:not(.kihya-shop-header-simple) #pickupStoreName {
    flex-basis: auto;
}

.kihya-shop-header .kh-shop-search {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    border-radius: 10px;
    color: #555;
    text-decoration: none;
}

.kihya-shop-header .kh-shop-search__box,
.kihya-shop-header + #sub_header_wrap .icon_search .bi {
    border: 1px solid var(--kh-shop-search-border);
    background: var(--kh-shop-search-bg);
    color: #555;
}

.kihya-shop-header .kh-shop-search__box {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: 36px;
    padding: 1px 7px;
    border-radius: 10px;
}

.kihya-shop-header .kh-shop-search__window {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 32px;
    overflow: hidden;
}

.kihya-shop-header .kh-shop-search__text {
    position: absolute;
    inset: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 32px;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.kihya-shop-header .kh-shop-search__text.is-current {
    transform: translateY(0);
}

.kihya-shop-header .kh-shop-search__text.is-leaving {
    transform: translateY(-100%);
}

.kihya-shop-header .kh-shop-search__text.is-resetting {
    transition: none;
}

.kihya-shop-header .kh-shop-search .bi {
    flex: none;
    font-size: 14px;
    line-height: 1;
}

.kihya-shop-header #kihya-header #kihya-header-rightMenu {
    display: flex;
    width: auto;
}

.kihya-shop-header #kihya-header #kihya-header-rightMenu .cart,
.kihya-shop-header + #sub_header_wrap .nav_right > a {
    width: 44px;
    height: 44px;
    transform: none;
}

.kihya-shop-header #kihya-header #kihya-header-rightMenu .cart {
    position: relative;
    margin-left: 0 !important;
}

.kihya-shop-header #kihya-header #kihya-header-rightMenu .cart .count,
.kihya-shop-header + #sub_header_wrap .icon_cart .cart_count {
    top: 0;
    right: auto;
    left: calc(50% + 4px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 1px solid #fff;
    background: #171717;
    font-size: 10px;
    transform: none;
}

.kihya-shop-header + #sub_header_wrap {
    height: auto;
    padding: calc(5px + max(0px, env(safe-area-inset-top, 0px) - 12px)) var(--kh-shop-header-end) 5px 0;
}

.kihya-shop-header + #sub_header_wrap h2 {
    max-width: calc(100% - 220px);
}

.kihya-shop-header + #sub_header_wrap .nav_left .all_page_prev {
    display: grid;
    width: 40px;
    height: 44px;
    place-items: center;
    padding: 0;
    background: none;
    color: #495057;
    font-size: 16px;
    line-height: 1;
}

.kihya-shop-header + #sub_header_wrap .nav_right {
    gap: 0;
}

.kihya-shop-header + #sub_header_wrap .icon_search {
    justify-content: flex-end;
}

.kihya-shop-header + #sub_header_wrap .icon_search .bi {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    font-size: 16px;
}

.kihya-shop-header #kihya-category-main ul li a {
    margin-right: 6px;
}

.kh-shop-category-row {
    display: flex;
}

.kh-shop-category-row #kihya-category-main {
    flex: 1;
    min-width: 0;
}

.kh-shop-category-all {
    position: relative;
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: #fff;
    color: #343a40;
    font-size: 17px;
    line-height: 1;
}

.kh-shop-category-all::before {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 1px;
    background: linear-gradient(to bottom, #fff, var(--kh-shop-search-border));
    content: '';
    pointer-events: none;
}

.kh-shop-category-all[hidden] {
    display: none;
}

.kh-shop-category-all:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -3px;
}

.kh-shop-category-modal {
    --bs-modal-width: 580px;
    --bs-modal-border-radius: 18px;
    --bs-modal-border-width: 0;
    --kh-shop-category-accent: #ab3e55;
    --kh-shop-category-line: #edf0f3;
}

body.kh-shop-category-above-toolbar > .kh-shop-category-modal {
    padding-bottom: var(--kh-shop-category-bottom, 0px);
}

html.kihya-native-tabbar-v1 body.kh-shop-category-above-toolbar > .kh-shop-category-main-toolbar {
    padding-bottom: max(96px, calc(72px + env(safe-area-inset-bottom, 0px)), var(--kh-shop-category-bottom, 0px));
}

body > .kh-shop-category-modal.show ~ .modal-backdrop {
    --bs-backdrop-bg: #111827;
    --bs-backdrop-opacity: 0.42;
    inset: 0;
    height: auto;
    backdrop-filter: blur(1px);
}

html.kihya-native-tabbar-v1 body > .kh-shop-category-modal.show ~ .modal-backdrop {
    --bs-backdrop-bg: rgba(17, 24, 39, 0.42);
    --bs-backdrop-opacity: 1;
    backdrop-filter: none;
}

.kh-shop-category-modal .modal-content {
    max-height: min(100%, 640px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

html.kihya-native-tabbar-v1 .kh-shop-category-modal .modal-content {
    box-shadow: none;
}

.kh-shop-category-modal .modal-header {
    min-height: 62px;
    padding: 10px 18px;
    gap: 12px;
    border-color: #f2e5e7;
    background: #fff5f7;
}

.kh-shop-category-modal .kh-shop-category-title {
    min-width: 0;
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
}

.kh-shop-category-modal .btn-close {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0 -4px 0 auto;
    padding: 0;
    border-radius: 11px;
    background-color: #ffebf0;
    background-size: 13px;
    opacity: 0.8;
}

.kh-shop-category-modal .modal-body {
    padding: 14px;
    overscroll-behavior: contain;
    background: #fafbfc;
}

.kh-shop-category-groups {
    --kh-shop-category-row-height: 44px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
}

.kh-shop-category-groups > section {
    min-width: 0;
    padding: 6px 11px;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    background: #fff;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.kh-shop-category-groups > section > h3 {
    display: flex;
    height: var(--kh-shop-category-row-height);
    align-items: center;
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 18px;
}

.kh-shop-category-groups > section > h3 > a {
    display: -webkit-box;
    min-width: 0;
    max-height: var(--kh-shop-category-row-height);
    padding-block: 4px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.kh-shop-category-groups > section > h3 img {
    max-width: 100%;
    max-height: 36px;
}

.kh-shop-category-branch-row {
    display: flex;
}

.kh-shop-category-branch-row > a {
    min-width: 0;
    align-self: center;
}

.kh-shop-category-branch-toggle {
    display: flex;
    flex: 1 0 32px;
    min-height: var(--kh-shop-category-row-height);
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
}

.kh-shop-category-branch-toggle-label {
    min-width: 0;
    justify-content: space-between;
    padding-inline-start: 0;
}

.kh-shop-category-branch-toggle::after {
    flex: 0 0 7px;
    height: 7px;
    margin-inline: 5px;
    border: solid #67727f;
    border-width: 0 1.5px 1.5px 0;
    content: '';
    transform: rotate(45deg) translateY(-2px);
}

.kh-shop-category-branch-toggle[aria-expanded='true']::after {
    transform: rotate(225deg) translateY(-2px);
}

.kh-shop-category-branch-toggle:focus-visible {
    outline: 2px solid var(--kh-shop-category-accent);
    outline-offset: -2px;
}

.kh-shop-category-groups ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kh-shop-category-groups h3 + ul {
    padding-block-start: 3px;
    padding-inline-start: 5px;
    border-block-start: 1px solid var(--kh-shop-category-line);
}

.kh-shop-category-groups ul ul {
    padding-inline-start: 7px;
    border-inline-start: 1px solid var(--kh-shop-category-line);
}

.kh-shop-category-modal a,
.kh-shop-category-groups li > span {
    display: block;
    padding: 6px 0;
    color: inherit;
    font-size: inherit;
    text-decoration: none;
}

.kh-shop-category-groups li {
    color: #4b5563;
    font-size: 13px;
}

.kh-shop-category-groups li > :is(a, span),
.kh-shop-category-groups li > .kh-shop-category-branch-row > :is(a, .kh-shop-category-branch-toggle-label) {
    position: relative;
    padding-inline-start: 10px;
}

.kh-shop-category-groups li > :is(a, span)::before,
.kh-shop-category-groups li > .kh-shop-category-branch-row > :is(a, .kh-shop-category-branch-toggle-label)::before {
    position: absolute;
    top: calc(6px + 0.65em);
    inset-inline-start: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #868e96;
    content: '';
}

.kh-shop-category-modal a:hover,
.kh-shop-category-modal a:focus-visible {
    color: var(--kh-shop-category-accent);
}

@media (max-width: 575.98px) {
    .kh-shop-category-modal .modal-dialog {
        align-items: flex-end;
        margin-inline: 10px;
    }
}

@media (min-width: 992px) {
    body[data-kh-desktop-active='true'] > .kh-shop-category-modal .modal-dialog {
        margin-left: clamp(
            var(--bs-modal-margin),
            calc(var(--kh-content-center, 50%) - var(--bs-modal-width) / 2),
            calc(100% - var(--bs-modal-width) - var(--bs-modal-margin))
        );
        margin-right: 0;
    }
}

@media (max-width: 360px) {
    #header_wrap.kihya-shop-header,
    .kihya-shop-header + #sub_header_wrap {
        --kh-shop-header-end: 9px;
    }

    .kihya-shop-header #kihya-header {
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kihya-shop-header .kh-shop-search__text {
        transition: none;
    }
}
