/* Travelieons website chat widget. Brand colours come from travelieons.css. */
#ti-chat { position: fixed; right: 18px; bottom: 18px; z-index: 9000; font-family: inherit; }
#ti-chat[hidden] { display: none; }
.ti-chat-btn {
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
    background: linear-gradient(135deg, var(--ti-primary, #F26B32), var(--ti-primary-2, #FB8B3D)); color: #fff;
    box-shadow: 0 10px 26px rgba(242, 107, 50, .38); display: flex; align-items: center; justify-content: center; margin-left: auto;
}
.ti-chat-btn:focus-visible { outline: 3px solid rgba(242, 107, 50, .45); outline-offset: 3px; }
.ti-chat-dot { position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: #10B981; border: 2px solid #fff; }
.ti-chat-teaser {
    position: absolute; right: 0; bottom: 70px; width: min(300px, calc(100vw - 36px)); background: #fff; color: #241207;
    border-radius: 14px; box-shadow: 0 12px 30px rgba(36, 18, 7, .18); padding: 12px 34px 12px 14px; font-size: 14px; line-height: 1.45;
}
.ti-chat-teaser-text { all: unset; cursor: pointer; display: block; }
.ti-chat-teaser-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: #8a7a6e; padding: 4px; }
.ti-chat-panel {
    position: absolute; right: 0; bottom: 70px; width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px));
    background: #fff; border-radius: 18px; box-shadow: 0 18px 48px rgba(36, 18, 7, .25); display: flex; flex-direction: column; overflow: hidden;
}
.ti-chat-panel[hidden] { display: none; }
.ti-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; color: #fff;
    background: linear-gradient(135deg, var(--ti-primary, #F26B32), var(--ti-primary-2, #FB8B3D)); }
.ti-chat-head b { display: block; font-size: 16px; }
.ti-chat-status { font-size: 12.5px; opacity: .92; }
.ti-chat-status.is-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34D399; margin-right: 6px; }
.ti-chat-close { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.ti-chat-body { flex: 1; overflow-y: auto; padding: 14px; background: #FBF7F2; display: flex; flex-direction: column; gap: 8px; }
.ti-chat-greet { margin: 0 0 6px; font-size: 14px; color: #3A2416; }
.ti-chat-msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ti-chat-msg small { display: block; font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.ti-chat-msg.is-visitor { align-self: flex-end; background: var(--ti-primary, #F26B32); color: #fff; border-bottom-right-radius: 4px; }
.ti-chat-msg.is-staff, .ti-chat-msg.is-bot { align-self: flex-start; background: #fff; color: #241207; border: 1px solid #EFE4D7; border-bottom-left-radius: 4px; }
.ti-chat-msg.is-bot { background: #FFF6EE; }
.ti-chat-form { display: flex; flex-direction: column; gap: 10px; }
.ti-chat-field label { display: block; font-size: 12.5px; font-weight: 700; color: #3A2416; margin-bottom: 4px; }
.ti-chat-field input, .ti-chat-field select, .ti-chat-field textarea, .ti-chat-input {
    width: 100%; box-sizing: border-box; border: 1px solid #E4D6C7; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; background: #fff; color: #241207;
}
.ti-chat-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ti-chat-err { color: #B91C1C; font-size: 13px; min-height: 0; }
.ti-chat-err:empty { display: none; }
.ti-chat-start, .ti-chat-send { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14px; cursor: pointer; color: #fff;
    background: var(--ti-primary, #F26B32); }
.ti-chat-start:disabled, .ti-chat-send:disabled { opacity: .6; cursor: progress; }
.ti-chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #EFE4D7; background: #fff; }
.ti-chat-foot[hidden] { display: none; }
.ti-chat-input { resize: none; max-height: 110px; }
@media (max-width: 480px) {
    #ti-chat { right: 12px; bottom: 12px; }
    .ti-chat-panel { position: fixed; right: 12px; left: 12px; bottom: 82px; width: auto; height: calc(100vh - 110px); }
}
