html.is-wishlist-modal-open { overflow: hidden; }

.wishlistModal {
    width: min(var(--bj-content-max, 1000px), calc(100vw - var(--bj-space-4, 64px)));
    max-width: none;
    height: fit-content;
    max-height: calc(100dvh - var(--bj-space-4, 64px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--bj-line, #ddd9d2);
    border-radius: calc(var(--bj-control-radius, 8px) * 2);
    background: var(--bj-clean, #fff);
    color: var(--bj-ink, #181817);
    font-family: var(--bj-font-family, Pretendard, sans-serif);
    box-shadow: 0 24px 70px rgba(23, 35, 43, 0.22);
}

.wishlistModal::backdrop { background: rgba(18, 26, 32, 0.46); }
.wishlistModal__surface { display: flex; max-height: calc(100dvh - var(--bj-space-4, 64px)); flex-direction: column; }
.wishlistModal__header { position: relative; z-index: 1; display: flex; min-height: 80px; align-items: center; justify-content: space-between; padding: var(--bj-space-2, 16px) var(--bj-space-3, 32px); border-bottom: 1px solid var(--bj-line, #ddd9d2); box-sizing: border-box; background: var(--bj-clean, #fff); box-shadow: 0 5px 14px rgba(23, 35, 43, 0.08); }
.wishlistModal__heading { display: grid; width: auto !important; margin-left: 0 !important; margin-right: auto !important; gap: 2px; text-align: left; }
.wishlistModal__header h1 { width: auto !important; margin: 0; text-align: left !important; color: var(--bj-ink, #181817); font-size: var(--bj-type-subsection, 20px) !important; font-weight: var(--bj-type-subsection-weight, 600); line-height: var(--bj-type-subsection-line, 1.5); letter-spacing: -0.03em; }
.wishlistModal__count { color: var(--bj-muted, #66635e); font-size: var(--bj-type-caption, 14px); line-height: var(--bj-type-caption-line, 1.5); }
.wishlistModal__close { position: relative; display: inline-flex; width: 40px; height: 40px; flex: 0 0 40px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--bj-ink, #181817); cursor: pointer; }
.wishlistModal__close::before, .wishlistModal__close::after { position: absolute; top: 50%; left: 50%; width: 18px; height: 1.5px; border-radius: 999px; background: currentColor; content: ""; transform-origin: center; }
.wishlistModal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.wishlistModal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.wishlistModal__close:hover, .wishlistModal__close:focus-visible { background: var(--bj-stone, #f1efe9); outline: none; }
.wishlistModal__body { min-height: 0; overflow: auto; padding: var(--bj-space-3, 32px); }
.wishlistModal__loading, .wishlistModal__error, .wishlistModalCatalog__empty { display: grid; min-height: 320px; place-content: center; gap: var(--bj-space-2, 16px); text-align: center; color: var(--bj-muted, #66635e); }
.wishlistModal__error button { justify-self: center; padding: 10px 16px; border: 1px solid #c9c5be; border-radius: 8px; background: #fff; }
.wishlistModalCatalog__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bj-space-3, 32px) var(--bj-space-2, 16px); }
.wishlistModalCatalog__empty h2 { margin: 0; color: var(--bj-ink, #181817); font-size: var(--bj-type-subsection, 20px); }
.wishlistModalCatalog__empty p { margin: 0; }
.wishlistModalCard { min-width: 0; }
.wishlistModalCard__media { position: relative; overflow: hidden; border-radius: var(--bj-control-radius, 8px); background: var(--bj-template-media-surface, #f1f1f1); aspect-ratio: 1 / 1; }
.wishlistModalCard__media > a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; box-sizing: border-box; padding: var(--bj-template-media-padding, 18px); }
.wishlistModalCard__media img { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.wishlistModalCard__media--precomposed > a { padding: 0; }
.wishlistModalCard__media--precomposed img { object-fit: cover; }
.wishlistModal .wishlistModalCard__heart { position: absolute !important; top: auto !important; right: var(--bj-space-2, 16px) !important; bottom: var(--bj-space-2, 16px) !important; left: auto !important; width: var(--bj-space-3, 32px); height: var(--bj-space-3, 32px); border: 0; background-color: transparent; background-position: center; background-size: 30px auto; }
.wishlistModalCard__name { display: -webkit-box; margin: var(--bj-space-2, 16px) 0 0; overflow: hidden; color: var(--bj-ink, #181817); font-size: var(--bj-type-control, 15px) !important; font-weight: var(--bj-type-control-weight, 500); line-height: var(--bj-type-control-line, 1.6); letter-spacing: -0.02em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wishlistModalCard__name a { color: inherit; font: inherit !important; text-decoration: none; }
.wishlistModalCard__price { margin: var(--bj-space-1, 8px) 0 0; color: var(--bj-ink, #181817); font-size: var(--bj-catalog-price-size, 14px); line-height: var(--bj-catalog-price-line, 20px); }
.wishlistModalCard__price strong { font: inherit; font-weight: var(--bj-catalog-price-weight, 500); }
.wishlistModalCard__quantity { display: flex; align-items: center; justify-content: space-between; gap: var(--bj-space-1, 8px); margin-top: var(--bj-space-1, 8px); color: var(--bj-muted, #66635e); font-size: var(--bj-type-caption, 14px); }
.wishlistModalCard__quantity span { flex: 0 0 auto; white-space: nowrap; }
.wishlistModalCard__quantity select { width: 88px; min-width: 0; max-width: 100%; height: 36px; padding: 0 26px 0 10px; border: 1px solid var(--bj-line, #ddd9d2); border-radius: var(--bj-control-radius, 8px); background: var(--bj-clean, #fff); color: var(--bj-ink, #181817); font: inherit; cursor: pointer; }
.wishlistModalCard__quantity select:focus-visible { outline: 2px solid var(--bj-ink, #181817); outline-offset: 2px; }
.wishlistModalCard__quantityStatic { margin: var(--bj-space-1, 8px) 0 0; color: var(--bj-muted, #66635e); font-size: var(--bj-type-caption, 14px); }
.wishlistModalCard__priceStatus:not(:empty) { display: block; margin-top: 4px; color: var(--bj-muted, #66635e); font-size: var(--bj-type-caption, 14px); }
.wishlistModalCard__priceError:not([hidden]) { margin-top: var(--bj-space-1, 8px); color: var(--bj-ink, #181817); font-size: var(--bj-type-caption, 14px); }
.wishlistModalCard__priceError button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.wishlistModalCard__sample { width: 100%; min-height: var(--bj-catalog-cta-height, 40px); margin-top: var(--bj-space-2, 16px); padding: 0 var(--bj-space-2, 16px); border: 1px solid var(--bj-line, #ddd9d2); border-radius: var(--bj-catalog-cta-radius, 8px); background: var(--bj-clean, #fff); color: var(--bj-ink, #181817); font-family: var(--bj-font-family, Pretendard, sans-serif); font-size: var(--bj-catalog-cta-size, 14px); font-weight: var(--bj-catalog-cta-weight, 500); cursor: pointer; }
.wishlistModalCard__sample:hover, .wishlistModalCard__sample:focus-visible { border-color: var(--bj-ink, #181817); outline: none; }

@media (max-width: 767px) {
    .wishlistModal { width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
    .wishlistModal__surface { max-height: 100dvh; }
    .wishlistModal__header { min-height: 68px; padding: var(--bj-space-1, 8px) var(--bj-space-2, 16px); }
    .wishlistModal__close { width: 36px; height: 36px; flex-basis: 36px; }
    .wishlistModal__body { padding: var(--bj-space-2, 16px); }
    .wishlistModalCatalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bj-space-3, 24px) var(--bj-space-2, 16px); }
}
