#aichat {
    background: #F3F3F3;
}

#aichat .title {
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    line-height: 3.7;
    border-bottom: 1px solid #ccc;
    width: calc(100% - 32px);
    margin: 0 auto;
}

/*---------------------------
 .chat-content
 ----------------------------*/
.chat-content {
    padding: 16px 0 1px;
}

.date {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 3em;
}

.ai {
    background: url(https://img.travel.rakuten.co.jp/smart/test/pitari/202406/aichat/images/ico-ai.png) 16px top no-repeat;
    background-size: 32px;
    margin-bottom: 12px;
    opacity: 0;
    transform: scale(0);
}

.show-aichat .ai {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    opacity: 1;
    transform: scale(1);
}

.show-aichat .ai:nth-child(2) {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s;
}

.ai.intro2 h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
}

.ai.intro2 ul {
    list-style-type: disc !important;
    margin-top: 8px;
    padding-left: 20px;
}

.ai.intro2 li {
    list-style-type: disc !important;
    /* padding-left: 20px; */
}

.ai-text {
    font-size: 13px;
    color: #333;
    background: #fff;
    padding: 10px 16px;
    margin: 0 16px 0 56px;
    border: 1px solid #ccc;
    border-radius: 0 8px 8px 8px;
    display: inline-block;
    max-width: 80%;
}

.ai-text ul {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-text ul li {
}

.ai-text ul li a {
    font-size: 12px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    box-sizing: border-box;
}

/*---------------------------
 #aichat .footer
 ----------------------------*/
/* #aichat .footer {
    width: 100%;
    height: 70px;
    bottom: 0;
    border-top: 1px solid #ccc;
    display: flex;
    z-index: 1;
    background: #F3F3F3;
    display: flex;
    align-items: center;
    gap: 0 8px;
}

#aichat .input-field {
    border: none;
    margin: 0 0 0 16px;
    padding: 0;
    width: calc(100% - 70px);
    height: 38px;
}

#aichat .input-field input {
    font-size: 13px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    margin: 0;
    padding: 8px;
    box-sizing: border-box;
} */


#aichat textarea {
    field-sizing: content;
    max-height: 4lh;
}


#aichat .chat-send {
    width: 38px;
    display: flex;
    outline: none;
}

#svg-send {
    width: 38px;
    height: auto;
    padding-top: 27px;
}


/* ------------------------------- */

#aichat .footer {
    width: 100%;
    height: auto;
    min-height: 70px;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #ccc;
    display: flex;
    z-index: 1;
    background: #F3F3F3;
    display: flex;
    align-items: center;
    gap: 0 8px;
}

.modal-concierge-popup-content {
    align-items: center;
    gap: 0 8px;
}

#aichat .input-field {
    border: none;
    margin: 16px 0 16px 16px;
    padding: 0;
    width: 80%;
    display: flex;
    height: auto;
    flex-direction: column;
}

.modal-concierge-popup-content .input-field {
    height: auto;
    flex-direction: column;
    width: 100%;
}

.modal-concierge-popup-content-inner {
    display: flex;
    align-items: center;
    gap: 0 8px;
    margin: 16px 16px 16px 16px;
}

/* .input-field input {
    font-size: 13px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    margin: 0;
    padding: 8px;
    box-sizing: border-box;
} */

#aichat .chat-message,
.modal-concierge-popup-content .chat-message {
    font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, "ＭＳ Ｐゴシック", "MS P Gothic", sans-serif;
    font-size: 13px;
    color: #333;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    margin: 0;
    padding: 8px;
    resize: none;
    line-height: 1.5;
    height: 38px;
    min-height: 38px;
    max-height: 8rem;
    box-sizing: border-box;
}

.input-field p {
    margin: 0;
    font-size: 12px;
    color: #333333;
    padding-bottom: 12px;
}

.modal-concierge-popup-content p {
    margin: 0;
    font-size: 12px;
    color: #333333;
    padding-top: 35px;
    padding-left: 16px;
}

.input-field p a {
    color: #54822B;
}

.modal-concierge-popup-content p a {
    color: #54822B;
}

/*---------------------------
.aichat-link
 ----------------------------*/
.aichat-link {
    text-align: right;
    margin-top: 16px;
}

.aichat-link a {
    font-size: 14px;
    padding-left: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aichat-link a:before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    background: url(https://img.travel.rakuten.co.jp/smart/test/pitari/202406/aichat/top/images/ico-robot.png) no-repeat;
    background-size: 26px;
    margin-right: 4px;
    position: relative;
    top: -2px;
    left: -1px;
}

.aichat-link a:after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    margin: 0px 0px 0px 0px;
    position: relative;
    left: 3px;
}

.aichat-link a::after {
    transform: rotate(45deg);
}

/*---------------------------
.aichat-link-btn
 ----------------------------*/
.btn-aichat {
    display: none;
    width: 94px;
    height: 94px;
    position: fixed;
    bottom: 105px;
    right: 10px;
    z-index: 9999
}

.btn-aichat img {
    width: 100%;
    height: auto
}

.btn-aichat-close {
    width: 11px;
    height: 11px;
    position: absolute;
    top: 0;
    right: 5px;
    background: url(https://img.travel.rakuten.co.jp/share/smart/images/close-chatbot.png) center no-repeat;
    background-size: 11px 11px;
    padding: 8px;
    z-index: 2;
    text-indent: -9999px
}

.btn-aichat {
    transition: bottom 0.2s;
}

.btn-aichat {
    z-index: 999 !important;
}



/*============================
.ai-chat-modal
============================*/

.modal-title {
    text-align: center;
    font-size: 15px;
    display: block;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.modal-disclaimer {
    font-size: 13px;
    color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
}


.modal-disclaimer-overlay {
    background: #00000061;
    width: 100%;
    height: 100%;
}

.modal-disclaimer-in {
    padding: 16px;
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 84%;
    max-width: 380px;
    box-sizing: border-box;
    border-radius: 8px;
    text-align: left;
    z-index: 1;
    display: none;
    overflow: auto;
    height: 80vh;
}


.modal-close-top {
    position: absolute;
    right: 16px;
    background: url(https://img.travel.rakuten.co.jp/smart/test/pitari/202406/aichat/images/ico-header-close.svg)
        center no-repeat;
    border: none;
    width: 24px;
    height: 24px;
}

.modal-close-top-popup {
    position: absolute;
    right: 11px;
    padding-top: 40px;
    background: url(https://img.travel.rakuten.co.jp/smart/test/pitari/202406/aichat/images/ico-header-close.svg)
        center no-repeat;
    border: none;
    width: 24px;
    height: 24px;
}

.numbered-list {
    counter-reset: list-counter;
    margin-bottom: 16px;
}

.numbered-list li {
    list-style: none;
    position: relative;
    padding-left: 18px;
    margin-bottom: 1px;
}

.numbered-list li::before {
    counter-increment: list-counter;
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.modal-close-bottom {
    display: block;
    margin: 18px auto 0;
    background: white;
    color: #adadad;
    border: none;
    padding-bottom: 40px;
}

.modal-disclaimer-in .external-link {
    text-align: center;
}


.external-link a {
    color: #54822b;
    position: relative;
}

.external-link a:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(https://img.travel.rakuten.co.jp/smart/test/pitari/202406/aichat/images/ico-external.svg)
        center center no-repeat;
    margin: 0 3px;
    position: relative;
    top: 2px;
}

.ai-text {
    font-size: 13px;
    color: #333;
    background: #fff;
    padding: 10px 16px;
    margin: 0 16px 0 56px;
    border: 1px solid #ccc;
    border-radius: 0 8px 8px 8px;
    display: inline-block;
    max-width: 80%;
}

.ai-text-note {
    margin: 16px 0;
}


.modal-concierge-popup {
    position: fixed;
    bottom: -100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
    border-radius: 10px 10px 0 0;
    width: 100%;
}

.modal-concierge-popup.show {
    bottom: 0;
}


.modal-concierge-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000061;
    z-index: 999;
}

.modal-concierge-popup-overlay.show {
    display: block;
}

#svg-send-popup {
    vertical-align: unset;
}