.wowstays-agent-modal[hidden] { display: none; }
.wowstays-agent-modal { position: fixed; inset: 0; z-index: 999999; display: grid; background: #f7fafb; }
.wowstays-agent-modal__dialog { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100%; margin: 0; background: #f7fafb; }
.wowstays-agent-modal__header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 60px; border-bottom: 1px solid #e1e6e8; background: #fff; padding: 8px 72px; }
.wowstays-agent-modal__header h2 { margin: 0; color: #3bb3c3; font-size: 20px; line-height: 1.3; }
.wowstays-agent-modal .wowstays-agent-modal__close { all: unset; position: absolute; top: 50%; right: 20px; display: grid; place-items: center; box-sizing: border-box; width: 44px; min-width: 44px; height: 44px; min-height: 44px; transform: translateY(-50%); border: 1px solid #d8e2e4; border-radius: 50%; background: #fff; color: #172b31; font-family: Arial, sans-serif; font-size: 30px; font-weight: 400; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(21, 53, 59, 0.08); }
.wowstays-agent-modal .wowstays-agent-modal__close:hover, .wowstays-agent-modal .wowstays-agent-modal__close:focus-visible { border-color: #9dcfd6; background: #eef7f8; outline: 2px solid #3bb3c3; outline-offset: 2px; }
.wowstays-agent-modal__content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 600px); justify-content: center; min-height: 0; overflow: hidden; padding: 0 16px; }
.wowstays-agent-modal-open { overflow: hidden; }
.wowstays-agent--modal { min-height: 0; height: 100%; overflow: hidden; }
.wowstays-agent--modal .wowstays-agent__messages { display: flex; flex: 1 1 0; flex-direction: column; align-items: stretch; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding-right: 4px; }
.wowstays-agent--modal .wowstays-agent__messages > * { flex: 0 0 auto; }
.wowstays-agent--modal .wowstays-agent__message--assistant { align-self: flex-start; }
.wowstays-agent--modal .wowstays-agent__message--user { align-self: flex-end; }
.wowstays-agent--modal [data-agent-action] { align-self: center; }
.wowstays-agent--modal .wowstays-agent__composer { position: relative; bottom: auto; flex: 0 0 auto; margin-bottom: 12px; }
.wowstays-agent { display: flex; flex-direction: column; width: 100%; max-width: 600px; margin: 0 auto; box-sizing: border-box; color: #172b31; }
.wowstays-agent *, .wowstays-agent *::before, .wowstays-agent *::after { box-sizing: border-box; }
.wowstays-agent__summary { justify-self: stretch; min-width: 0; scroll-margin-top: 74px; border: 1px solid #b8dfe4; border-left: 4px solid #3bb3c3; border-radius: 12px; background: #f4fbfc; padding: 12px; }
.wowstays-agent__summary-empty { color: #666; }
.wowstays-agent__summary-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wowstays-agent__summary-items li { border: 1px solid #b8dfe4; border-radius: 999px; background: #fff; padding: 4px 9px; }
.wowstays-agent__messages { display: grid; align-content: start; gap: 14px; flex: 1 1 auto; padding: 16px 0 24px; }
.wowstays-agent__message { width: fit-content; max-width: min(82%, 680px); min-width: 0; scroll-margin-top: 74px; border-radius: 18px; padding: 11px 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.wowstays-agent__message--assistant { justify-self: start; border: 1px solid #e1e6e8; border-bottom-left-radius: 5px; background: #fff; }
.wowstays-agent__message--user { justify-self: end; border-bottom-right-radius: 5px; background: #eef7f8; }
.wowstays-agent__speaker { display: block; margin-bottom: 4px; font-weight: 700; }
.wowstays-agent__owner-contact { margin: 12px 0 0; }
.wowstays-agent__owner-contact .contact-owner-link.button { font-weight: 400; }
.wowstays-agent__loading { grid-column: 1 / -1; color: #68777b; padding: 4px 10px 0; font-size: 14px; }
.wowstays-agent__card { min-width: 0; overflow: hidden; border: 1px solid #ddd; border-radius: 12px; background: #fff; }
.wowstays-agent__card-image { display: block; width: 100%; max-height: 315px; aspect-ratio: 600 / 315; object-fit: cover; }
.wowstays-agent__card-body { display: grid; gap: 10px; padding: 14px; }
.wowstays-agent__card-title { color: #28aec2; font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; }
.wowstays-agent__card-intro, .wowstays-agent__card-meta, .wowstays-agent__card-offer, .wowstays-agent__card-notice { margin: 0; }
.wowstays-agent__card-intro { color: #444; line-height: 1.45; }
.wowstays-agent__card-meta { color: #4e5e62; font-size: 14px; line-height: 1.4; }
.wowstays-agent__card-rating { display: flex; align-items: center; justify-self: start; gap: 6px; }
.wowstays-agent__card-rating-icon { display: block; width: 18px; height: 18px; }
.wowstays-agent__card-rating-value { color: #172b31; font-weight: 500; }
.wowstays-agent__card-included { color: #287a45; font-size: 16px; }
.wowstays-agent__card-offer { border-radius: 8px; background: #eef9fa; padding: 8px 10px; color: #176a75; font-weight: 400; }
.wowstays-agent__pricing { display: grid; gap: 0; border-top: 1px solid #eee; }
.wowstays-agent__price-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee; }
.wowstays-agent__price-row--total { color: #163f45; font-weight: 700; }
.wowstays-agent__price-label { min-width: 0; overflow-wrap: anywhere; }
.wowstays-agent__price-value { flex: 0 0 auto; text-align: right; white-space: nowrap; font-weight: 400; }
.wowstays-agent__price-row--total .wowstays-agent__price-value { font-weight: 700; }
.wowstays-agent__card-notice { border-left: 3px solid #d59a2f; background: #fff8e8; padding: 9px 10px; color: #684b17; font-size: 14px; line-height: 1.4; }
.wowstays-agent__card-link { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; border-radius: 8px; background: #3bb3c3; padding: 10px 14px; color: #fff; font-weight: 400; text-decoration: none; }
.wowstays-agent__card-link:hover, .wowstays-agent__card-link:focus { background: #299dac; color: #fff; }
.wowstays-agent__search-page-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #dcecef; color: #4e5e62; line-height: 1.5; }
.wowstays-agent__search-page-link { color: #167481; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.wowstays-agent__search-page-link:hover, .wowstays-agent__search-page-link:focus { color: #125d67; }
.wowstays-agent__composer { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; border: 1px solid #cdd8db; border-radius: 18px; background: #fff; padding: 8px; box-shadow: 0 8px 28px rgba(21, 53, 59, 0.1); }
.wowstays-agent__composer textarea { width: 100%; min-height: 44px; max-height: 160px; resize: vertical; border: 0; outline: 0; background: transparent; padding: 11px 10px; color: inherit; font: inherit; line-height: 1.4; }
.wowstays-agent__composer button, .wowstays-agent [data-agent-action] { min-height: 44px; border: 0; border-radius: 12px; background: #3bb3c3; padding: 10px 18px; color: #fff; font: inherit; font-weight: 400; cursor: pointer; }
.wowstays-agent__composer button:hover, .wowstays-agent__composer button:focus, .wowstays-agent [data-agent-action]:hover, .wowstays-agent [data-agent-action]:focus { background: #299dac; }
.wowstays-agent__composer button:disabled { cursor: wait; opacity: 0.55; }
.wowstays-agent [data-agent-action] { justify-self: center; }

@media (min-width: 640px) {
    .wowstays-agent__messages { padding-top: 24px; }
    .wowstays-agent__card-body { padding: 16px; }
    .wowstays-agent__card-link { width: auto; justify-self: start; min-width: 140px; }
}

@media (max-width: 639px) {
    .wowstays-agent-modal__header { min-height: 56px; padding-inline: 60px; }
    .wowstays-agent-modal__close { right: 8px; }
    .wowstays-agent-modal__content { padding-inline: 10px; }
    .wowstays-agent__message { max-width: 90%; }
    .wowstays-agent__composer { border-radius: 15px; }
    .wowstays-agent__composer button { padding-inline: 14px; }
}
