.chatbot-widget {  
    position: fixed;  
    top: auto;  
    right: 20px;  
    bottom: 125px;  
    left: auto;  
    width: 60px;  
    height: 60px;  
    z-index: 999999;  
}  
.chatbot-panel {  
    position: absolute;  
    top: auto;  
    right: 0;  
    bottom: 76px;  
    left: auto;  
    display: block;  
    width: 320px;  
    height: 600px;  
    overflow: hidden;  
    visibility: hidden;  
    opacity: 0;  
    background-color: #ffffff;  
    border: 1px solid #d6d6d6;  
    border-radius: 12px;  
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);  
    pointer-events: none;  
    transform: translateY(12px);  
    transition: opacity 0.2s ease, transform 0.2s ease;  
}  
.chatbot-panel.is-open {  
    visibility: visible;  
    opacity: 1;  
    pointer-events: auto;  
    transform: translateY(0);  
}  
.chatbot-iframe {  
    display: block;  
    width: 100%;  
    height: 100%;  
    margin: 0;  
    padding: 0;  
    background-color: #ffffff;  
    border: 0;  
}  
.chatbot-button {  
    position: relative;  
    display: block;  
    width: 60px;  
    height: 60px;  
    margin: 0;  
    padding: 0;  
    color: #ffffff;  
    font-size: 26px;  
    line-height: 60px;  
    text-align: center;  
    background-color: #0067b8;  
    border: 0;  
    border-radius: 50%;  
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);  
    cursor: pointer;  
}  
.chatbot-button:hover {  
    background-color: #005a9e;  
}  
.chatbot-button:active {  
    background-color: #004578;  
}  
.chatbot-button:focus {  
    outline: 3px solid #ffbf47;  
    outline-offset: 3px;  
}  
.chatbot-icon {  
    position: absolute;  
    top: 50%;  
    left: 50%;  
    display: block;  
    width: 30px;  
    height: 30px;  
    line-height: 30px;  
    text-align: center;  
    transform: translate(-50%, -50%);  
}  
.chatbot-icon-open {  
    display: block;  
}  
.chatbot-icon-close {  
    display: none;  
    color: #ffffff;  
    font-size: 36px;  
    font-weight: normal;  
    line-height: 27px;  
}  
.chatbot-button.is-open .chatbot-icon-open {  
    display: none;  
}  
.chatbot-button.is-open .chatbot-icon-close {  
    display: block;  
}  
@media screen and (max-width: 480px) {  
    .chatbot-widget {  
        top: auto;  
        right: 9px;  
        bottom: 120px;  
        left: auto;  
        width: 56px;  
        height: 56px;  
    }  
    .chatbot-panel {  
        top: auto;  
        right: 0;  
        bottom: 70px;  
        left: auto;  
        width: 300px;  
        height: 380px;  
    }  
    .chatbot-button {  
        width: 56px;  
        height: 56px;  
        line-height: 56px;  
    }  
}

/* ============================================================
   ここから追加：Turnstile認証ゲート用スタイル
   ------------------------------------------------------------
   #chatbotAuthGate は class="chatbot-panel chatbot-auth-gate" を
   付与しているため、位置・サイズ・表示/非表示（is-open）の
   仕組みは上記の既存ルールをそのまま継承します。
   ここでは内部レイアウトのみを追加しています。
============================================================ */

.chatbot-auth-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
    text-align: center;
}

.chatbot-auth-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    color: #333333;
}

.chatbot-auth-close {
    margin-top: 16px;
    background: none;
    border: none;
    color: #666666;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.chatbot-auth-close:focus {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

@media screen and (max-width: 480px) {
    .chatbot-auth-inner {
        padding: 20px 12px;
    }
}
