/* Website chat widget (Tawk.to style): round launcher bottom right, panel that grows out of it, bubbles, typing dots. */
.rpchat { position: fixed; right: 24px; bottom: 24px; z-index: 9990; font-family: "Montserrat", "Segoe UI", sans-serif; }
.rpchat * { box-sizing: border-box; }
.rpchat button { font-family: inherit; cursor: pointer; }

.rpchat-launcher {
  width: 62px; height: 62px; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #3274b6 0%, #274868 100%); color: #fff;
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: 0 10px 28px rgba(20, 50, 80, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rpchat-launcher:hover { transform: scale(1.06); }
.rpchat-launcher svg { position: absolute; transition: transform 0.3s ease, opacity 0.2s ease; }
.rpchat-ic-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.rpchat.is-open .rpchat-ic-open { opacity: 0; transform: rotate(90deg) scale(0.6); }
.rpchat.is-open .rpchat-ic-close { opacity: 1; transform: none; }

.rpchat-nudge {
  position: absolute; right: 0; bottom: 78px; width: 250px; padding: 14px 34px 14px 16px;
  background: #fff; color: #404040; border-radius: 16px 16px 4px 16px; font-size: 14px; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(20, 40, 60, 0.18); animation: rpchat-pop 0.35s ease;
}
.rpchat-nudge[hidden] { display: none; }
.rpchat-nudge-x { position: absolute; top: 4px; right: 8px; border: 0; background: none; font-size: 20px; color: #888; line-height: 1; }

.rpchat-panel {
  position: absolute; right: 0; bottom: 78px; width: 370px; height: min(560px, calc(100vh - 130px));
  display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(15, 30, 50, 0.32); transform-origin: bottom right;
}
.rpchat-panel[hidden] { display: none; }
.rpchat.is-open .rpchat-panel { animation: rpchat-pop 0.28s ease; }
@keyframes rpchat-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

.rpchat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px; color: #fff; background: linear-gradient(135deg, #3274b6 0%, #274868 100%); }
.rpchat-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 7px; object-fit: contain; flex: none; }
.rpchat-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rpchat-title strong { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; }
.rpchat-title span { font-size: 12px; opacity: 0.9; display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.rpchat-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fe39a; display: inline-block; }
.rpchat-min { border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.rpchat-min:hover { background: rgba(255, 255, 255, 0.28); }

.rpchat-body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; background: #f4f6f9; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.rpchat-msg { max-width: 84%; padding: 11px 14px; font-size: 14.5px; line-height: 1.55; border-radius: 16px; word-wrap: break-word; animation: rpchat-pop 0.22s ease; }
.rpchat-msg p { margin: 0; }
.rpchat-msg p + p { margin-top: 8px; }
.rpchat-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
.rpchat-msg strong { font-weight: 700; }
.rpchat-bot { align-self: flex-start; background: #fff; color: #2a2f36; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(20, 40, 60, 0.08); }
.rpchat-bot a { color: #2d5e8f; }
.rpchat-me { align-self: flex-end; background: linear-gradient(135deg, #3274b6 0%, #274868 100%); color: #fff; border-bottom-right-radius: 4px; }
.rpchat-time { align-self: center; font-size: 11px; color: #8a94a1; margin: 2px 0; }
.rpchat-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.rpchat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b4; animation: rpchat-bounce 1.2s infinite ease-in-out; }
.rpchat-typing i:nth-child(2) { animation-delay: 0.15s; }
.rpchat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes rpchat-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

.rpchat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 12px; background: #f4f6f9; }
.rpchat-quick[hidden] { display: none; }
.rpchat-quick button { border: 1px solid #c4d3e3; background: #fff; color: #2d5e8f; border-radius: 50px; padding: 8px 14px; font-size: 13px; font-weight: 500; transition: background 0.2s ease, color 0.2s ease; }
.rpchat-quick button:hover { background: #2d5e8f; color: #fff; }

.rpchat-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; background: #fff; border-top: 1px solid #e6ebf1; }
.rpchat-form textarea { flex: 1; resize: none; border: 0; outline: 0; font: inherit; font-size: 15px; line-height: 1.4; max-height: 96px; padding: 9px 4px; color: #2a2f36; background: transparent; }
.rpchat-form textarea::placeholder { color: #8a94a1; }
.rpchat-send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: linear-gradient(135deg, #3274b6 0%, #274868 100%); color: #fff; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s ease, transform 0.2s ease; }
.rpchat-send:disabled { opacity: 0.4; cursor: default; }
.rpchat-send:not(:disabled):hover { transform: scale(1.08); }
.rpchat-foot { padding: 0 14px 10px; background: #fff; font-size: 11px; color: #8a94a1; text-align: center; }

/* The back to top button moves up so it does not sit under the launcher. */
.back-to-top-wrapper.back-to-top-btn-show { right: 34px; bottom: 104px; }

@media (max-width: 575.98px) {
  .rpchat { right: 16px; bottom: 16px; }
  .rpchat-launcher { width: 56px; height: 56px; }
  .rpchat-nudge { width: 220px; bottom: 70px; }
  .rpchat.is-open { right: 0; bottom: 0; }
  .rpchat.is-open .rpchat-launcher { display: none; }
  .rpchat-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; }
  .rpchat-form textarea { font-size: 16px; }
  .back-to-top-wrapper.back-to-top-btn-show { right: 24px; bottom: 90px; }
}

/* Floating WhatsApp pill, bottom left. The whole pill drifts up and down gently. */
.rpwa {
  position: fixed; left: 24px; bottom: 24px; z-index: 9989;
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 20px 5px 5px;
  border-radius: 50px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #3274b6 0%, #274868 100%);
  box-shadow: 0 8px 22px rgba(20, 40, 60, 0.28);
  animation: rpwa-float 3.2s ease-in-out infinite;
  transition: box-shadow 0.25s ease;
}
.rpwa:hover { color: #fff; box-shadow: 0 12px 26px rgba(20, 40, 60, 0.36); animation-play-state: paused; }
.rpwa-ic {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; flex: none;
  display: flex; align-items: center; justify-content: center;
  outline: 3px solid rgba(255, 255, 255, 0.45); outline-offset: 2px;
  animation: rpwa-wiggle 3.2s ease-in-out infinite;
}
.rpwa-text { font-family: "Montserrat", "Segoe UI", sans-serif; font-weight: 900; font-size: 14.5px; line-height: 1; white-space: nowrap; }
@keyframes rpwa-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes rpwa-wiggle { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(10deg); } 96% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .rpwa, .rpwa-ic { animation: none; } }
@media (max-width: 575.98px) {
  .rpwa { left: 16px; bottom: 16px; padding: 4px; gap: 0; }
  .rpwa-ic { width: 40px; height: 40px; }
  .rpwa-text { display: none; }
}
