/* ── render_component.css ── */
/* QnA 프리뷰 (renderQnaArticlePreview) */
.partnership-preview-container {
    color: inherit;
    border-bottom: 1px solid rgb(var(--gray-100));
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 4px;
}
.partnership-preview-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.partnership-preview-right {
    flex-shrink: 0;
}

/* 공지사항 프리뷰 (renderNoticeArticlePreview) */
.notice-preview-container {
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid rgb(var(--gray-100));
    cursor: pointer;
}

/* 차단 목록 (renderBlockedUserItem) */
.block-list-item-container {
    border-bottom: 1px solid rgb(var(--gray-100));
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}
.block-list-item-container img {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    object-fit: cover;
}
.block-list-item-container button {
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid rgb(var(--primary-700));
    color: rgb(var(--primary-700));
    padding: 3px 12px;
}
.block-list-item-container button:active {
    background-color: rgb(var(--gray-100));
}

/* D-Day 편지 프리뷰 (renderLetterArticlePreview) */
.dday-letter-preview-container {
    display: block;
    background-color: white;
    width: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgb(var(--gray-100));
}
.dday-letter-content {
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* D-Day 시기별 토글 (renderToggleItem02) */
.dday-period-img {
    width: 24px;
    height: 24px;
    border-radius: 100%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dday-period-img img {
    width: 85%;
    height: 85%;
}

/* 임시저장 프리뷰 (renderDraftItem) */
.fragment-draft-preview-item {
    border-bottom: 1px solid rgb(var(--gray-100));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 52px;
}
.fragment-draft-preview-item .draft-title-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fragment-draft-preview-item .draft-title-box .draft-title {
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.fragment-draft-preview-item .delete-btn {
    cursor: pointer;
}

/* ── fragment_article_preview.css ── */
.article-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-preview-container {
    flex-shrink: 0;
    background-color: rgb(var(--white));
    border-radius: 10px;
    padding-top: 16px;
    padding-bottom: 16px;

    display: flex;
    justify-content: space-between;
    cursor: pointer;
    gap: 16px;
}
.article-preview-section-1 {
    /*max-width: 100%;*/
    min-width: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* 제목 */
.article-preview-section-1 .article-preview-title {
    font: var(--font-body2-r) !important;
    color: rgb(var(--gray-900));

    /* 줄 바꿈 관련 */
    max-width: 100%;
    display: -webkit-box;
    word-break: break-all;
    -webkit-line-clamp: 2; /* 최대 2줄 표시 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 제목 앞에 있는 카테고리 */
.article-preview-section-1 .article-preview-title .article-preview-category {
    display: inline-block;
    width: fit-content;
    height: fit-content;
    white-space: nowrap;
    border-radius: 80px;
    padding: 1px 11px;
    background-color: rgb(var(--gray-100));
    font-size: 12px;
    line-height: 18px;
    margin-right: 6px;
}
.article-preview-section-1 .article-preview-section-1-meta {
    font: var(--font-caption2-r) !important;
    color: rgb(var(--gray-600));

    display: flex;
    align-items: center;
    width: 100%;
    height: 16px;
}
.article-preview-section-1 .article-preview-section-1-meta * {
    height: 100%;
    line-height: 16px;
}
.article-preview-section-1 .article-preview-section-1-meta > * {
    padding-right: 6px;
    margin-right: 6px;
    border-right: 1px solid rgb(var(--gray-300));
}
.article-preview-section-1 .article-preview-section-1-meta > *:last-child {
    padding-right: 0;
    margin-right: 0;
    border: none;
}
.article-preview-section-1 .article-preview-section-1-meta .author-box {
    max-width: 35%;
    display: flex;
    align-content: center;
}
.article-preview-section-1 .article-preview-section-1-meta .author-box .author-week {
    font-weight: 600;
    margin-right: 3px;
    flex-shrink: 0;
}
.article-preview-section-1 .article-preview-section-1-meta .author-box .author-nickname {
    flex-grow: 1;
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.article-preview-section-1 .article-preview-section-1-meta .time-box {
    display: flex;
    align-content: center;

    flex-shrink: 0;
}
.article-preview-section-1 .article-preview-section-1-meta .icon-box {
    display: flex;
    align-items: center;
    gap: 6px;

    max-width: 35%;

}
.article-preview-section-1 .article-preview-section-1-meta .icon-box > div {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.article-preview-section-1 .article-preview-section-1-meta .icon-box .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
}
.article-preview-section-1 .article-preview-section-1-meta .icon-box .icon-count {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
    /* 내용 */
.article-preview-section-1 .article-preview-content {
    font: var(--font-body2-r) !important;
    color: rgb(var(--gray-900));
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-preview-section-2-img {
    width: 56px;
    flex-shrink: 0;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
}
.article-preview-section-2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-preview-section-2-date {
    font: var(--font-body2-r) !important;
    color: rgb(var(--primary-700));
    white-space: nowrap;
}

.border-bottom-container {
    border-radius: 0;
    border-bottom: 1px solid rgb(var(--gray-100));
}

/* ── fragment_tester_article_preview.css ── */
.tester-article-preview-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 24px;
}
.tester-article-preview-list::-webkit-scrollbar {
    display: none;
}

.tester-article-preview-container {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 8px;
    flex-shrink: 0;
}
.tester-article-preview-container.tester-article-preview-container-01 {
    position: relative;
    min-width: 0;
    margin-bottom: 8px;
}
.tester-article-preview-container.tester-article-preview-container-02 {
    width: 156px;
}
.tester-article-preview-container .tester-article-preview-section-1 {
    width: 100%;
    aspect-ratio: 1;
}
.tester-article-preview-container .tester-article-preview-section-1 img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.tester-article-preview-container .tester-article-preview-section-2 {
    width: 100%;
}

.tester-article-preview-container .tester-article-preview-section-2 .tester-meta {
    font: var(--font-caption2-sb) !important;

    display: flex;
    justify-content: space-between;
    align-content: center;
    gap: 4px;
}
.tester-article-preview-container .tester-article-preview-section-2 .tester-meta .tester-brand-name {
    color: rgb(var(--gray-600));
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tester-article-preview-container .tester-article-preview-section-2 .tester-meta .tester-applicants-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tester-article-preview-container .tester-article-preview-section-2 .tester-meta .tester-applicants-box .tester-applicants-02 {
    display: flex;
    align-content: center;
    gap: 1px;
}
.tester-article-preview-container .tester-article-preview-section-2 .tester-title {
    font: var(--font-body1-r) !important;
    color: rgb(var(--gray-900));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tester-article-preview-container .tester-article-preview-section-2 .tester-product-name {
    color: rgb(var(--primary-700));
    font: var(--font-caption2-sb) !important;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.tester-article-overlay-01 {
    position: absolute;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
}

.tester-article-overlay-02 {
    position: absolute;
    left: 8px;
    top: 8px;

    display: flex;
    justify-content: center;
    min-width: 50px;
    background-color: rgba(var(--sub));
    border-radius: 54px;
    padding: 2px 10px;
    color: white;
}

.circle-in-overlay {
    border-radius: 100%;
    width: 51px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
    color: white;
}

.circle-in-overlay-bg {
    border-radius: 100%;
    width: 120px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    color: white;

    font-family: Pretendard, sans-serif !important;
    font-weight: 400 !important;
    font-size: 38px !important;
    line-height: 160% !important;
}
/* ── fragment_navigation_button.css ── */
.navigation_button_01 {
    display: flex;
    justify-content: space-between;
    margin: 22px 0;
}

.navigation_button_02 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
/* ── modal_fullscreen.css ── */
.modal-fullscreen {
    left: 50% !important;
    top: 50% !important;
    transform: translateX(-50%) translateY(-50%) !important;
    transition: none;
}

.modal-fullscreen > .modal-content {
    width: 100% !important;
    height: 100% !important;
}
/* ── switch_button.css ── */
.switch-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-button input[type="checkbox"] {
    position: relative;
    width: 44px;
    height: 24px;
    margin-top: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    --bs-form-check-bg-image: none;
    background-color: rgba(var(--gray-400), 1);
    border: 2px solid rgba(var(--gray-400), 1);
    box-shadow: none;
    border-radius: 50px;
    cursor: pointer;
}

.switch-button input[type="checkbox"]:checked {
    background-color: rgba(var(--primary-700), 1);
    border: 2px solid rgba(var(--primary-700), 1);
}

.switch-button input[type="checkbox"]:checked::before {
    transform: translateX(100%) translateY(-50%);
}

.switch-button input[type="checkbox"]:before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
}
/* ── offcanvas.css ── */
.offcanvas-01.offcanvas-bottom {
    background-color: transparent;
    margin-bottom: 16px;
}
.offcanvas-01 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.offcanvas-01 .offcanvas-01-body {
    background-color: rgb(var(--gray-100));
    border-radius: 10px;
    width: 92%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.offcanvas-01 .offcanvas-01-body > * {
    width: 100%;
    height: 58px;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}
.offcanvas-01 .offcanvas-01-body > *:not(:last-child) {
    border-bottom: 1px solid rgb(var(--gray-300));
}
.offcanvas-01 .offcanvas_01_cancel {
    background-color: white;
    border-radius: 10px;
    width: 92%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.offcanvas-01 .offcanvas_01_cancel > * {
    width: 100%;
    height: 58px;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}


.offcanvas-02 {
    border-radius: 10px 10px 0 0;
}
.offcanvas-02 .offcanvas-header {
    border: none;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.offcanvas-02 .offcanvas-body {
    padding: 0;
}
.offcanvas-02 .sort-radio-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 16px 24px;
}
.offcanvas-02 .sort-radio-container:hover {
    background-color: rgb(var(--gray-100));
}

.offcanvas-02 input[type="radio"] {
    display: none; /* 기본 라디오 버튼 숨기기 */
}

.offcanvas-02 .sort-radio {
    font-weight: 400;
}
.offcanvas-02 .sort-checkmark {
    width: 24px;
    height: 24px;
}

.offcanvas-02 input[type="radio"]:checked + .sort-radio {
    color: rgb(var(--primary-700));
    font-weight: 600;
}
.offcanvas-02 input[type="radio"]:checked + .sort-radio + .sort-checkmark img {
    display: block; /* 선택 시 SVG 표시 */
}
.offcanvas-02 input[type="radio"]:not(:checked) + .sort-radio + .sort-checkmark img {
    display: none; /* 선택되지 않았을 때 SVG 숨기기 */
}
/* ── style.css ── */
/************************* 검색어 하이라트 start *************************/
.highlight {
    background-color: rgb(var(--primary-100));
}
/************************* 검색어 하이라트 end *************************/

/************************* Toast start *************************/
.toast-container {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    font: var(--font-body2-r) !important;

    width: 100%;
    height: auto;
}
.toast-container .custom-toast {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    padding: 12px 16px;
    text-align: center;
    transition: opacity 0.5s ease;
    opacity: 0;
}
/************************* Toast end *************************/

/************************* header start *************************/
.mobile-status-bar {
    background-color: white;
    flex-shrink: 0;
}
.header {
    flex-shrink: 0;
}
/* 헤더 아이콘/버튼 터치 피드백 */
.header a,
.header button,
.header-right > img[id] {
    transition: transform 0.15s ease, opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.header a:active,
.header button:active,
.header-right > img[id]:active {
    transform: scale(0.8);
    opacity: 0.5;
    transition: transform 0.06s ease, opacity 0.06s ease;
}
/************************* header end *************************/

/************************* 공용 레이아웃 start *************************/
html, body {
    overflow: hidden;
    overflow: clip;     /* iOS 16+: hidden보다 강력한 스크롤 차단 */
}
body {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100svh;
}
.page-layout {
    background-color: rgb(var(--gray-50));
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.page-layout .page-container {
    width: 100%;
    flex-grow: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;

    position: relative;
}
.page-layout .page-container .page-main-scroll {
    position: relative;

    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;

    scrollbar-width: none;
}
.page-layout .page-container .page-main-scroll::-webkit-scrollbar {
    display: none;
}
/************************* 공용 레이아웃 end *************************/

/************************* 가로 스크롤 start *************************/
/* horizontal-scroll-wrapper의 너비를 고정해줘야 됨 */
.horizontal-scroll-wrapper {
    width: 100%;
    position: relative;
}

.horizontal-scroll-wrapper .horizontal-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    touch-action: pan-x;
}
.horizontal-scroll-wrapper .horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* 고정된 위치에 gradient 배치 */
.horizontal-scroll-wrapper::before,
.horizontal-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.horizontal-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgb(var(--gray-50)), transparent);
    opacity: 0;
}
.horizontal-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgb(var(--gray-50)), transparent);
    opacity: 0;
}

.horizontal-scroll-wrapper.horizontal-scroll-gray-100::before {
    background: linear-gradient(to right, rgb(var(--gray-100)), transparent);
}
.horizontal-scroll-wrapper.horizontal-scroll-gray-100::after {
    background: linear-gradient(to left, rgb(var(--gray-100)), transparent);
}

.horizontal-scroll-wrapper.fade-left::before { opacity: 1; }
.horizontal-scroll-wrapper.fade-right::after { opacity: 1; }
.horizontal-scroll-wrapper.fade-both::before,
.horizontal-scroll-wrapper.fade-both::after { opacity: 1; }
/************************* 가로 스크롤 end *************************/


/************************* 리스트 조회 결과 start *************************/
/* 로딩 중 (data-state 미설정): 빈 화면 깜빡임 방지 */
.search-result:not([data-state]) .search-result__initial,
.search-result:not([data-state]) .search-result__empty,
.search-result:not([data-state]) .search-result__list {
    display: none !important;
}
/* 상태: initial */
.search-result[data-state="initial"] .search-result__initial {
    display: flex;
}
.search-result[data-state="initial"] .search-result__empty,
.search-result[data-state="initial"] .search-result__list {
    display: none !important;
}
/* 상태: empty */
.search-result[data-state="empty"] .search-result__empty {
    display: flex;
}
.search-result[data-state="empty"] .search-result__initial,
.search-result[data-state="empty"] .search-result__list {
    display: none !important;
}
/* 상태: list */
.search-result[data-state="list"] .search-result__list {
    display: flex;
}
.search-result[data-state="list"] .search-result__initial,
.search-result[data-state="list"] .search-result__empty {
    display: none !important;
}

/* 디폴트 css */
.search-result {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.search-result .search-result__initial,
.search-result .search-result__empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgb(var(--gray-600));
    text-align: center;
}
.search-result .search-result__list {
    overflow-y: scroll;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.search-result .search-result__list::-webkit-scrollbar {
    display: none;
}
/* 결과가 2열 그리드로 나열되는 경우 */
.search-result .search-result__list.search-result__list--2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: fit-content !important;
}
 /************************* 리스트 조회 결과 end *************************/


/************************* Pull to Refresh start *************************/
.pull-refresh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgb(var(--gray-500));
    font-size: 13px;
    z-index: 2;
}
.pull-refresh__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 14px;
}
.pull-refresh.ready .pull-refresh__arrow {
    transform: rotate(180deg);
}
.pull-refresh.refreshing .pull-refresh__arrow {
    display: none;
}
.pull-refresh__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgb(var(--gray-300));
    border-top-color: rgb(var(--gray-500));
    border-radius: 50%;
    animation: pull-refresh-spin 0.6s linear infinite;
}
.pull-refresh.refreshing .pull-refresh__spinner {
    display: block;
}
@keyframes pull-refresh-spin {
    to { transform: rotate(360deg); }
}
/************************* Pull to Refresh end *************************/


/************************* 로딩 스피너 start *************************/
.loading-indicator {
    width: 150px;
    height: 150px;

    opacity: 0;
    transition: opacity 0.3s ease;

    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.loading-indicator.show {
    opacity: 1;
}
/************************* 로딩 스피너 end *************************/

/************************* 기타 start *************************/
.flex-fill {
    flex-grow: 1 !important;
    min-height: 0;
}

.hide-scrollbar {
    scrollbar-width: none; /* Firefox에서 스크롤바 숨김 */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge에서 스크롤바 숨김 */
}
/************************* 기타 end *************************/
