@charset "utf-8";

body.modujang-market-page {
    background: #2e90d1;
}

/* 상품 상세: 맨 위에서 더 끌어내려도 검은 여백이 안 보이게 (QA #127).
   html 배경을 화면색으로 맞추고, 문서 끝에서의 튕김(rubber band)을 끈다 */
/* .market-detail-page 는 body 가 아니라 본문 래퍼 div 에 붙는다 */
html:has(.market-detail-page),
body:has(.market-detail-page) {
    background-color: #2e90d1;
    overscroll-behavior-y: none;
}

body.modujang-market-list-page {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.modujang-v2-market {
    --market-edge: clamp(10px, 3.08vw, 18px);
    --market-header-height: clamp(56px, 14.36vw, 72px);
    /* 카드가 시작하는 위치. 내 정보·보관함과 같은 값으로 맞춤
       (V2 공통 헤더 높이에서 카드 margin-top -4px 만큼 뺀 값) */
    --market-card-top: calc(clamp(64px, 17.44vw, 76px) - 4px);
    --market-bottom-space: clamp(102px, 25.64vw, 142px);
    --market-bottom-nav-height: clamp(62px, 16.41vw, 82px);
    --market-bottom-nav-offset: clamp(8px, 2.56vw, 14px);
    --market-bottom-nav-half-height: clamp(31px, 8.205vw, 41px);
    --market-scroll-clip-bottom: calc(var(--market-bottom-nav-offset) + var(--market-bottom-nav-half-height));
    width: min(100%, 750px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    overflow-x: hidden;
    /* .bg-joinend 가 걸어둔 배경 고정을 되돌림. 모바일에서 화면을 다시 그릴 때마다
       배경을 통째로 재합성해서 헤더·하단 메뉴 터치가 씹히는 원인이 됨.
       안쪽 스크롤 영역을 쓰는 화면이라 고정해도 얻는 게 없음 */
    background-attachment: scroll;
}

.market-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.modujang-market-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
    height: var(--market-header-height);
    margin-bottom: calc(var(--market-header-height) * -1);
    padding: 0 clamp(14px, 5.13vw, 28px);
}

/* 본문이 헤더 아래로 스크롤되며 반투명 배경 뒤로 사라지도록 처리 */
.modujang-market-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: -1;
    height: calc(100% + clamp(12px, 3.59vw, 20px));
    background: var(--v2-header-fade);
    pointer-events: none;
}

.market-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 10.26vw, 48px);
    height: clamp(36px, 10.26vw, 48px);
    margin-left: clamp(-12px, -2.56vw, -8px);
    border: 0;
    background: transparent;
}

.market-back-button img {
    width: clamp(8px, 2.56vw, 12px);
}

.market-header-links {
    display: flex;
    align-items: flex-start;
    gap: clamp(8px, 3.08vw, 16px);
}

.market-header-links a {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    min-width: clamp(30px, 8.21vw, 42px);
}

/* 링크 폭이 아이콘 크기(약 34px)뿐이라 사이 여백을 누르면 안 눌림.
   모양은 두고 눌리는 영역만 좌우 간격 절반과 헤더 위아래 여백까지 넓혀줌 */
.market-header-links a::after {
    content: '';
    position: absolute;
    top: -8px;
    right: calc(clamp(4px, 1.54vw, 8px) * -1);
    bottom: -8px;
    left: calc(clamp(4px, 1.54vw, 8px) * -1);
}
.market-header-links a:last-child::after {
    right: calc(clamp(14px, 5.13vw, 28px) * -1);
}

.market-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(27px, 7.18vw, 36px);
    height: clamp(27px, 7.18vw, 36px);
    border: 1px solid var(--brown-600);
    border-radius: 50%;
    background: #fff;
    box-shadow: 1px 2px 1px rgba(255, 255, 255, .7) inset, -1px -1px 2px rgba(0, 0, 0, .2) inset;
}

.market-header-icon img {
    width: clamp(21px, 5.64vw, 28px);
}

.market-header-links a > span:last-child {
    margin-top: clamp(3px, 1.03vw, 6px);
    color: var(--white);
    font-size: clamp(10px, 2.56vw, 13px);
    line-height: 1;
    text-shadow: 0 1px 1px rgba(27, 87, 128, .35);
}

.market-list-page {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-bottom: 0;
    overflow: hidden;
    background-position: top center;
    background-size: cover;
}

.market-list-main {
    height: calc(100vh - var(--market-scroll-clip-bottom));
    height: calc(100dvh - var(--market-scroll-clip-bottom));
    min-height: 0;
    padding: var(--market-card-top) var(--market-edge) var(--market-bottom-space);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    /* -webkit-overflow-scrolling 은 옛 iOS 전용 속성인데,
       안드로이드 브라우저가 이걸 레이어 힌트로 받아 스크롤 영역을 따로 합성함.
       그 여파로 위에 겹친 헤더/하단 메뉴 터치가 씹히는 일이 있어 뺌 (iOS 13+ 는 기본 동작) */
}

.market-list-main::-webkit-scrollbar { display: none; }

.market-list-card {
    width: 100%;
    padding: clamp(5px, 1.54vw, 8px);
    border-radius: clamp(19px, 6.15vw, 30px);
    background: #fff;
}

.market-list-card-inner {
    min-height: calc(100dvh - 180px);
    padding: clamp(18px, 5.13vw, 30px) clamp(13px, 4.1vw, 22px) clamp(24px, 7.18vw, 38px);
    border: 0; /* 이중선 제거 (QA #65 재요청) */
    border-radius: clamp(18px, 5.64vw, 28px);
    background: var(--blue-100);
}

.market-list-title-wrap {
    display: flex;
    justify-content: center;
    margin: clamp(-42px, -8.72vw, -28px) auto clamp(20px, 6.15vw, 32px);
}

.market-list-title-wrap img {
    display: block;
    width: min(74%, 360px);
    height: auto;
}

.market-category-tabs {
    display: flex;
    gap: clamp(5px, 1.54vw, 8px);
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.market-category-tabs::-webkit-scrollbar {
    display: none;
}

.market-category-tabs button {
    flex: 0 0 auto;
    min-width: clamp(54px, 15.38vw, 76px);
    min-height: clamp(29px, 7.69vw, 38px);
    padding: clamp(4px, 1.28vw, 7px) clamp(9px, 3.08vw, 16px);
    border: 1px solid var(--brown-500);
    border-radius: clamp(7px, 2.05vw, 11px);
    background: var(--brown-100);
    color: var(--gray-800);
    font-size: clamp(11px, 3.08vw, 14px);
    font-weight: 700;
}

.market-category-tabs button.active {
    border-color: var(--blue-500);
    background: var(--blue-600);
    color: #fff;
}

.market-search {
    position: relative;
    margin-top: clamp(17px, 5.13vw, 28px);
}

.market-search input {
    width: 100%;
    height: clamp(48px, 13.33vw, 64px);
    padding: 0 clamp(50px, 14.36vw, 70px) 0 clamp(16px, 5.13vw, 26px);
    border: 1px solid transparent;
    border-radius: clamp(13px, 4.1vw, 20px);
    background: #fff;
    color: var(--gray-900);
    font-size: clamp(13px, 3.59vw, 17px);
}

.market-search input:focus {
    border-color: var(--blue-700);
    outline: none;
}

.market-search button {
    position: absolute;
    top: 50%;
    right: clamp(16px, 5.13vw, 26px);
    width: clamp(22px, 6.15vw, 30px);
    height: clamp(22px, 6.15vw, 30px);
    transform: translateY(-50%);
    border: 0;
    background: url(../img/icon-search.png) center / contain no-repeat;
}

/* 검색어 지우기 × (QA #69). 브라우저 기본 × 는 숨기고 우리 버튼으로 통일 */
.market-search input::-webkit-search-cancel-button,
.market-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.market-search input { padding-right: clamp(84px, 24vw, 112px); }
.market-search .market-search-clear {
    right: clamp(48px, 13.85vw, 66px);
    width: clamp(20px, 5.64vw, 24px);
    height: clamp(20px, 5.64vw, 24px);
    border-radius: 50%;
    background: #b9c1cc;
}
.market-search .market-search-clear::before,
.market-search .market-search-clear::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55%;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}
.market-search .market-search-clear::after { transform: translate(-50%, -50%) rotate(-45deg); }
.market-search .market-search-clear[hidden] { display: none; }

.market-gift-notice {
    margin-top: 10px;
    color: #b92828;
    font-size: clamp(10px, 2.82vw, 13px);
    text-align: center;
}

.market-list-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: clamp(15px, 4.1vw, 22px) 0;
}

.market-list-tools p,
.market-list-tools p b {
    font-size: clamp(13px, 3.59vw, 17px);
}

.market-list-tools p b {
    color: var(--blue-600);
}

.market-sort {
    position: relative;
}

.market-sort-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-700);
    font-size: clamp(12px, 3.33vw, 15px);
    font-weight: 700;
}

.market-sort-toggle img {
    width: clamp(8px, 2.31vw, 11px);
}

.market-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 138px;
    overflow: hidden;
    border: 1px solid var(--blue-300);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(35, 89, 145, .16);
}

.market-sort-menu button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 8px 16px;
    color: var(--gray-800);
    font-size: 13px;
    text-align: left;
}

.market-sort-menu button.active {
    background: var(--blue-100);
    color: var(--blue-700);
    font-weight: 800;
}

.market-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 3.85vw, 20px);
}

.market-product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: clamp(9px, 3.08vw, 16px);
    border: 1px solid var(--blue-900);
    border-radius: clamp(13px, 4.1vw, 20px);
    background: var(--blue-200);
}

.market-product-card > a {
    display: block;
}

/* 상품 사진은 여백 없이 칸을 꽉 채운다 (QA #125, 홈과 동일) */
.market-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--blue-900);
    border-radius: clamp(13px, 4.1vw, 20px);
    background: #fff;
}

.market-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-product-info span,
.market-product-info h2,
.market-product-info p,
.market-product-info i {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-product-info span {
    margin-top: clamp(8px, 2.56vw, 13px);
    color: var(--gray-700);
    font-size: clamp(10px, 2.82vw, 13px);
}

.market-product-info h2 {
    margin: clamp(4px, 1.28vw, 7px) 0;
    color: var(--gray-900);
    font-size: clamp(13px, 3.59vw, 17px);
    font-weight: 600;
}

.market-product-info p {
    color: var(--blue-600);
    font-size: clamp(13px, 3.59vw, 17px);
    font-weight: 800;
}

.market-product-info i {
    margin-top: 5px;
    color: var(--gray-700);
    font-size: clamp(10px, 2.82vw, 13px);
    font-style: normal;
}

.market-product-soldout {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .42);
}

.market-product-soldout span {
    padding: 10px 16px;
    border-radius: 9px;
    background: #aaa;
    color: #555;
    font-weight: 800;
    box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .3);
}

.market-list-state {
    grid-column: 1 / -1;
    display: flex;
    min-height: clamp(190px, 55vw, 300px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px dashed var(--blue-500);
    border-radius: clamp(14px, 4.1vw, 20px);
    background: rgba(255, 255, 255, .68);
    text-align: center;
}

.market-list-state img {
    width: clamp(68px, 20.51vw, 105px);
    margin-bottom: 12px;
}

.market-list-state p {
    color: var(--gray-700);
    font-size: clamp(13px, 3.59vw, 17px);
    font-weight: 700;
}

.market-load-more {
    display: block;
    width: min(80%, 360px);
    min-height: clamp(44px, 11.79vw, 56px);
    margin: 24px auto 0;
    border: 1px solid var(--blue-900);
    border-radius: 999px;
    background: var(--blue-600);
    color: #fff;
    font-size: clamp(13px, 3.59vw, 17px);
    font-weight: 800;
}

.market-load-more[hidden],
.market-sort-menu[hidden],
.market-gift-notice[hidden] {
    display: none !important;
}

.market-bottom-nav {
    left: 50%;
    bottom: var(--market-bottom-nav-offset);
    width: min(calc(100% - clamp(16px, 5.13vw, 28px)), 722px);
    height: var(--market-bottom-nav-height);
    padding: clamp(17px, 4.87vw, 25px) clamp(16px, 5.13vw, 28px) clamp(8px, 2.56vw, 13px);
    transform: translateX(-50%);
    border-radius: clamp(20px, 6.15vw, 30px);
}

.market-bottom-nav a {
    display: flex;
    flex: 1 1 20%;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.market-bottom-nav img {
    height: clamp(30px, 8.72vw, 42px);
}

.market-bottom-nav a:nth-child(3) img {
    width: clamp(48px, 13.08vw, 66px);
    height: clamp(48px, 13.08vw, 66px);
}

.market-bottom-nav span {
    margin-top: clamp(2px, .77vw, 4px);
    font-size: clamp(9px, 2.56vw, 12px);
    white-space: nowrap;
}

.market-bottom-nav a.active span {
    color: var(--blue-700);
    font-weight: 800;
}

.market-detail-page {
    background-position: top center;
    background-size: cover;
}

.market-detail-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 20;
    width: min(100%, 750px);
    transform: translateX(-50%);
}

.market-detail-main {
    min-height: 100dvh;
    padding-top: var(--market-header-height);
}

/* 상세 이미지 영역을 키워 여백을 줄임 (QA #126) */
.market-detail-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(300px, 44dvh, 450px);
    padding: clamp(12px, 4.1vw, 24px) var(--market-edge) clamp(22px, 6.15vw, 34px);
    overflow: hidden;
}

.market-detail-media,
.market-detail-media .swiper-wrapper,
.market-detail-media .swiper-slide {
    width: 100%;
    height: 100%;
}

.market-detail-media .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-detail-media .swiper-slide img {
    display: block;
    width: auto;
    max-width: min(88vw, 440px);
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(28, 91, 145, .2));
}

.market-detail-pagination {
    bottom: 0 !important;
}

.market-detail-sheet {
    position: relative;
    z-index: 3;
    min-height: calc(62dvh - clamp(56px, 14.36vw, 72px));
    margin-top: -4px;
    overflow: hidden;
    border-radius: clamp(28px, 8.72vw, 42px) clamp(28px, 8.72vw, 42px) 0 0;
    background: #eef5fb;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, .08);
}

.market-detail-sheet-inner {
    padding: clamp(28px, 9.74vw, 48px) clamp(20px, 6.15vw, 34px) clamp(34px, 10.26vw, 56px);
}

.market-detail-brand {
    color: var(--gray-700);
    font-size: clamp(12px, 3.08vw, 15px);
    font-weight: 600;
}

.market-detail-title {
    margin-top: 3px;
    color: var(--gray-900);
    font-size: clamp(17px, 4.62vw, 23px);
    font-weight: 600;
    line-height: 1.3;
}

.market-detail-price {
    margin-top: 5px;
    color: var(--blue-600);
    font-size: clamp(18px, 5.13vw, 25px);
    font-weight: 800;
    letter-spacing: -.04em;
}

.market-detail-price span {
    margin-right: 4px;
    color: var(--gray-800);
    font-size: .62em;
    font-weight: 700;
}

.market-owned-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.market-owned-status span,
.market-owned-status b {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.market-owned-status span {
    background: var(--blue-600);
    color: #fff;
}

.market-owned-status b {
    border: 1px solid #bdd4ec;
    background: #fff;
    color: #315a83;
}

.storage-owned-detail-page .market-detail-sheet {
    border-top: 3px solid rgba(8, 115, 255, .2);
}

.market-owned-manage {
    text-decoration: none;
}

.market-delivery-gauge {
    margin-top: clamp(26px, 8.72vw, 44px);
}

.market-delivery-gauge h2 {
    margin-bottom: 9px;
    color: var(--main-900);
    font-size: clamp(12px, 3.08vw, 15px);
    font-weight: 700;
}

.market-gauge-row {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.56vw, 14px);
}

.market-gauge-track {
    position: relative;
    flex: 1;
    height: clamp(18px, 5.13vw, 26px);
    border: 1px solid var(--brown-500);
    border-radius: 999px;
    background: var(--brown-200);
}

.market-gauge-fill {
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    min-width: clamp(36px, 10.26vw, 52px);
    max-width: calc(100% + 1px);
    border: 1px solid #4b8316;
    border-radius: 999px;
    background: #49b73d;
}

.market-gauge-fill img {
    position: absolute;
    top: 50%;
    right: clamp(-20px, -4.62vw, -15px);
    width: clamp(30px, 8.21vw, 42px);
    height: clamp(30px, 8.21vw, 42px);
    transform: translateY(-50%);
}

.market-gauge-row b {
    min-width: clamp(42px, 11.79vw, 58px);
    color: var(--main-900);
    font-size: clamp(13px, 3.59vw, 17px);
}

.market-detail-notice {
    margin-top: clamp(28px, 8.21vw, 42px);
    padding: clamp(17px, 5.13vw, 26px);
    border-radius: clamp(14px, 4.1vw, 20px);
    background: #fff;
}

.market-detail-notice strong {
    display: block;
    margin-bottom: 12px;
    color: var(--blue-600);
    font-size: clamp(15px, 4.1vw, 20px);
    font-weight: 800;
}

.market-detail-notice p {
    color: var(--gray-800);
    font-size: clamp(11px, 3.08vw, 14px);
    line-height: 1.55;
}

.market-detail-description {
    max-width: 100%;
    margin-top: clamp(16px, 5.13vw, 28px);
    overflow: hidden;
    color: var(--gray-800);
    font-size: clamp(12px, 3.33vw, 15px);
    line-height: 1.6;
}

.market-detail-description img,
.market-detail-description iframe,
.market-detail-description video {
    max-width: 100% !important;
    height: auto !important;
}

/* 구매 버튼을 하단 네비게이션 위에 고정 */
.market-detail-actions {
    position: fixed;
    left: 50%;
    bottom: calc(var(--market-bottom-nav-offset) + var(--market-bottom-nav-height) + clamp(10px, 2.56vw, 16px) + env(safe-area-inset-bottom));
    z-index: 25;
    width: min(calc(100% - clamp(20px, 6.15vw, 34px)), 548px);
    margin: 0;
    transform: translateX(-50%);
}

/* 본문이 고정된 구매 바 + 하단 네비 뒤로 가려지지 않도록 여백 확보 */
.market-detail-sheet-inner {
    padding-bottom: calc(var(--market-bottom-nav-offset) + var(--market-bottom-nav-height) + clamp(96px, 25vw, 128px) + env(safe-area-inset-bottom));
}

.market-detail-primary,
.market-detail-soldout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(48px, 12.82vw, 62px);
    border-radius: 999px;
    font-size: clamp(15px, 4.1vw, 20px);
    font-weight: 800;
}

.market-detail-primary {
    border: 1px solid var(--blue-900);
    background: var(--blue-600);
    color: #fff;
    box-shadow: inset 1px -2px 1px rgba(3, 80, 189, .45), inset 1px 2px 1px rgba(255, 255, 255, .35);
}

.market-detail-soldout {
    border: 1px solid var(--gray-800);
    background: #a9a9a9;
    color: var(--gray-800);
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, .22);
}

.market-detail-purchase-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.market-detail-purchase-row .market-detail-primary {
    flex: 1;
}

.market-cart-button {
    display: flex;
    flex: 0 0 clamp(48px, 12.82vw, 62px);
    align-items: center;
    justify-content: center;
    min-height: clamp(48px, 12.82vw, 62px);
    border: 1px solid var(--blue-900);
    border-radius: 50%;
    background: #fff;
}

.market-cart-button img {
    width: clamp(22px, 6.15vw, 30px);
}

/* 장바구니 담긴 수 배지·담김 표시 (QA #129 #130) */
.market-header-icon { position: relative; }
.market-cart-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.market-cart-button { position: relative; }
.market-cart-button .market-cart-badge { top: -4px; right: -4px; }
.market-cart-button.is-filled { border-color: #1654a6; background: var(--blue-600); }
.market-cart-button.is-filled img { filter: brightness(0) invert(1); }

/* 상세 제목 블록 우측 상단 배송게이지 배지 (QA #122) */
/* 배지는 흐름에서 빼서 카드 우측 상단 여백에 고정. 제목이 옆으로 밀려 잘리지 않게 (9/30 요청) */
.market-detail-sheet-inner { position: relative; }
.market-detail-head { display: block; }
.market-detail-head-text { min-width: 0; }
.market-detail-gauge-badge {
    position: absolute;
    top: clamp(12px, 3.6vw, 18px);
    right: clamp(20px, 6.15vw, 34px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1.5px solid var(--blue-600);
    border-radius: 999px;
    background: #fff;
    color: var(--blue-600);
    font-size: clamp(12px, 3.33vw, 14px);
    font-weight: 800;
    white-space: nowrap;
}
.market-detail-gauge-badge b { color: inherit; font-size: 1.05em; }

/* 장바구니 / 상품 구매 */
.market-cart-page {
    min-height: 100dvh;
    padding-bottom: calc(var(--market-bottom-nav-height) + var(--market-bottom-nav-offset) + 96px + env(safe-area-inset-bottom));
    background-position: top center;
    background-size: cover;
}

.market-cart-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 20;
    width: min(100%, 750px);
    transform: translateX(-50%);
}

.market-cart-main {
    width: 100%;
    min-height: 100dvh;
    padding: calc(var(--market-header-height) + clamp(18px, 5.13vw, 28px)) var(--market-edge) 0;
}

.market-cart-shell {
    width: 100%;
    padding: clamp(5px, 1.54vw, 8px);
    border-radius: clamp(20px, 6.15vw, 30px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(29, 95, 148, .18);
}

.market-cart-shell-inner {
    padding: clamp(18px, 5.13vw, 28px) clamp(13px, 4.1vw, 22px) clamp(24px, 7.18vw, 38px);
    border: 0; /* 이중선 제거 (QA #65 재요청) */
    border-radius: clamp(18px, 5.64vw, 28px);
    background: rgba(241, 247, 250, .96);
}

/* 장바구니 상단 나무 팻말 타이틀 (QA #131) — 마켓 목록 타이틀과 같은 배치 */
.market-cart-title-wrap {
    display: flex;
    justify-content: center;
    margin: clamp(-42px, -8.72vw, -28px) auto clamp(20px, 6.15vw, 32px);
}

.market-cart-title-wrap h1 {
    width: min(74%, 360px);
    margin: 0;
    line-height: 0;
}

.market-cart-title-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.market-cart-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(24px, 7.18vw, 36px);
    padding: 14px 16px;
    border: 1px solid #c7ddf4;
    border-radius: 18px;
    background: linear-gradient(135deg, #e8f5ff 0%, #fff 100%);
    box-shadow: 0 5px 16px rgba(36, 100, 154, .1);
}

.market-cart-heading-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #8ebff2;
    border-radius: 50%;
    background: #fff;
}

.market-cart-heading-icon img {
    width: 25px;
    filter: invert(34%) sepia(86%) saturate(1231%) hue-rotate(185deg) brightness(91%) contrast(92%);
}

.market-cart-heading p {
    margin: 0 0 2px;
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 700;
}

.market-cart-heading h1 {
    margin: 0;
    color: #173b5d;
    font-family: "Maplestory", "Noto Sans KR", sans-serif;
    font-size: clamp(20px, 5.64vw, 26px);
    font-weight: 700;
    line-height: 1.25;
}

.market-cart-form,
.market-cart-page .box__buy {
    width: 100%;
}

.market-cart-page .box__buy {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.market-cart-page .box-title {
    margin-bottom: 12px;
}

.market-cart-page .box-title h3 {
    color: #203a52;
    font-size: clamp(16px, 4.62vw, 20px);
    font-weight: 800;
}

.market-cart-page #cart_list {
    display: flex;
    flex-direction: column;
}

.market-cart-page #cart_list > div:not(.delivery-info-empty) {
    padding: 14px;
    border: 1px solid #c7ddf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(36, 100, 154, .1);
}

.market-cart-page #cart_list > div + div {
    margin-top: 12px;
}

.market-cart-page .cart-item {
    display: grid;
    grid-template-columns: clamp(64px, 18.46vw, 82px) minmax(0, 1fr) 30px;
    gap: 12px;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.market-cart-page .cart-item-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(64px, 18.46vw, 82px);
    height: clamp(64px, 18.46vw, 82px);
    overflow: hidden;
    border: 1px solid #e0eaf3;
    border-radius: 14px;
    background: #f7f9fb;
}

.market-cart-page .cart-item-img img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: contain;
}

.market-cart-page .cart-item-info {
    min-width: 0;
}

.market-cart-page .cart-item-info h3 {
    margin: 0 0 3px;
    overflow: hidden;
    color: var(--blue-800);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-cart-page .cart-item-info p {
    display: -webkit-box;
    margin: 0 0 5px;
    overflow: hidden;
    color: #34495d;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.market-cart-page .cart-item-info .pr1 {
    margin: 0 0 2px;
    color: var(--gray-600);
    font-size: 11px;
    text-decoration: line-through;
}

.market-cart-page .cart-item-info b {
    display: block;
    color: var(--blue-600);
    font-size: 17px;
    font-weight: 800;
}

.market-cart-page .cart-item .btn-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 6px;
    border: 1px solid #d5e4f1;
    border-radius: 10px;
    background: #f5f9fd;
}

.market-cart-page .cart-item .btn-delete img {
    width: 16px;
    height: 16px;
    filter: hue-rotate(175deg) saturate(.85);
    object-fit: contain;
}

.market-cart-page .gauge {
    margin-top: 12px;
}

.market-cart-page .gaugebar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-cart-page .gaugebar-track {
    flex: 1;
    height: 12px;
    border: 1px solid #a8ccec;
    border-radius: 999px;
    background: #e2effa;
    box-shadow: none;
}

.market-cart-page .gaugebar-fill {
    position: relative;
    height: 100%;
    min-width: 10px;
    border-radius: inherit;
    background: linear-gradient(90deg, #3aa4f2 0%, #1478eb 100%);
    box-shadow: none;
}

.market-cart-page .gauge-circle {
    position: absolute;
    top: 50%;
    right: -8px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
}

.market-cart-page .gauge-circle img {
    display: block;
    width: 100%;
    height: 100%;
}

.market-cart-page .gaugebar > b {
    min-width: 32px;
    color: var(--blue-700);
    font-size: 13px;
    text-align: right;
}

.market-cart-page .total_del_gauge {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #c7ddf4;
    border-radius: 16px;
    background: #eaf5ff;
}

.market-cart-page .total_del_gauge p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    color: #344b60;
    font-size: 14px;
    font-weight: 700;
}

.market-cart-page .total_del_gauge p b {
    color: var(--blue-700);
    font-size: 17px;
}

.market-cart-page .total_del_gauge .bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #cfe2f4;
}

.market-cart-page .total_del_gauge .bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3aa4f2 0%, #1478eb 100%);
}

.market-cart-page .hr01 {
    margin: 20px 0;
    border-top-color: #d4e4f1;
}

.market-cart-page .delivery-info,
.market-cart-page .ticket_info_wrap,
.market-cart-page .delivery-info-empty {
    margin: 0;
    padding: 18px;
    border: 1px solid #c7ddf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(36, 100, 154, .1);
}

.market-cart-page .delivery-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.market-cart-page .delivery-info-head h3 {
    margin: 0;
    color: #174b78;
    font-size: 18px;
    font-weight: 800;
}

.market-cart-page .delivery-info-head .btn-common02 {
    width: auto;
    min-width: 90px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #b9d4eb;
    border-radius: 12px;
    background: #f3f8fc;
    color: #47647e;
    box-shadow: none;
}

.market-cart-page .delivery-info-head .btn-common02 span {
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

.market-cart-page .delivery-info-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.market-cart-page .info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.market-cart-page .info-row > span {
    flex: 0 0 62px;
    color: #687d90;
    font-size: 13px;
    font-weight: 600;
}

.market-cart-page .info-row > b,
.market-cart-page .info-row > p {
    min-width: 0;
    margin: 0;
    color: #364b5e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: right;
    overflow-wrap: anywhere;
}

.market-cart-page .info-row > b span {
    color: inherit;
    font-size: inherit;
}

.market-cart-page .info-row:has(.custom-select),
.market-cart-page .info-row:has(.receiver_message) {
    display: block;
}

.market-cart-page .custom-select,
.market-cart-page .box-textfield {
    position: relative;
    width: 100%;
}

.market-cart-page .textfield01 {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 14px;
    border: 1px solid #a9cbe9;
    border-radius: 13px;
    outline: 0;
    background: #f8fbfe;
    color: #334b60;
    font-size: 14px;
    box-shadow: none;
    box-sizing: border-box;
}

.market-cart-page .textfield01[readonly] {
    height: 48px;
    border: 1px solid #a9cbe9;
    background: #f8fbfe;
    color: #334b60;
    box-shadow: none;
}

.market-cart-page .receiver_message_select {
    display: none !important;
}

.market-cart-page .textfield01:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(6, 114, 255, .1);
}

.market-cart-message-select {
    position: relative;
}

.market-cart-message-select.is-open {
    z-index: 40;
}

.market-cart-message-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #a9cbe9;
    border-radius: 13px;
    outline: 0;
    background: #f8fbfe;
    color: #687d90;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    box-shadow: none;
}

.market-cart-message-trigger.has-value {
    color: #334b60;
    font-weight: 600;
}

.market-cart-message-trigger:focus-visible,
.market-cart-message-select.is-open .market-cart-message-trigger {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(6, 114, 255, .1);
}

.market-cart-message-trigger span {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-cart-message-trigger img {
    flex: 0 0 auto;
    width: 12px;
    margin-left: 12px;
    transition: transform .2s ease;
}

.market-cart-message-select.is-open .market-cart-message-trigger img {
    transform: rotate(180deg);
}

.market-cart-message-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 41;
    max-height: min(260px, 46dvh);
    margin: 0;
    padding: 7px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #9fc4e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(20, 76, 124, .22);
    list-style: none;
    overscroll-behavior: contain;
}

.market-cart-message-options[hidden] {
    display: none !important;
}

.market-cart-message-options li {
    margin: 0;
    padding: 0;
}

.market-cart-message-options li + li {
    margin-top: 2px;
}

.market-cart-message-options button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 38px 9px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #3d5368;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    word-break: keep-all;
}

.market-cart-message-options button:hover,
.market-cart-message-options button:focus-visible {
    outline: 0;
    background: #eef6fd;
}

.market-cart-message-options button.is-selected {
    background: #e2f0ff;
    color: var(--blue-700);
    font-weight: 800;
}

.market-cart-message-options button.is-selected::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 12px;
    border: solid var(--blue-600);
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg);
}

.market-cart-page .delivery-info-empty .icon-warn {
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    opacity: .65;
}

.market-cart-page .delivery-info-empty p {
    margin: 0 0 12px;
    color: #607386;
    font-size: 14px;
}

.market-cart-page .delivery-info-empty .btn-common01 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 42px;
    margin: 0 auto;
    border: 1px solid #075fc5;
    border-radius: 12px;
    background: var(--blue-600);
    color: #fff;
}

.market-cart-page .ticket_info_wrap .label-agree {
    margin-top: 12px;
}

.market-cart-page .box-textfield .my_point {
    padding-right: 100px;
    font-size: 16px;
    font-weight: 700;
}

.market-cart-page .box-textfield .point_all {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 84px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #e2effc;
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 800;
}

.market-cart-page .input_note {
    display: flex;
    justify-content: space-between;
    margin: 8px 2px 0;
    color: #718396;
    font-size: 12px;
}

.market-cart-page .input_note span,
.market-cart-page .input_note b {
    color: inherit;
    font-size: inherit;
}

.market-cart-page .input_note b {
    color: var(--blue-700);
}

.market-cart-page .price__list {
    padding: 18px;
    border: 1px solid #a9cbe9;
    border-radius: 18px;
    background: #eaf5ff;
    box-shadow: none;
}

.market-cart-page .price__list ul {
    gap: 9px;
}

.market-cart-page .price__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.market-cart-page .price__list li span,
.market-cart-page .price__list li p,
.market-cart-page .price__list li b {
    margin: 0;
    color: #587086;
    font-size: 14px;
}

.market-cart-page .price__list li b,
.market-cart-page .price__list li span:last-child {
    color: #243e56;
    font-weight: 700;
}

.market-cart-page .price__list li:last-child {
    margin-top: 5px;
    padding-top: 12px;
    border-top: 1px solid #c2d9ee;
}

.market-cart-page .price__list li:last-child p {
    color: #193b5c;
    font-weight: 800;
}

.market-cart-page .price__list .order_total_sum {
    color: var(--blue-600);
    font-size: 20px;
    font-weight: 900;
}

.market-cart-section-gap {
    height: 18px;
}

.market-cart-page .collapse.other {
    overflow: hidden;
    border: 1px solid #c7ddf4;
    border-radius: 15px !important;
    background: #fff;
    box-shadow: 0 3px 10px rgba(36, 100, 154, .07);
}

.market-cart-page .collapse-header {
    min-height: 52px;
    padding: 0 16px;
    background: transparent;
}

.market-cart-page .collapse-header h2 {
    color: #3d566d;
    font-size: 14px;
    font-weight: 800;
}

.market-cart-page .collapse-header img {
    width: 12px;
    filter: hue-rotate(175deg) saturate(1.2);
}

.market-cart-page .collapse-body {
    padding: 0 16px 16px;
    color: #617589;
    font-size: 13px;
    line-height: 1.6;
}

.market-cart-page .label-agree {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 4px 2px;
}

.market-cart-page .label-agree .checkbox {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.market-cart-page .label-agree .checkbox input {
    position: absolute;
    z-index: 2;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.market-cart-page .label-agree .checkbox i {
    position: absolute;
    inset: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #b8c2cc;
    border-radius: 50%;
    background: #fff;
}

.market-cart-page .label-agree .checkbox input:checked + i {
    border-color: var(--blue-600);
    background: var(--blue-600);
}

.market-cart-page .label-agree .checkbox input:checked + i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.market-cart-page .label-agree > span {
    position: static;
    padding-top: 2px;
    color: #3e566d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

/* 결제하기는 화면에 따라다니지 않고 구매확인 동의 아래에 놓인다 (QA #132) */
.market-cart-submit-space {
    display: none;
}

.market-cart-submit {
    position: static;
    width: 100%;
    margin-top: clamp(14px, 4.1vw, 20px);
    padding: 0;
    transform: none;
}

.market-cart-submit .common_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(50px, 13.33vw, 60px);
    margin: 0;
    border: 1px solid var(--blue-900);
    border-radius: 16px !important;
    background: var(--blue-600);
    color: #fff;
    font-size: clamp(16px, 4.62vw, 20px);
    font-weight: 900;
    box-shadow: inset 0 -3px 0 rgba(3, 80, 189, .4), 0 6px 16px rgba(6, 114, 255, .22);
}

.market-cart-submit .btn-shipdown {
    border-color: #7b8996;
    background: #8e9ba7;
    box-shadow: inset 0 -3px 0 rgba(57, 68, 78, .3);
}

/* 티켓 상품 구매 동의 팝업 */
.market-cart-agree-dialog .dimBg {
    background: rgba(12, 31, 47, .58);
    backdrop-filter: blur(1.5px);
}

.market-cart-agree-dialog .pop-layer {
    width: min(calc(100% - 32px), 350px);
    border: 1px solid #a9cdf6;
    border-radius: 22px;
    background: #f7fbff;
    box-shadow: 0 18px 48px rgba(10, 62, 112, .24);
    overflow: hidden;
}

.market-cart-agree-dialog .pop-container {
    padding: 0;
}

.market-cart-agree-dialog .pop_title {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 56px 0 20px;
    border-bottom: 1px solid #d8e8f8;
    background: #eaf5ff;
}

.market-cart-agree-dialog .pop_title h2 {
    margin: 0;
    color: #183a59;
    font-family: "Maplestory", "Noto Sans KR", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.market-cart-agree-dialog .pop_title .btn-layerClose {
    position: absolute;
    top: 50%;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
}

.market-cart-agree-dialog .pop_title .btn-layerClose img {
    width: 18px;
}

.market-cart-agree-dialog .pop-conts {
    padding: 24px 18px 18px;
}

.market-cart-agree-dialog .pop_memo {
    text-align: center;
}

.market-cart-agree-dialog .pop_memo p {
    margin: 0;
    color: #465d72;
    font-size: 14px;
    line-height: 1.6;
}

.market-cart-agree-dialog .pop_memo p + p {
    margin-top: 4px;
}

.market-cart-agree-dialog .pop_memo b {
    color: #183a59;
    font-weight: 800;
}

.market-cart-agree-dialog .pop_btn {
    margin: 20px 0 0;
}

.market-cart-agree-dialog .pop_btn .common_btn {
    width: 100%;
    height: 48px;
    border: 1px solid #075fc5;
    border-radius: 14px;
    background: var(--blue-600);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

/* 장바구니 안내 팝업 */
.market-cart-dialog .dimBg {
    background: rgba(12, 31, 47, .58);
    backdrop-filter: blur(1.5px);
}

.market-cart-dialog .pop-layer {
    width: min(calc(100% - 32px), 350px);
    max-height: calc(100dvh - 32px);
    border: 1px solid #a9cdf6;
    border-radius: 22px;
    background: #f7fbff;
    box-shadow: 0 18px 48px rgba(10, 62, 112, .24);
    overflow: auto;
}

.market-cart-dialog .pop-container {
    padding: 0;
}

.market-cart-dialog .pop_title {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 56px 0 20px;
    border-bottom: 1px solid #d8e8f8;
    background: #eaf5ff;
}

.market-cart-dialog .pop_title h2 {
    margin: 0;
    color: #183a59;
    font-family: "Maplestory", "Noto Sans KR", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.market-cart-dialog .pop_title .btn-layerClose {
    position: absolute;
    top: 50%;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.market-cart-dialog .pop_title .btn-layerClose img {
    width: 18px;
    height: 18px;
}

.market-cart-dialog .pop-conts {
    padding: 24px 18px 18px;
}

.market-cart-dialog .market-cart-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
}

.market-cart-dialog .market-cart-popup-icon img {
    width: 100%;
    height: 100%;
}

.market-cart-dialog .market-cart-popup-icon--notice {
    border: 3px solid #ffba52;
    border-radius: 50%;
    background: #fff8e7;
    color: #e88d00;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.market-cart-dialog .pop_memo {
    padding: 0;
    text-align: center;
}

.market-cart-dialog .pop_memo p {
    margin: 0;
    color: #3f5366;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.market-cart-dialog .pop_memo b {
    color: #1d6fd1;
    font-weight: 800;
}

.market-cart-dialog .pop_btn {
    display: flex;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
}

.market-cart-dialog .pop_btn > .btn_close,
.market-cart-dialog .pop_btn > a,
.market-cart-dialog .pop_btn > input[type='button'] {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 12px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    appearance: none;
}

.market-cart-dialog .pop_btn > .btn_close {
    border: 1px solid #c8d5e1;
    background: #fff;
    color: #607386;
    box-shadow: 0 2px 5px rgba(43, 72, 98, .12);
    cursor: pointer;
}

.market-cart-dialog .pop_btn > a,
.market-cart-dialog .pop_btn > input[type='button'] {
    border: 1px solid #075fc5;
    background: #1478eb;
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 70, 159, .25), 0 3px 8px rgba(20, 120, 235, .2);
    cursor: pointer;
}

.market-cart-delete-dialog .pop-layer {
    width: min(calc(100% - 32px), 286px);
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(12, 31, 47, .22);
}

.market-cart-delete-dialog .pop_title {
    min-height: 0;
    padding: 24px 20px 0;
    justify-content: center;
    border: 0;
    background: transparent;
}

.market-cart-delete-dialog .pop_title h2 {
    width: 100%;
    color: #222;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

.market-cart-delete-dialog .pop_title .btn-layerClose {
    display: none;
}

.market-cart-delete-dialog .pop-conts {
    padding: 5px 22px 22px;
}

.market-cart-delete-dialog .pop_memo p {
    color: #737373;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.market-cart-delete-dialog .pop_btn {
    gap: 10px;
    margin-top: 20px;
}

.market-cart-delete-dialog .pop_btn > .btn_close,
.market-cart-delete-dialog .pop_btn > input[type='button'] {
    height: 46px;
    border-radius: 14px;
    font-size: 16px;
}

@media (max-width: 359px) {
    .modujang-market-header {
        padding-right: 12px;
        padding-left: 12px;
    }

    .market-header-links {
        gap: 6px;
    }

    .market-list-card-inner {
        padding-right: 11px;
        padding-left: 11px;
    }

    .market-bottom-nav {
        padding-right: 12px;
        padding-left: 12px;
    }

    .market-detail-sheet-inner {
        padding-right: 18px;
        padding-left: 18px;
    }

    .market-cart-main {
        padding-right: 8px;
        padding-left: 8px;
    }

    .market-cart-shell-inner {
        padding-right: 12px;
        padding-left: 12px;
    }

    .market-cart-heading {
        padding-right: 12px;
        padding-left: 12px;
    }

    .market-cart-page #cart_list > div:not(.delivery-info-empty) {
        padding: 12px;
    }

    .market-cart-page .cart-item {
        grid-template-columns: 62px minmax(0, 1fr) 28px;
        gap: 9px;
    }

    .market-cart-page .cart-item-img {
        width: 62px;
        height: 62px;
    }

    .market-cart-page .delivery-info,
    .market-cart-page .ticket_info_wrap {
        padding: 15px 13px;
    }

    .market-cart-submit {
        width: 100%;
    }

    .market-cart-agree-dialog .pop-layer,
    .market-cart-dialog .pop-layer {
        width: calc(100% - 24px);
    }

    .market-cart-agree-dialog .pop-conts,
    .market-cart-dialog .pop-conts {
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modujang-v2-market * {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
