body.sunfluff-modal-open {
  overflow: hidden;
}

#sunfluff-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(5, 16, 34, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-family: Arial, Helvetica, sans-serif;
}

#sunfluff-chat-modal.open {
  display: flex;
}

#sunfluff-chat-window {
  width: min(100%, 450px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  color: #14253e;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

#sunfluff-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  color: #fff;
  background: linear-gradient(120deg, #081b36, #164c90);
  border-radius: 20px 20px 0 0;
}

.sunfluff-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sunfluff-logo {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #ffbc25;
}

.sunfluff-logo::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b1d38;
}

.sunfluff-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.sunfluff-brand small {
  display: block;
  margin-top: 2px;
  color: #c0d8fb;
  font-size: 11px;
}

.sunfluff-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.sunfluff-close:hover,
.sunfluff-close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

#sunfluff-chat-body {
  padding: 20px;
}

.sunfluff-message {
  margin-bottom: 17px;
  padding: 13px 15px;
  color: #29415f;
  background: #f1f6fe;
  border-radius: 13px 13px 13px 3px;
  font-size: 14px;
  line-height: 1.45;
}

.sunfluff-message p {
  margin: 0;
}

#sunfluff-chat-form {
  display: grid;
  gap: 14px;
}

#sunfluff-chat-form > label {
  display: grid;
  gap: 6px;
  color: #243b5b;
  font-size: 13px;
  font-weight: 700;
}

#sunfluff-chat-form input[type="text"],
#sunfluff-chat-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  color: #13233a;
  background: #fff;
  border: 1px solid #d3dfed;
  border-radius: 10px;
  outline: none;
  font: inherit;
  font-size: 14px;
}

#sunfluff-chat-form input[type="text"]:focus,
#sunfluff-chat-form textarea:focus {
  border-color: #1f78df;
  box-shadow: 0 0 0 3px rgba(31, 120, 223, 0.14);
}

#sunfluff-chat-form textarea {
  min-height: 110px;
  resize: vertical;
}

.sunfluff-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 9px !important;
  color: #65768c !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.4;
}

.sunfluff-consent input {
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.sunfluff-consent a {
  color: #176bc7;
}

#sunfluff-turnstile {
  min-height: 65px;
}

#sunfluff-chat-send {
  width: 100%;
  padding: 14px 16px;
  color: #0c1e38;
  background: #ffbc25;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

#sunfluff-chat-send:hover:not(:disabled),
#sunfluff-chat-send:focus-visible:not(:disabled) {
  background: #ffca4b;
}

#sunfluff-chat-send:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

#sunfluff-chat-status {
  display: none;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

#sunfluff-chat-status.success {
  display: block;
  color: #075b39;
  background: #e6f8ee;
}

#sunfluff-chat-status.error {
  display: block;
  color: #8e2424;
  background: #fdeaea;
}

.sunfluff-note {
  margin: 14px 0 0;
  color: #7b8b9e;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 520px) {
  #sunfluff-chat-modal {
    align-items: flex-end;
    padding: 0;
  }

  #sunfluff-chat-window {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  #sunfluff-chat-header {
    border-radius: 20px 20px 0 0;
  }
}