@charset "UTF-8";

/*
 * =============================================================
 * INFORMATION
 * -------------------------------------------------------------
 * Author : sdlee
  * -------------------------------------------------------------
 * Create Date :2026.10
 * -------------------------------------------------------------
 * Modified Date :2026.10 
 * =============================================================
 */

/* 상단 이동 버튼의 실제 표시 상태에 맞춰 아이콘과 패널을 함께 배치한다. */
.chatbot-div,
.chatbot-panel {
    --chatbot-bottom:40px;
    --chatbot-right:40px;
}
body:has(.footer_v2 .v2_btn_top.is_show) .chatbot-div,
body:has(.footer_v2 .v2_btn_top.is_show) .chatbot-panel {
/*  --chatbot-bottom:108px; */
    --chatbot-bottom:40px;
}
.chatbot-div {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    position:fixed;
    right:var(--chatbot-right);
    bottom:var(--chatbot-bottom);
    width:56px;
    height:56px;
    padding:0;
    border-radius:var(--v2-radius-full);
    background-color:var(--v2-gray-0);
    border:1px solid var(--v2-blue-gray-10);
    box-shadow:var(--v2-shadow-md-soft);
    color:var(--v2-blue-gray-50);
    cursor:pointer;
    transition:bottom 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, background-color 0.2s ease;
    z-index:var(--z-floating);
}

.chatbot-div:hover {
	border-color:var(--v2-blue-50);
    box-shadow:var(--v2-shadow-blue-sm);
    transform:translateY(-5px);
}


.chatbot-div img {
    width:100%;
    height:100%;
}
.chatbot-div[hidden],
.chatbot-panel[hidden] {
    display:none;
}
.chatbot-panel {
    position:fixed;
    right:var(--chatbot-right);
    bottom:var(--chatbot-bottom);
    width:560px;
    height:710px;
    max-width:calc(100vw - var(--chatbot-right) - 22px);
    max-height:calc(100vh - var(--chatbot-bottom) - 22px);
    max-height:calc(100dvh - var(--chatbot-bottom) - 22px);
    box-sizing:border-box;
    overflow:hidden;
/*     background:#fff; */
/*     border:1px solid #d9dee7; */
    border-radius:18px;
    box-shadow:0 12px 40px rgba(0, 0, 0, 0.18);
    z-index:calc(var(--z-floating, 1000) + 1);
    transition:bottom 0.3s ease, max-height 0.3s ease;
}
.chatbot-panel iframe {
    display:block;
    width:100%;
    height:100%;
    border:0;
}
.chatbot-dot {
    position: absolute;
    right: 3px;
    bottom: 3px;
    display: inline-flex;
    width: 21px;
    min-width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #153e66;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
@media (max-width:1023px) {
    .chatbot-div,
    .chatbot-panel {
        --chatbot-bottom:120px;
        --chatbot-right:20px;
    }
    body:has(.footer_v2 .v2_btn_top.is_show) .chatbot-div,
    body:has(.footer_v2 .v2_btn_top.is_show) .chatbot-panel {
/*         --chatbot-bottom:190px; */
        --chatbot-bottom:120px;
    }
}
@media (prefers-reduced-motion:reduce) {
    .chatbot-div,
    .chatbot-panel {
        transition:none;
    }
}
