/* Punta Cana Select - website chat. Scoped under .pcs-chat. Bump PCS_CHAT_VERSION on change.
   The single floating contact control when the single-entry option is on. */
.pcs-chat { font-family: var(--font-body, "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif); line-height: 1.45; -webkit-text-size-adjust: 100%; }
.pcs-chat *, .pcs-chat *::before, .pcs-chat *::after { box-sizing: border-box; }
.pcs-chat [hidden] { display: none !important; }

/* 0.8.21: --pcs-chat-lift = height of any sticky bottom bar (set by chat.js); the button sits 8px above it. */
.pcs-chat { --pcs-chat-b: max(16px, calc(var(--pcs-chat-lift, 0px) + 8px)); }
.pcs-chat .pcs-chat__bubble {
  position: fixed; right: 16px; bottom: var(--pcs-chat-b); z-index: 9989;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; min-height: 48px; margin: 0; padding: 0;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
  background: var(--pcs-caribbean, #0D6E8C); color: #fff;
  box-shadow: var(--pcs-shadow-md, 0 6px 18px rgba(0, 0, 0, .16));
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease-out;
}
.pcs-chat .pcs-chat__bubble:hover { background: #0B5E78; color: #fff; }
.pcs-chat .pcs-chat__bubble:focus-visible { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 5px #0D6E8C; }
.pcs-chat__bubble svg { width: 24px; height: 24px; display: block; }
.pcs-chat.is-tawk-open .pcs-chat__bubble { visibility: hidden; }
.pcs-chat.has-unread .pcs-chat__bubble::after { content: ""; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--pcs-amber, #C97824); }
.pcs-chat__handoff { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.pcs-chat .pcs-chat__choice {
  display: inline-flex; align-items: center; justify-content: center; flex: 1 1 140px; min-height: 44px; margin: 0; padding: 8px 12px;
  border: 1px solid var(--pcs-caribbean, #0D6E8C); border-radius: 9px; background: #fff; color: var(--pcs-caribbean, #0D6E8C);
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.pcs-chat .pcs-chat__choice:first-child { background: var(--pcs-caribbean, #0D6E8C); color: #fff; }
.pcs-chat .pcs-chat__choice:hover { opacity: .9; }
.pcs-chat__msg--note { color: var(--pcs-muted, #61707C); font-size: 13.5px; }

.pcs-chat__panel {
  position: fixed; right: 16px; bottom: var(--pcs-chat-b, 16px); z-index: 9995;
  display: flex; flex-direction: column;
  width: 380px; height: min(600px, calc(100vh - 16px - var(--pcs-chat-b, 16px)));
  border: 1px solid var(--pcs-border, #DDE5EA); border-radius: var(--radius-card, 14px);
  background: #fff; color: var(--pcs-text, #1E2933); box-shadow: 0 12px 32px rgba(8, 52, 76, .22); overflow: hidden;
}
.pcs-chat__head { display: flex; align-items: center; gap: 10px; flex: none; padding: 12px 10px 12px 16px; background: var(--pcs-navy, #0A2E4D); color: #fff; }
.pcs-chat__title { flex: 1; margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.pcs-chat__tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 1.4; vertical-align: 1px; }
.pcs-chat .pcs-chat__close {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 9px; background: transparent; color: #fff; cursor: pointer;
}
.pcs-chat .pcs-chat__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pcs-chat__close svg { width: 22px; height: 22px; }

.pcs-chat__log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; background: var(--pcs-ivory, #FBF8F2); -webkit-overflow-scrolling: touch; }
.pcs-chat__msg { max-width: 88%; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; font-size: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.pcs-chat__msg--bot { background: #fff; border: 1px solid #E6ECEF; border-bottom-left-radius: 4px; }
.pcs-chat__msg--me { margin-left: auto; background: var(--pcs-navy, #0A2E4D); color: #fff; border-bottom-right-radius: 4px; }
.pcs-chat__msg--typing { color: var(--pcs-muted, #61707C); font-size: 14px; }
.pcs-chat__link {
  display: inline-block; margin: 4px 0 2px; padding: 8px 12px; border-radius: 9px;
  background: var(--pcs-caribbean, #0D6E8C); color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important; white-space: normal;
}
.pcs-chat__link:hover { background: #0B5E78; }
.pcs-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.pcs-chat .pcs-chat__chip {
  min-height: 36px; margin: 0; padding: 6px 12px; border: 1px solid var(--pcs-caribbean, #0D6E8C); border-radius: 999px;
  background: #fff; color: var(--pcs-caribbean, #0D6E8C); font: inherit; font-size: 13.5px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.pcs-chat .pcs-chat__chip:hover { background: #EEF6F8; color: #0B5E78; }

.pcs-chat__ts { flex: none; display: flex; justify-content: center; background: #fff; }
.pcs-chat__form { display: flex; gap: 8px; flex: none; padding: 10px; border-top: 1px solid #E6ECEF; background: #fff; }
.pcs-chat .pcs-chat__input {
  flex: 1; min-width: 0; height: 44px; max-height: 96px; margin: 0; padding: 10px 12px; resize: none;
  border: 1px solid #C9D4DA; border-radius: 10px; background: #fff; color: var(--pcs-text, #1E2933); font: inherit; font-size: 16px; line-height: 1.4;
}
.pcs-chat .pcs-chat__send {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 10px; background: var(--pcs-navy, #0A2E4D); color: #fff; cursor: pointer;
}
.pcs-chat .pcs-chat__send:disabled { opacity: .5; cursor: default; }
.pcs-chat__send svg { width: 20px; height: 20px; }
.pcs-chat .pcs-chat__mic {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 1px solid #C9D4DA; border-radius: 10px; background: #fff; color: var(--pcs-navy, #0A2E4D); cursor: pointer;
}
.pcs-chat .pcs-chat__mic:hover { background: #EEF6F8; color: var(--pcs-navy, #0A2E4D); }
.pcs-chat .pcs-chat__mic.is-listening { border-color: #B3261E; background: #B3261E; color: #fff; }
.pcs-chat__mic svg { width: 21px; height: 21px; }
.pcs-chat__status { flex: none; display: grid; gap: 2px; padding: 8px 12px; border-top: 1px solid #E6ECEF; background: #FDF1F0; color: var(--pcs-text, #1E2933); font-size: 13.5px; line-height: 1.35; }
.pcs-chat__status-now { font-weight: 700; color: #8F1D17; }
.pcs-chat__status-now::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #B3261E; vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .pcs-chat__status-now::before { animation: pcs-chat-pulse 1.2s ease-in-out infinite; }
  @keyframes pcs-chat-pulse { 50% { opacity: .25; } }
}
.pcs-chat .pcs-chat__lang {
  flex: none; width: 36px; height: 44px; min-height: 44px; margin: 0 -4px 0 0; padding: 0; border: 0; border-radius: 10px; background: transparent;
  color: var(--pcs-muted, #61707C); font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.pcs-chat .pcs-chat__lang:hover { background: #EEF6F8; color: var(--pcs-navy, #0A2E4D); }
.pcs-chat .pcs-chat__speak { opacity: .78; }
.pcs-chat .pcs-chat__speak.is-on { opacity: 1; background: rgba(255, 255, 255, .16); }
.pcs-chat__foot { flex: none; margin: 0; padding: 0 12px 10px; background: #fff; color: var(--pcs-muted, #61707C); font-size: 12px; line-height: 1.4; }
.pcs-chat__foot a { color: inherit; text-decoration: underline; }

.pcs-chat__nudge { position: fixed; right: 16px; bottom: calc(var(--pcs-chat-b, 16px) + 58px); z-index: 9990; display: flex; align-items: flex-start; width: 300px; max-width: calc(100vw - 32px); border: 1px solid var(--pcs-border, #DDE5EA); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(8, 52, 76, .2); }
.pcs-chat .pcs-chat__nudge-text { flex: 1; min-width: 0; margin: 0; padding: 11px 4px 11px 13px; border: 0; background: transparent; color: var(--pcs-text, #1E2933); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-align: left; text-transform: none; cursor: pointer; }
.pcs-chat .pcs-chat__nudge-text:hover { background: transparent; color: var(--pcs-text, #1E2933); }
.pcs-chat .pcs-chat__nudge-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--pcs-muted, #61707C); cursor: pointer; }
.pcs-chat .pcs-chat__nudge-x:hover { background: transparent; color: var(--pcs-text, #1E2933); }
.pcs-chat__nudge-x svg { width: 18px; height: 18px; }
.pcs-chat.is-tawk-open .pcs-chat__nudge { display: none; }

/* /ask: the assistant is the page. */
body.pcs-ask-page { margin: 0; background: var(--pcs-ivory, #FBF8F2); }
.pcs-chat.is-ask .pcs-chat__bubble { display: none; }
.pcs-chat.is-ask .pcs-chat__panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; animation: none; }
.pcs-chat__ask-link { flex: none; padding: 8px 6px; color: #fff !important; font-size: 13.5px; font-weight: 600; text-decoration: underline !important; }
.pcs-chat__ask-intro { margin: 18px 0 8px; }
.pcs-chat .pcs-chat__ask-h1 { margin: 0 0 6px; color: var(--pcs-navy, #0A2E4D); font-family: var(--font-display, "Playfair Display", Georgia, serif); font-size: 20px; font-weight: 700; line-height: 1.25; }
.pcs-chat__ask-p { margin: 0; color: var(--pcs-text, #1E2933); font-size: 14px; line-height: 1.45; }
@media (min-width: 768px) {
  .pcs-chat.is-ask .pcs-chat__log, .pcs-chat.is-ask .pcs-chat__ts, .pcs-chat.is-ask .pcs-chat__status { padding-left: max(14px, calc(50% - 360px)); padding-right: max(14px, calc(50% - 360px)); }
  .pcs-chat.is-ask .pcs-chat__form, .pcs-chat.is-ask .pcs-chat__foot, .pcs-chat.is-ask .pcs-chat__head { padding-left: max(14px, calc(50% - 360px)); padding-right: max(14px, calc(50% - 360px)); }
}

/* Phones: the corner, just above any sticky bottom bar (0.8.21; it used to sit in the bar's 72px slot). */
@media (max-width: 767.98px) {
  .pcs-chat { --pcs-chat-b: max(12px, calc(var(--pcs-chat-lift, 0px) + 8px)); }
  .pcs-chat .pcs-chat__bubble { right: 10px; bottom: var(--pcs-chat-b); }
  .pcs-chat__nudge { right: 10px; bottom: calc(var(--pcs-chat-b) + 64px); }
  /* The tour booking bar kept 72px free on the right for the old floating icon; the chat now sits above it. */
  body.pcs-chat-on .pcs-mobile-booking-bar { right: 0; }
  .pcs-chat__panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; z-index: 2147483000; }
}
@media (prefers-reduced-motion: no-preference) {
  .pcs-chat__panel { animation: pcs-chat-in 160ms ease-out both; }
  @keyframes pcs-chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* 0.8.34 "Talk to a person": always visible under the header, straight to live chat (owner, 2026-11-08). */
.pcs-chat__person { display: flex; align-items: center; gap: 10px; flex: none; padding: 8px 12px; border-bottom: 1px solid #E6ECEF; background: #fff; }
.pcs-chat .pcs-chat__person-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 8px 14px;
  border: 1px solid var(--pcs-caribbean, #0D6E8C); border-radius: 9px; background: var(--pcs-caribbean, #0D6E8C); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: 0; cursor: pointer; white-space: nowrap;
}
.pcs-chat .pcs-chat__person-btn:hover { opacity: .9; background: var(--pcs-caribbean, #0D6E8C); color: #fff; }
.pcs-chat__person-note { flex: 1; min-width: 0; margin: 0; color: var(--pcs-muted, #61707C); font-size: 12.5px; line-height: 1.35; }
@media (min-width: 768px) {
  .pcs-chat.is-ask .pcs-chat__person { padding-left: max(14px, calc(50% - 360px)); padding-right: max(14px, calc(50% - 360px)); }
}
