/* =================================================================
   shortcode.css — 숏코드 전용 스타일
   [faq] / [kakao_share] / [account]
   ================================================================= */

/* ---- 색상 토큰 ---- */
:root {
    --sc-p1:  #f05b89;   /* pink 메인 */
    --sc-p2:  #f6a8ba;   /* pink 연 */
    --sc-p3:  #facedb;   /* pink 더 연 */
    --sc-pt:  #b40037;   /* pink 진 */
    --sc-pbg: #fdeaf1;   /* pink 배경 */
    --sc-g1:  #343232;
    --sc-g2:  #555560;
    --sc-g3:  #636466;
}

/* =================================================================
   [faq] FAQ 아코디언
   ================================================================= */

/* ---- 더보기 헤더 ---- */
.faq-wrap .faq-more-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--sc-g3);
    text-decoration: none;
    transition: color 0.2s;
}
.faq-wrap .faq-more-link:hover {
    color: var(--sc-p1);
}

/* ---- 탭 래퍼 (가로 스크롤 + 페이드) ---- */
.faq-tabs-wrap {
    position: relative;
}
.faq-tabs-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 2px;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--faq-fade, #fff));
    pointer-events: none;
    z-index: 1;
}

/* ---- 탭 목록 ---- */
.faq-tabs {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    border-bottom: 2px solid var(--sc-p1);
    padding-left: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.faq-tabs::-webkit-scrollbar {
    display: none;
}

/* ---- 탭 버튼 ---- */
.faq-tab {
    flex-shrink: 0;
    padding: 12px 28px;
    font-size: 20px;
    font-weight: 700;
    background-color: var(--sc-p2);
    color: var(--sc-pt);
    border-radius: 12px 12px 0 0;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.faq-tab:first-child {
    padding-top: 12px;
}
.faq-tab.is-active,
.faq-tab:hover {
    background-color: var(--sc-p1);
    color: #fff;
}

/* ---- 아코디언 목록 ---- */
.faq-list {
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

/* ---- 아코디언 아이템 ---- */
.faq-item {
    border-bottom: 1px solid var(--sc-p1);
    background-color: transparent;
    transition: background-color 0.2s;
}
.faq-item:last-child,
.faq-item.is-last-visible {
    border-bottom: none;
}
.faq-item.is-open {
    background-color: #fff;
}

/* ---- 아코디언 헤더 버튼 ---- */
.faq-item__head {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 24px 32px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

/* ---- 카테고리 배지 ---- */
.faq-item__badge {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--sc-p1);
    border: 1px solid var(--sc-p1);
    background-color: #fff;
    padding: 0px 12px;
    height: 32px;
    border-radius: 0;
    white-space: nowrap;
}

/* ---- 질문 텍스트 ---- */
.faq-item__question {
    flex: 1;
    font-size: 20px;
    color: var(--sc-g1);
    font-weight: 500;
}

/* ---- 토글 아이콘 ---- */
.faq-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--sc-p1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 14px;
}
.faq-item.is-open .faq-item__icon {
    background-color: var(--sc-p3);
}

/* ---- 답변 영역 ---- */
.faq-item__body {
    padding: 0 32px 0 var(--body-indent, 32px);
    font-size: 16px;
    color: var(--sc-g2);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity    0.35s ease,
        transform  0.35s ease,
        padding-bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-open .faq-item__body {
    padding-bottom: 16px;
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
}
.faq-item__body > *:last-child {
    margin-bottom: 0;
}

/* ---- 하단 배너 ---- */
.faq-banner {
    margin-top: 24px;
    border-radius: 16px;
    position: relative;
    background-color: var(--sc-pbg);
}
.faq-banner.is-front {
    background-color: #fff;
}
.faq-banner__image {
    position: absolute;
    left: 40px;
    top: 16px;
}
.faq-banner__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: 190px;
    padding: 28px 40px 28px 0;
}
.faq-banner__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sc-g1);
    display: block;
    margin-bottom: 8px;
}
.faq-banner__desc {
    font-size: 18px;
    color: var(--sc-g3);
}
.faq-banner__cta {
    margin-left: auto;
    flex-shrink: 0;
}

/* ---- seemore 헤더 래퍼 ---- */
.seemore {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}
.seemore a {
    position: absolute;
    top: -66px;
    left: 240px;
}

.home .seemore a {
    position: absolute;
    top: -72px;
    left: 160px;
}

/* =================================================================
   반응형
   ================================================================= */
@media (max-width: 1024px) {
    .faq-tabs-wrap {margin:0 -24px; width:calc(100% + 48px)}
    .seemore a { font-size: 14px; top:-49px; left:150px}
    .faq-tabs {
        padding-left: 24px;
        padding-right:48px
    }
    .faq-tab {
        border-radius: 6px 6px 0 0;
        padding: 10px 16px;
        font-size: 15px;
    }
    .faq-item__head {
        padding: 16px;
        gap: 10px;
    }
    .faq-item__question {
        font-size: 15px;
    }
    .faq-item__badge {
        align-self: flex-start;
        height: 28px;
        font-size: 12px;
        padding: 3px 8px;
    }
    .faq-item__body {
        padding: 0 16px 0 var(--body-indent, 16px);
        font-size: 13px;
        line-height: 20px;
    }
    .faq-item__body p { margin-top: 0;}
    .faq-banner {
        padding: 24px;
    }
    .faq-banner__inner {
        flex-direction: column;
        gap:16px;
        margin: 0;
        padding: 0;
    }
    .faq-banner__inner div {
        padding-left: 86px;
    }
    .faq-banner__title {
        font-size: 16px;
    }
    .faq-banner__desc {
        font-size: 14px;
    }
    .faq-banner__image {
        width: 64px;
        left: 28px;
        top: 24px;
    }
    .faq-banner__cta {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .home .seemore a {
        top: -66px;
        left: 125px;
    }
}

/* =================================================================
   [faq] 페이지네이션 (게시판 스타일 재사용)
   ================================================================= */
.faq-pagination {
    margin-top: 24px;
}
.faq-pagination .navigation.pagination {
    margin-top: 0;
}
.faq-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}
.faq-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 400;
    color: #343232;
    background: #eee;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.faq-pagination .page-numbers.current {
    background: #F05B89;
    color: #fff;
    font-weight: 700;
}
.faq-pagination .page-numbers.prev,
.faq-pagination .page-numbers.next {
    background: #FDEBF1;
    color: #F05B89;
}
.faq-pagination .page-numbers:not(.current):hover {
    background: #F6A8BA;
    color: #fff;
}

/* =================================================================
   Smash Balloon Instagram Feed (SBI) 오버라이드
   ================================================================= */

/* 컨테이너 고정 높이·너비 리셋 */
#sb_instagram.sbi {
    width: 100% !important;
    height: auto !important;
    padding-bottom: 0 !important;
}

/* 내부 이미지: 3컬럼 그리드 */
#sb_instagram #sbi_images {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}
@media (min-width: 1024px) {
    #sb_instagram #sbi_images {
        gap: 24px !important;
    }
}

/* 각 아이템 너비 리셋 */
#sb_instagram .sbi_item {
    width: 100% !important;
}

/* 4:5 비율 래퍼 */
#sb_instagram .sbi_photo_wrap {
    position: relative !important;
    padding-top: 125% !important;
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

/* 앵커·이미지: 래퍼 꽉 채우기 */
#sb_instagram .sbi_photo,
#sb_instagram .sbi_photo img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
