:root {
  --webchat-ink: #0b1628;
  --webchat-navy: #14213a;
  --webchat-blue: #245eea;
  --webchat-teal: #087f74;
  --webchat-coral: #e93458;
  --webchat-paper: #f5f7fb;
  --webchat-surface: #ffffff;
  --webchat-line: #d8e0eb;
  --webchat-muted: #5f6d80;
  --webchat-shadow: 0 18px 48px rgba(11, 22, 40, 0.24);
}

.webchat {
  color: var(--webchat-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.social-shortcuts.social-icon-links {
  align-items: center;
  gap: 9px;
}

.social-shortcuts.social-icon-links .social-shortcut {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  position: relative;
  transition: transform 160ms ease, opacity 160ms ease;
  width: 40px;
}

.social-shortcuts.social-icon-links .social-shortcut:hover,
.social-shortcuts.social-icon-links .social-shortcut:focus-visible {
  opacity: 0.88;
  transform: translateY(-2px);
}

.social-shortcuts.social-icon-links .social-shortcut:focus-visible {
  outline: 3px solid rgba(47, 91, 255, 0.38);
  outline-offset: 3px;
}

.social-link-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.social-brand-icon {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.social-brand-icon svg {
  fill: currentColor;
  height: 22px;
  width: 22px;
}

.social-brand-icon-instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.social-brand-icon-instagram .social-brand-icon-fill {
  fill: currentColor;
  stroke: none;
}

.social-brand-icon-facebook {
  background: #1877f2;
}

.social-brand-icon-instagram {
  background: #c13584;
}

.social-brand-icon-whatsapp {
  background: #25d366;
}

.social-brand-icon-fiverr,
.social-brand-icon-upwork {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
}

.social-brand-icon-fiverr {
  background: #1dbf73;
}

.social-brand-icon-upwork {
  background: #14a800;
}

.footer-social-shortcuts.social-icon-links {
  gap: 8px;
}

.footer-social-shortcuts.social-icon-links .social-shortcut {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  height: 36px;
  min-height: 36px;
  width: 36px;
}

.footer-social-shortcuts.social-icon-links .social-brand-icon {
  background: transparent;
  color: #dce7f3;
  flex-basis: 34px;
  height: 34px;
  width: 34px;
}

.footer-social-shortcuts.social-icon-links .social-brand-icon svg {
  height: 18px;
  width: 18px;
}

.footer-social-shortcuts.social-icon-links .social-brand-icon-fiverr,
.footer-social-shortcuts.social-icon-links .social-brand-icon-upwork {
  font-size: 11px;
}

.footer-social-shortcuts.social-icon-links .social-shortcut:hover,
.footer-social-shortcuts.social-icon-links .social-shortcut:focus-visible {
  background: rgba(117, 236, 220, 0.12);
  border-color: rgba(117, 236, 220, 0.55);
  opacity: 1;
}

a.whatsapp-chat-action {
  align-items: center;
  background: #1fa855;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 10px 28px rgba(11, 31, 46, 0.24);
  color: #fff;
  display: flex;
  height: 56px;
  justify-content: center;
  min-height: 56px;
  min-width: 56px;
  padding: 0;
  position: fixed;
  right: 24px;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 56px;
  z-index: 1100;
}

a.whatsapp-chat-action:hover,
a.whatsapp-chat-action:focus-visible {
  background: #168a45;
  box-shadow: 0 14px 34px rgba(11, 31, 46, 0.3);
  transform: translateY(-2px);
}

a.whatsapp-chat-action:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

.whatsapp-chat-mark {
  background: transparent;
  border-radius: 50%;
  color: #fff;
  display: grid;
  height: 54px;
  place-items: center;
  width: 54px;
}

.whatsapp-chat-mark svg {
  fill: currentColor;
  height: 28px;
  width: 28px;
}

.whatsapp-chat-copy {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.back-to-top {
  align-items: center;
  background: var(--webchat-navy);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  bottom: 94px;
  box-shadow: 0 10px 26px rgba(11, 22, 40, 0.26);
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 30px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 44px;
  z-index: 1110;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--webchat-teal);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 13px 30px rgba(11, 22, 40, 0.3);
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(36, 94, 234, 0.38);
  outline-offset: 2px;
}

.back-to-top svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  width: 22px;
}

.webchat-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.webchat-launcher {
  align-items: center;
  background: var(--webchat-navy);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 10px 28px rgba(11, 22, 40, 0.28);
  cursor: pointer;
  display: flex;
  height: 56px;
  justify-content: center;
  left: 24px;
  padding: 0;
  position: fixed;
  transition: transform 160ms ease, box-shadow 160ms ease;
  width: 56px;
  z-index: 1100;
}

.webchat-launcher:hover {
  box-shadow: 0 14px 34px rgba(11, 22, 40, 0.34);
  transform: translateY(-2px);
}

.webchat[data-open="true"] .webchat-launcher {
  display: none;
}

.webchat-launcher:focus-visible,
.webchat-icon-button:focus-visible,
.webchat-choice:focus-visible,
.webchat-send:focus-visible,
.webchat-input:focus-visible,
.webchat-profile-input:focus-visible,
.webchat-profile-submit:focus-visible {
  outline: 3px solid rgba(36, 94, 234, 0.38);
  outline-offset: 2px;
}

.webchat-launcher-icon {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  color: #fff;
  display: flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.webchat-launcher-icon svg {
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 25px;
}

.webchat-launcher-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.webchat-unread {
  align-items: center;
  background: var(--webchat-coral);
  border: 2px solid var(--webchat-surface);
  border-radius: 50%;
  color: #fff;
  display: none;
  font-size: 11px;
  font-weight: 700;
  height: 21px;
  justify-content: center;
  position: absolute;
  right: -3px;
  top: -3px;
  width: 21px;
}

.webchat-unread[data-visible="true"] {
  display: flex;
}

.webchat-panel {
  background: var(--webchat-surface);
  border: 1px solid rgba(20, 33, 58, 0.16);
  border-radius: 8px;
  bottom: 96px;
  box-shadow: var(--webchat-shadow);
  display: grid;
  grid-template-rows: auto auto;
  height: auto;
  max-height: calc(100dvh - 126px);
  overflow: hidden;
  position: fixed;
  left: 24px;
  width: min(380px, calc(100vw - 32px));
  z-index: 1100;
}

.webchat-panel[hidden] {
  display: none;
}

.webchat-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--webchat-line);
  color: var(--webchat-ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  padding: 12px 12px 11px;
}

.webchat-brand-mark {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.webchat-brand-mark img {
  height: 25px;
  width: 25px;
}

.webchat-header-copy {
  min-width: 0;
}

.webchat-title {
  color: var(--webchat-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.webchat-status {
  align-items: center;
  color: var(--webchat-muted);
  display: flex;
  font-size: 11px;
  line-height: 1.35;
  margin: 3px 0 0;
}

.webchat-status::before {
  background: #3ac7a8;
  border-radius: 50%;
  content: "";
  height: 7px;
  margin-right: 6px;
  width: 7px;
}

.webchat-icon-button {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid var(--webchat-line);
  border-radius: 6px;
  color: #39485d;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 9px;
}

.webchat-icon-button[hidden] {
  display: none;
}

.webchat-icon-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.webchat-close {
  padding: 0;
}

.webchat-prechat {
  align-content: start;
  background: #f8fafc;
  display: grid;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 20px 18px;
}

.webchat-prechat[hidden] {
  display: none;
}

.webchat-prechat-intro {
  align-items: flex-start;
  display: grid;
  gap: 13px;
  grid-template-columns: 44px minmax(0, 1fr);
  margin-bottom: 18px;
}

.webchat-prechat-icon {
  align-items: center;
  background: #e9f6f3;
  border: 1px solid #ccebe4;
  border-radius: 8px;
  color: var(--webchat-teal);
  display: flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.webchat-prechat-icon svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 24px;
}

.webchat-prechat h3 {
  color: var(--webchat-ink);
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 5px;
}

.webchat-prechat-intro p {
  color: var(--webchat-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.webchat-profile-form {
  display: grid;
  gap: 7px;
}

.webchat-profile-form label {
  color: var(--webchat-ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  margin-top: 5px;
}

.webchat-profile-form label span {
  color: var(--webchat-coral);
}

.webchat-profile-input {
  background: #fff;
  border: 1px solid #b9c5d7;
  border-radius: 6px;
  color: var(--webchat-ink);
  font: inherit;
  font-size: 13px;
  height: 46px;
  min-width: 0;
  padding: 0 12px;
}

.webchat-profile-input::placeholder {
  color: #758399;
}

.webchat-profile-error {
  background: #fff3f6;
  border: 1px solid #f3bdc9;
  border-radius: 7px;
  color: #7d1730;
  font-size: 11px;
  line-height: 1.45;
  margin: 4px 0 0;
  padding: 8px 10px;
}

.webchat-profile-error[hidden] {
  display: none;
}

.webchat-profile-submit {
  align-items: center;
  background: var(--webchat-teal);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 750;
  height: 46px;
  justify-content: center;
  margin-top: 8px;
  padding: 0 16px;
}

.webchat-profile-submit svg {
  fill: none;
  height: 18px;
  margin-left: 6px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.webchat-conversation {
  background: #f8fafc;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto auto;
  height: min(510px, calc(100dvh - 194px));
  min-height: 0;
}

.webchat-conversation[hidden] {
  display: none;
}

.webchat-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 10px;
  scrollbar-color: #abb6c7 transparent;
  scrollbar-width: thin;
}

.webchat-message {
  display: flex;
  margin: 0 0 12px;
}

.webchat-message[data-role="user"] {
  justify-content: flex-end;
}

.webchat-bubble {
  background: var(--webchat-surface);
  border: 1px solid var(--webchat-line);
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(11, 22, 40, 0.05);
  color: var(--webchat-ink);
  font-size: 13px;
  line-height: 1.55;
  max-width: 88%;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  white-space: pre-wrap;
}

.webchat-message[data-role="user"] .webchat-bubble {
  background: var(--webchat-blue);
  border-color: var(--webchat-blue);
  color: #fff;
}

.webchat-message[data-role="system"] .webchat-bubble {
  background: #fff3f6;
  border-color: #f3bdc9;
  color: #7d1730;
}

.webchat-typing {
  align-items: center;
  color: var(--webchat-muted);
  display: flex;
  font-size: 11px;
  gap: 4px;
  min-height: 24px;
  padding: 0 15px;
}

.webchat-typing[hidden] {
  visibility: hidden;
}

.webchat-typing-dot {
  animation: webchat-pulse 1.1s infinite ease-in-out;
  background: var(--webchat-teal);
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.webchat-typing-dot:nth-child(2) {
  animation-delay: 120ms;
}

.webchat-typing-dot:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes webchat-pulse {
  0%,
  70%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.webchat-choices {
  display: grid;
  gap: 7px;
  max-height: 228px;
  overflow-y: auto;
  padding: 4px 14px 10px;
  scrollbar-width: thin;
}

.webchat-choices:empty {
  display: none;
}

.webchat-choice {
  background: #fff;
  border: 1px solid #aebbd0;
  border-radius: 7px;
  color: var(--webchat-navy);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  max-width: none;
  min-height: 38px;
  padding: 9px 11px;
  text-align: left;
  width: 100%;
}

.webchat-choice:hover {
  background: #edf3ff;
  border-color: var(--webchat-blue);
}

.webchat-compose {
  align-items: center;
  background: var(--webchat-surface);
  border-top: 1px solid var(--webchat-line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.webchat-input {
  background: #fff;
  border: 1px solid #b9c5d7;
  border-radius: 7px;
  color: var(--webchat-ink);
  font: inherit;
  font-size: 13px;
  height: 42px;
  min-width: 0;
  padding: 0 12px;
}

.webchat-input::placeholder {
  color: #758399;
}

.webchat-send {
  align-items: center;
  background: var(--webchat-teal);
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.webchat-send svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 19px;
}

.webchat-send:disabled,
.webchat-input:disabled {
  cursor: wait;
  opacity: 0.62;
}

.webchat-privacy {
  background: transparent;
  border-top: 0;
  color: var(--webchat-muted);
  font-size: 10px;
  line-height: 1.4;
  margin: 14px 0 0;
  padding: 0;
  text-align: center;
}

.webchat-conversation .webchat-privacy {
  background: #f8fafc;
  border-top: 1px solid var(--webchat-line);
  margin: 0;
  padding: 7px 13px 8px;
}

@media (max-width: 680px) {
  a.whatsapp-chat-action {
    bottom: 12px;
    right: 12px;
  }

  .back-to-top {
    bottom: 82px;
    right: 18px;
  }
}

@media (max-width: 560px) {
  .webchat-launcher {
    bottom: 12px;
    left: 12px;
  }

  .webchat-panel {
    bottom: auto;
    grid-template-rows: auto auto;
    height: auto;
    left: 10px;
    max-height: calc(100dvh - 20px);
    right: 10px;
    top: 10px;
    width: auto;
  }

  .webchat[data-view="conversation"] .webchat-panel {
    bottom: 10px;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100dvh - 20px);
    max-height: none;
    top: auto;
  }

  .webchat[data-view="conversation"] .webchat-conversation {
    height: auto;
  }

  .webchat-header {
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    padding-inline: 12px;
  }

  .webchat-brand-mark {
    height: 36px;
    width: 36px;
  }
}

@media (max-width: 430px) {
  a.whatsapp-chat-action {
    height: 56px;
    min-height: 56px;
    min-width: 56px;
    width: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .webchat-launcher,
  a.whatsapp-chat-action,
  .back-to-top,
  .social-shortcuts.social-icon-links .social-shortcut,
  .webchat-typing-dot {
    animation: none;
    transition: none;
  }
}
