/* ─── 퀵배너 플로팅 사이드바 ─── */

.quick-banners {
    position: fixed;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 페이지 버튼 등장 시 기본 버튼들을 아래로 */
.quick-banners.qb-shifted {
    transform: translateY(calc(-50% + 38px)); /* 데스크톱 기준 */
}
@media (max-width: 768px) {
    .quick-banners.qb-shifted {
        transform: translateY(calc(-50% + 22px)); /* 모바일 36px 버튼 기준 */
    }
}

.qb-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    width: 64px;
    padding: 0;
    border-radius: 32px;
    overflow: visible;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.qb-btn:hover {
    z-index: 10;
    text-decoration: none;
}

.qb-label {
    position: absolute;
    right: calc(100% - 40px);
    z-index: 1;
    top: 50%;
    transform: translateY(-50%) translateX(16px);
    opacity: 0;
    background: #fff;
    border-radius: 30px 0 0 30px;
    padding: 0 64px 0 24px;
    height: 48px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: #444;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.qb-btn:hover .qb-label,
.qb-btn.is-open .qb-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.qb-icon {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: inherit;
    border-radius: inherit;
}
.qb-kakao {
    background-color: #F6E446;
}
.qb-icon.qb-kakao-icon img {
    width:34px;
    height: 32px;
}

/* 문의하기 버튼 */
.qb-inquiry {
    background-color: #F4749D;
}
.qb-icon.qb-kakao-icon img {
    width:34px;
    height: 32px;
}
/* 페이지별 퀵배너 버튼 */
.qb-page {
    background-color: #F05B89;
    color: #fff;
}

.qb-page:hover {
    color: #fff;
}

/* ─── 페이지별 퀵배너 버튼 (독립 fixed) ─── */
/* 위치: 3버튼 그룹 기준 최상단 (50% - 108px) */
#qb-page-btn {
    position: fixed;
    right: 36px;
    top: calc(50% - 108px);
    z-index: 901;
    transform: translateX(80px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}
#qb-page-btn.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* ─── 히어로 섹션 퀵버튼 ─── */

.hero-quick-btn {
    position: absolute;
    right: calc(50% - 600px);
    top: 120px;
    display: inline-flex;
    align-items: center;
    height: 80px;
    gap: 16px;
    padding: 0 48px;
    color: #fff;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(0deg, #F05B89 30%, #F386A4 112.5%);
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
    animation: heroQbFadeIn 0.6s ease both;
    animation-delay: 0.3s;
    z-index: 10;
}

.hero-quick-btn:hover {
    color: #fff;
    text-decoration: none;
    background-color: #f05590;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(244, 116, 157, 0.5);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-quick-btn i {
    font-size: 32px;
}

@keyframes heroQbFadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─── 히어로 없는 페이지: 고정 긴 버튼 ─── */
.hero-quick-btn--fixed {
    position: fixed;
    top: calc(var(--top-banner-height) + var(--site-header-height) + 120px);
    animation: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
body.admin-bar .hero-quick-btn--fixed {
    top: calc(var(--top-banner-height) + var(--site-header-height) + 120px + 32px);
}
.hero-quick-btn--fixed.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
}

/* ─── 모바일: 크기·위치 조정 ─── */

@media (max-width: 768px) {
    /* 1. 오른쪽 여백 36px → 8px */
    .quick-banners {
        right: 8px;
        gap:8px
    }
    #qb-page-btn {
        right: 8px;
        top: calc(50% - 62px); /* 36px 버튼 2개(+8px gap) + 페이지 버튼 전체 중앙 기준: (80+8+36)/2 = 62px */
    }

    /* 2. 버튼 크기 64px → 48px */
    .qb-btn {
        width: 36px;
        height: 36px;
        border-radius: 24px;
    }
    .qb-icon {
        width:36px;
        height:36px;
        font-size: 18px;
    }
    .qb-icon img{
        width: 14px;
        height: auto;
    }
    .qb-icon.qb-kakao-icon img {width:20px; height: auto;}
    .qb-label {
        right: calc(100% - 18px); /* 아이콘 노출 너비 조정 */
        padding: 0 28px 0 16px;   /* 우측 패딩 = 버튼 너비 */
        height: 36px;
        font-size: 13px;
    }

    /* hero-quick-btn: 모바일에서 우측 배치 */
    .hero-quick-btn {
        right: 16px;
        top: 46%;
        transform: translateY(-50%);
        height: 40px;
        font-size: 13px;
        font-weight: 700;
        padding: 0 18px;
        gap: 8px;
    }
    /* 히어로 없는 페이지 fixed 버튼: 헤더 아래 배치 */
    .hero-quick-btn--fixed {
        top: calc(var(--top-banner-height) + var(--site-header-height));
        transform: none;
    }
    .hero-quick-btn i {
        font-size: 18px;
    }
    .hero-desc {padding-right: 50%;}
}
