#wadstars-travel-chat {
    --wstc-green: #085948;
    --wstc-deep: #063f36;
    --wstc-ink: #1d332d;
    --wstc-edge: 20px;
    --wstc-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    position: fixed;
    bottom: var(--wstc-bottom);
    left: max(var(--wstc-edge), env(safe-area-inset-left, 0px));
    z-index: 99990;
    color: var(--wstc-ink);
    font: 400 15px/1.5 "Segoe UI", Tahoma, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
    text-align: start;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
    isolation: isolate;
}
#wadstars-travel-chat[data-position="right"] {
    left: auto;
    right: max(var(--wstc-edge), env(safe-area-inset-right, 0px));
}
#wadstars-travel-chat *, #wadstars-travel-chat *::before, #wadstars-travel-chat *::after {
    box-sizing: border-box;
}
#wadstars-travel-chat [hidden] { display: none !important; }
#wadstars-travel-chat svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: none;
    max-width: none;
    color: inherit;
}
#wadstars-travel-chat button, #wadstars-travel-chat textarea, #wadstars-travel-chat a {
    margin: 0;
    box-shadow: none;
    font: inherit;
    text-transform: none;
    letter-spacing: normal;
    touch-action: manipulation;
}
#wadstars-travel-chat button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}
#wadstars-travel-chat button::before, #wadstars-travel-chat button::after,
#wadstars-travel-chat a::before, #wadstars-travel-chat a::after { content: none; }
#wadstars-travel-chat :focus-visible { outline: 2px solid #ad7630; outline-offset: 2px; }
#wadstars-travel-chat .wstc-launch {
    width: 58px;
    height: 58px;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #08705a, var(--wstc-deep));
    box-shadow: 0 5px 17px #173a343c;
    transition: transform .16s ease, box-shadow .16s ease;
}
#wadstars-travel-chat .wstc-launch svg { width: 30px; height: 30px; }
#wadstars-travel-chat .wstc-launch:hover { transform: translateY(-2px); box-shadow: 0 7px 19px #173a3450; }
#wadstars-travel-chat #wstc-panel {
    display: flex;
    flex-direction: column;
    width: min(382px, calc(100vw - 2 * var(--wstc-edge)));
    height: 535px;
    max-height: calc(100vh - var(--wstc-bottom) - 16px - var(--wp-admin--admin-bar--height, 0px));
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #153e3326;
    border-radius: 23px;
    box-shadow: 0 12px 48px #0d302c29, 0 3px 10px #0d302c15;
}
#wadstars-travel-chat .wstc-header {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    padding: 17px 13px 17px 17px;
    margin: 0;
    position: static;
    background: linear-gradient(105deg, #075545, #06463d 72%, #0b594a);
    color: #fff;
    border: 0;
    box-shadow: none;
    width: auto;
    height: auto;
    text-align: start;
}
#wadstars-travel-chat[dir="rtl"] .wstc-header { padding: 17px 17px 17px 13px; }
#wadstars-travel-chat .wstc-avatar {
    width: 41px;
    height: 41px;
    border-radius: 13px;
    background: #ffffff12;
    border: 1px solid #ffffff42;
    display: grid;
    place-items: center;
    flex: none;
}
#wadstars-travel-chat .wstc-avatar svg { width: 30px; height: 30px; }
#wadstars-travel-chat .wstc-identity {
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
#wadstars-travel-chat #wstc-title {
    color: #fff;
    font: 650 18px/1.2 "Segoe UI", Tahoma, Arial, sans-serif;
    letter-spacing: -.3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#wadstars-travel-chat .wstc-subtitle { font-size: 12px; color: #d1e4da; }
#wadstars-travel-chat .wstc-language, #wadstars-travel-chat .wstc-close {
    color: #fff;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
}
#wadstars-travel-chat .wstc-language {
    padding: 0 8px;
    border: 1px solid #ffffff55;
    font-size: 12px;
}
#wadstars-travel-chat .wstc-language:hover, #wadstars-travel-chat .wstc-close:hover { background: #ffffff1c; }
#wadstars-travel-chat .wstc-header :focus-visible { outline-color: #f5d893; }
#wadstars-travel-chat .wstc-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 16px 18px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #aabbb0 transparent;
    background-color: #f5f3ea;
    background-image: radial-gradient(#586d5320 .8px, transparent .9px);
    background-size: 11px 11px;
}
#wadstars-travel-chat .wstc-scroll:focus-visible { outline-offset: -3px; }
#wadstars-travel-chat .wstc-date {
    width: fit-content;
    margin: 0 auto 14px;
    padding: 3px 12px;
    border: 1px solid #d7dfd4;
    border-radius: 20px;
    background: #edf0e8;
    color: #42564c;
    font-size: 11px;
    font-weight: 600;
}
#wadstars-travel-chat .wstc-row { display: flex; align-items: flex-start; padding: 0 3px 9px; }
#wadstars-travel-chat .wstc-out { justify-content: flex-end; }
#wadstars-travel-chat .wstc-bubble {
    max-width: 88%;
    min-width: 55px;
    padding: 10px 12px 6px;
    border: 1px solid #dcdfd6;
    border-radius: 13px;
    border-start-start-radius: 3px;
    background: #fff;
    color: var(--wstc-ink);
    line-height: 1.45;
    font-size: 14px;
    box-shadow: 0 1px 2px #223e2c0c;
    overflow-wrap: anywhere;
}
#wadstars-travel-chat .wstc-text { white-space: pre-wrap; text-align: start; }
#wadstars-travel-chat .wstc-out .wstc-bubble {
    background: #dcf3d7;
    border-color: #c4e2bd;
    border-start-start-radius: 13px;
    border-start-end-radius: 3px;
}
#wadstars-travel-chat time {
    display: block;
    padding-top: 3px;
    color: #56675e;
    text-align: end;
    font-size: 10px;
    line-height: 1.3;
}
#wadstars-travel-chat .wstc-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    width: min(100%, 292px);
    padding: 2px 3px 8px;
}
#wadstars-travel-chat .wstc-topics button {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    min-height: 39px;
    padding: 6px 12px;
    border: 1px solid #c5d3c6;
    border-radius: 11px;
    background: #fbfcf8;
    color: var(--wstc-green);
    font-size: 12.5px;
    line-height: 1.3;
}
#wadstars-travel-chat .wstc-topics svg { width: 17px; height: 17px; }
#wadstars-travel-chat .wstc-topics button:hover { background: #edf5ec; border-color: #8fae99; }
#wadstars-travel-chat .wstc-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #e1e8de;
    color: var(--wstc-green);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
#wadstars-travel-chat .wstc-result svg, #wadstars-travel-chat .wstc-handoff svg:last-child { width: 15px; height: 15px; }
#wadstars-travel-chat[dir="rtl"] .wstc-result svg, #wadstars-travel-chat[dir="rtl"] .wstc-handoff svg:last-child { transform: scaleX(-1); }
#wadstars-travel-chat .wstc-handoff:hover span, #wadstars-travel-chat .wstc-result:hover span { text-decoration: underline; }
#wadstars-travel-chat .wstc-status:not(:empty) {
    width: fit-content;
    margin: 1px 3px 0;
    padding: 6px 9px;
    border: 1px solid #d7dfd4;
    border-radius: 9px;
    background: #f9faf5;
    color: #465d50;
    font-size: 12px;
}
#wadstars-travel-chat .wstc-error button { margin-inline-start: 6px; color: var(--wstc-green); text-decoration: underline; }
#wadstars-travel-chat .wstc-footer {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 13px 12px;
    border-top: 1px solid #dce3d7;
    background: #fafbf8;
}
#wadstars-travel-chat .wstc-handoff {
    display: flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    color: var(--wstc-green);
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
}
#wadstars-travel-chat .wstc-handoff svg:first-child { width: 14px; height: 14px; }
#wadstars-travel-chat .wstc-disclosure { color: #516158; font-size: 11px; line-height: 1.45; }
#wadstars-travel-chat .wstc-disclosure a { color: var(--wstc-green); text-decoration: underline; }
#wadstars-travel-chat .wstc-compose { display: flex; align-items: flex-end; gap: 8px; padding: 0; margin: 0; }
#wadstars-travel-chat .wstc-compose textarea {
    flex: 1;
    min-width: 0;
    width: auto;
    min-height: 42px;
    max-height: 90px;
    resize: none;
    padding: 10px 13px;
    border: 1px solid #c6d1c6;
    border-radius: 19px;
    background: #fff;
    color: var(--wstc-ink);
    font-size: 16px;
    line-height: 20px;
    appearance: none;
    outline-offset: 1px;
}
#wadstars-travel-chat .wstc-compose textarea::placeholder { color: #657369; opacity: 1; }
#wadstars-travel-chat .wstc-send {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--wstc-green);
    color: #fff;
}
#wadstars-travel-chat .wstc-send:hover:enabled { background: var(--wstc-deep); }
#wadstars-travel-chat .wstc-send:disabled { background: #dce6dc; color: #597063; cursor: default; }
#wadstars-travel-chat[dir="rtl"] .wstc-send svg { transform: scaleX(-1); }
#wadstars-travel-chat .wstc-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
@media (max-width: 480px) {
    #wadstars-travel-chat { --wstc-edge: 10px; --wstc-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
    #wadstars-travel-chat #wstc-panel { width: calc(100vw - 2 * var(--wstc-edge)); height: 570px; border-radius: 18px; }
    #wadstars-travel-chat .wstc-launch { width: 54px; height: 54px; }
    #wadstars-travel-chat .wstc-scroll { padding-inline: 12px; }
}
@media (max-height: 410px) {
    #wadstars-travel-chat { --wstc-bottom: max(5px, env(safe-area-inset-bottom, 0px)); }
    #wadstars-travel-chat .wstc-header, #wadstars-travel-chat[dir="rtl"] .wstc-header { padding-block: 5px; }
    #wadstars-travel-chat .wstc-avatar { width: 34px; height: 34px; }
    #wadstars-travel-chat .wstc-footer { gap: 4px; padding-block: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    #wadstars-travel-chat .wstc-launch { transition: none; }
}
@supports (height: 100dvh) {
    #wadstars-travel-chat #wstc-panel {
        max-height: calc(100dvh - var(--wstc-bottom) - max(16px, env(safe-area-inset-top, 0px)) - var(--wp-admin--admin-bar--height, 0px));
    }
}
#wadstars-travel-chat .wstc-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 9px; }
#wadstars-travel-chat .wstc-book-action, #wadstars-travel-chat .wstc-intent {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #bdd2be;
    background: #eef5ea; border-radius: 9px; color: var(--wstc-green); font-size: 12px; line-height: 1.4; font-weight: 650;
}
#wadstars-travel-chat .wstc-book-action:hover, #wadstars-travel-chat .wstc-intent:hover { background: #dcecd7; }
#wadstars-travel-chat .wstc-book-action svg { width: 15px; height: 15px; }
#wadstars-travel-chat .wstc-intent { margin-top: 7px; }
#wadstars-travel-chat .wstc-book-view {
    flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 14px 18px 20px;
    background: #fafbf7; scrollbar-width: thin; scrollbar-color: #aabbb0 transparent;
}
#wadstars-travel-chat .wstc-back { gap: 5px; padding: 5px 0; font-size: 12px; color: var(--wstc-green); }
#wadstars-travel-chat .wstc-back:disabled { opacity: .65; cursor: default; }
#wadstars-travel-chat .wstc-back svg { width: 15px; height: 15px; transform: scaleX(-1); }
#wadstars-travel-chat[dir="rtl"] .wstc-back svg { transform: none; }
#wadstars-travel-chat .wstc-book-view h2 { display: block; margin: 6px 0 13px; padding: 0; color: var(--wstc-ink); font: 650 21px/1.3 "Segoe UI", Tahoma, Arial, sans-serif; }
#wadstars-travel-chat .wstc-book-form { margin: 0; padding: 0; }
#wadstars-travel-chat .wstc-book-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 10px 0 14px; }
#wadstars-travel-chat .wstc-wide { grid-column: 1 / -1; }
#wadstars-travel-chat .wstc-book-field { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; color: #374e41; font-size: 12px; font-weight: 600; }
#wadstars-travel-chat .wstc-book-field input, #wadstars-travel-chat .wstc-book-field select {
    display: block; position: static; min-width: 0; width: 100%; max-width: none; min-height: 38px; height: auto; padding: 6px 8px;
    border: 1px solid #bdccbe; border-radius: 8px; color: var(--wstc-ink); background-color: #fff; box-shadow: none;
    font: 400 16px/1.3 "Segoe UI", Tahoma, Arial, sans-serif; text-transform: none; letter-spacing: normal; margin: 0;
}
#wadstars-travel-chat .wstc-book-field input[type="number"] { text-align: start; }
#wadstars-travel-chat .wstc-book-field select { appearance: auto; background-image: none; }
#wadstars-travel-chat .wstc-book-submit { width: 100%; gap: 10px; min-height: 42px; padding: 7px 14px; background: var(--wstc-green); color: #fff; border-radius: 12px; font-size: 14px; }
#wadstars-travel-chat .wstc-book-submit:hover:enabled { background: var(--wstc-deep); }
#wadstars-travel-chat .wstc-book-submit:disabled { opacity: .65; cursor: wait; }
#wadstars-travel-chat .wstc-book-submit svg { width: 17px; height: 17px; }
#wadstars-travel-chat[dir="rtl"] .wstc-book-submit svg { transform: scaleX(-1); }
#wadstars-travel-chat .wstc-book-note, #wadstars-travel-chat .wstc-table-status, #wadstars-travel-chat .wstc-restaurant-status {
    margin: 3px 0; color: #516158; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere;
}
#wadstars-travel-chat .wstc-table-status:not(:empty) { padding: 10px; margin: 10px 0; background: #eff4e9; border: 1px solid #cad7c5; border-radius: 8px; }
#wadstars-travel-chat .wstc-restaurant-status button, #wadstars-travel-chat .wstc-scope button { color: var(--wstc-green); text-decoration: underline; font-size: 12px; }
#wadstars-travel-chat .wstc-scope { display: grid; justify-items: start; gap: 2px; padding: 8px 10px; background: #edf4e9; border-radius: 8px; font-size: 13px; }
#wadstars-travel-chat .wstc-scope > span { font-size: 11px; color: #516158; }
