/* Agenda + chat · modales sheet en kinlig-modals.css */
.kinlig-hidden { display: none !important; }

.landing-services-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1rem;
}
.landing-services-cta .btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: var(--btn-premium-radius);
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.landing-services-cta .btn-secondary:hover {
  border-color: var(--brand);
  text-decoration: none;
}
/* Modal chat · premium (base completa: antes estaba en index.html) */
.kinlig-modal.kinlig-modal--chat {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.35s ease, opacity 0.35s ease;
  font-family: Montserrat, system-ui, sans-serif;
}

.kinlig-modal.kinlig-modal--chat.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.kinlig-modal.kinlig-modal--chat .kinlig-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.kinlig-modal.kinlig-modal--chat.is-open .kinlig-modal-backdrop {
  opacity: 1;
}

.kinlig-modal.kinlig-modal--chat .kinlig-modal-sheet--chat {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  max-height: min(90dvh, 640px);
  height: auto;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #0a0a0a;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.38s ease;
}

.kinlig-modal.kinlig-modal--chat.is-open .kinlig-modal-sheet--chat {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

/* Botón flotante chat · siempre visible */
#kinligChatDock,
.kinlig-contact-dock {
  position: fixed !important;
  z-index: 600 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.kinlig-chat-top {
  flex-shrink: 0;
  padding-top: max(10px, env(safe-area-inset-top));
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kinlig-chat-grab {
  display: none;
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.kinlig-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 24px 16px;
}

.kinlig-chat-head__info {
  flex: 1;
  min-width: 0;
}

.kinlig-chat-head__eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8a0a8;
}

.kinlig-chat-head__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f5f5f7;
}

.kinlig-chat-head__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #a1a1a6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kinlig-chat-head__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  flex-shrink: 0;
}

.kinlig-chat-head__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1a6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.kinlig-chat-head__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.kinlig-chat-body {
  padding: 20px 24px max(24px, env(safe-area-inset-bottom));
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
}
#chatStep1 {
  display: block;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100%;
}
.kinlig-chat-lead {
  font-size: 14px;
  color: #b4b4ba;
  line-height: 1.6;
  margin: 2px 0 22px;
  padding: 0 4px;
  max-width: 28em;
}
.kinlig-chat-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 auto;
}

/* Iniciar chat · sin hueco entre email y botón */
#chatStartForm.kinlig-chat-form {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  gap: 12px;
  align-content: flex-start;
}

#chatStartForm .kinlig-chat-field {
  flex: 0 0 auto;
}

#chatStartForm .kinlig-chat-submit {
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  align-self: stretch;
}

#chatStartForm #chatStartErr {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
}

#chatStartForm #chatStartErr:empty {
  display: none;
}
.kinlig-chat-field span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #86868b);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kinlig-chat-field input,
.kinlig-chat-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.kinlig-chat-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a1a1a6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.kinlig-chat-field input:focus,
.kinlig-chat-field select:focus {
  outline: none;
  border-color: rgba(145, 41, 48, 0.55);
  box-shadow: 0 0 0 3px rgba(145, 41, 48, 0.2);
}
.kinlig-chat-submit {
  margin-top: 0;
  padding: 15px 20px;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(128deg, rgba(18, 4, 8, 0.98) 0%, rgba(145, 41, 48, 0.95) 100%);
  box-shadow: 0 8px 28px rgba(145, 41, 48, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.kinlig-chat-submit:active {
  transform: scale(0.98);
}
#chatStep1 .kinlig-form-err {
  margin-top: 0;
}
.kinlig-chat-live {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Calificación · sin historial de mensajes */
.kinlig-chat-live--rating .kinlig-chat-msgs {
  display: none !important;
  margin: 0;
  min-height: 0;
  flex: 0;
}

.kinlig-chat-live--rating .kinlig-chat-rating,
.kinlig-chat-live--rating .kinlig-chat-thanks {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 20px 24px;
}

/* Calificación · solo estrellas + botón, centrado, sin cabecera Kinlig */
.kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) .kinlig-chat-top {
  display: none !important;
}

.kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) .kinlig-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: max(24px, env(safe-area-inset-top)) 26px max(28px, env(safe-area-inset-bottom));
  min-height: 0;
}

.kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) #chatStep2 {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
}

.kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) .kinlig-chat-rating__title {
  font-size: clamp(17px, 4.5vw, 20px);
  margin-bottom: 20px;
}

.kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) .kinlig-chat-stars {
  gap: 10px;
  margin-bottom: 4px;
}

.kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) #chatRatingSubmit,
.kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) #chatNewChatBtn {
  width: 100%;
  max-width: 280px;
  margin-top: 4px;
}
.kinlig-chat-msgs {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kinlig-chat-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.kinlig-chat-msg--vi {
  align-self: flex-end;
  background: rgba(145, 41, 48, 0.35);
  border: 1px solid rgba(145, 41, 48, 0.45);
  color: #f5f5f7;
  border-bottom-right-radius: 4px;
}
.kinlig-chat-msg--op {
  align-self: flex-start;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: #e8a0a8;
  border-bottom-left-radius: 4px;
}
#chatComposeWrap,
.kinlig-chat-compose-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kinlig-chat-compose {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
}
.kinlig-chat-compose input {
  flex: 1;
  min-height: 24px;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
  padding: 6px 8px;
  outline: none;
}
.kinlig-chat-send {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e8a0a8;
  background: rgba(145, 41, 48, 0.25);
}
.kinlig-chat-send:hover { background: rgba(145, 41, 48, 0.45); color: #fff; }
.kinlig-chat-msg--sys {
  align-self: center;
  max-width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted, #86868b);
  background: transparent;
  border: none;
  padding: 6px 8px;
}
.kinlig-chat-rating {
  margin-top: 4px;
  padding: 14px 4px 4px;
  text-align: center;
}
.kinlig-chat-rating__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text, #f5f5f7);
}
.kinlig-chat-rating__hint {
  font-size: 12px;
  color: var(--muted, #86868b);
  margin: 8px 0 12px;
  min-height: 1.2em;
}
.kinlig-chat-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.kinlig-chat-star {
  position: relative;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.25);
  font-size: 0;
  line-height: 48px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.kinlig-chat-star::before {
  content: "\2605";
  font-size: 26px;
  line-height: 1;
  display: block;
  padding-top: 11px;
}
.kinlig-chat-star:hover,
.kinlig-chat-star.is-hover {
  color: #e8a0a8;
  transform: scale(1.06);
}
.kinlig-chat-star.is-selected {
  color: #f5c4ca;
  background: rgba(145, 41, 48, 0.25);
}
.kinlig-chat-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.kinlig-chat-thanks {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #e8a0a8;
  padding: 16px 8px 8px;
}

/* Chat · móvil (pantalla completa tipo app) */
@media (max-width: 719px) {
  .kinlig-modal.kinlig-modal--chat {
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
  }

  .kinlig-modal.kinlig-modal--chat .kinlig-modal-sheet--chat {
    max-width: none;
    width: 100%;
    max-height: none;
    height: 100dvh;
    height: 100svh;
    min-height: -webkit-fill-available;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%) !important;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    background: #0a0a0a;
  }

  .kinlig-modal.kinlig-modal--chat.is-open .kinlig-modal-sheet--chat {
    transform: translateY(0) !important;
  }

  /* Paso inicio · modal compacto, no pantalla completa vacía */
  .kinlig-modal.kinlig-modal--chat:has(#chatStep1:not(.kinlig-hidden)) .kinlig-modal-sheet--chat {
    height: auto;
    max-height: min(92dvh, 640px);
    min-height: 0;
  }

  .kinlig-chat-top {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .kinlig-chat-grab {
    display: block;
  }

  .kinlig-chat-head {
    padding: 0 26px 16px;
  }

  .kinlig-chat-head__title {
    font-size: 18px;
  }

  .kinlig-chat-body {
    padding: 22px 26px max(32px, env(safe-area-inset-bottom));
    background: #0a0a0a;
  }

  .kinlig-chat-lead {
    font-size: 15px;
    line-height: 1.65;
    margin: 4px 0 26px;
    padding: 0 6px;
  }

  #chatStartForm.kinlig-chat-form {
    gap: 12px;
  }

  #chatStartForm .kinlig-chat-submit {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  .kinlig-chat-msgs {
    max-height: none;
  }

  #chatComposeWrap,
  .kinlig-chat-rating,
  .kinlig-chat-thanks {
    flex-shrink: 0;
    padding-top: 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 8, 0.92) 24%);
  }

  .kinlig-chat-rating {
    padding: 20px 8px 8px;
  }

  .kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) .kinlig-modal-sheet--chat {
    max-height: none;
    height: 100dvh;
    height: 100svh;
    min-height: -webkit-fill-available;
    border-radius: 0;
  }

  .kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) .kinlig-chat-rating,
  .kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) .kinlig-chat-thanks {
    background: transparent;
    padding-top: 0;
  }

  .kinlig-chat-stars {
    gap: 10px;
  }

  .kinlig-chat-star {
    width: 52px;
    height: 52px;
    line-height: 52px;
    border-radius: 14px;
  }

  .kinlig-chat-star::before {
    font-size: 30px;
    padding-top: 11px;
  }

  body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

@media (min-width: 720px) {
  .kinlig-modal--chat:has(#chatStep2.kinlig-chat-live--rating:not(.kinlig-hidden)) .kinlig-modal-sheet--chat {
    min-height: 360px;
    height: auto;
    max-height: min(88vh, 520px);
    border-radius: 20px;
  }

  .kinlig-modal.kinlig-modal--chat .kinlig-modal-sheet--chat {
    max-height: min(88vh, 600px);
  }
  .kinlig-chat-msgs {
    max-height: 340px;
  }
}

.kinlig-chat-end-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 18px;
  min-height: 46px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  color: #e8a0a8;
  background: rgba(145, 41, 48, 0.14);
  border: 1px solid rgba(145, 41, 48, 0.55);
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.kinlig-chat-end-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(145, 41, 48, 0.32);
  border-color: #912930;
}
.kinlig-chat-end-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.kinlig-chat-end-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
#chatNewChatBtn {
  margin-top: 12px;
}
.kinlig-agenda-when {
  margin: 8px 0 4px;
}
.kinlig-agenda-when select option:disabled {
  color: var(--muted);
}
.kinlig-agenda-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  max-height: 200px;
  overflow-y: auto;
}
.kinlig-agenda-slot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
}
.kinlig-agenda-slot:has(input:checked) {
  border-color: var(--brand);
  background: rgba(145,41,48,.12);
}
.kinlig-form-err {
  color: var(--danger, #ff6b6b);
  font-size: 13px;
  margin-top: 4px;
  min-height: 1.2em;
}
#chatStep1 .kinlig-form-err {
  margin-bottom: 4px;
}

/* Dock agenda + chat · abajo derecha */
.kinlig-contact-dock {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 280;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.kinlig-contact-dock--chat-only {
  gap: 0;
}
.kinlig-contact-dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 12px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: 600 13px/1 Montserrat, system-ui, sans-serif;
  color: #e8e8ed;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kinlig-contact-dock__btn:hover {
  transform: translateY(-2px);
}
.kinlig-contact-dock__btn--chat {
  position: relative;
  width: 54px;
  height: 54px;
  padding: 0;
  justify-content: center;
  color: #e8a0a8;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px rgba(232, 160, 168, 0.55);
}
.kinlig-contact-dock__icon {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 2;
}
/* El dock no se oculta al abrir modales (evita que quede invisible si body.modal-open se queda pegado) */

/* FAB chat · legacy + dock chat btn */
.kinlig-chat-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 280;
  width: 54px;
  height: 54px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #e8a0a8;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1.5px rgba(232, 160, 168, 0.55);
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.kinlig-chat-fab__icon {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 2;
}
.kinlig-chat-fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(145, 41, 48, 0.5);
  z-index: 1;
  pointer-events: none;
  animation: kinlig-chat-fab-ring 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes kinlig-chat-fab-ring {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  55% {
    transform: scale(1.22);
    opacity: 0.12;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}
.kinlig-chat-fab:hover {
  color: #f5c4ca;
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1.5px rgba(232, 160, 168, 0.75),
    0 0 20px rgba(145, 41, 48, 0.25);
}
.kinlig-chat-fab:active {
  transform: translateY(0) scale(0.96);
}
body.modal-open .kinlig-chat-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.kinlig-contact-dock__btn--chat.kinlig-chat-fab--offline,
.kinlig-chat-fab--offline {
  color: #86868b;
}
.kinlig-chat-fab--offline .kinlig-chat-fab__pulse {
  display: none;
}
.kinlig-chat-offline {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 12px 32px;
  min-height: 280px;
}
.kinlig-chat-offline__icon {
  margin-bottom: 16px;
  color: #86868b;
}
.kinlig-chat-offline__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #f5f5f7;
}
.kinlig-chat-offline__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}
.kinlig-chat-submit--alt {
  background: transparent;
  border: 1px solid rgba(145, 41, 48, 0.45);
  color: #912930;
}
.kinlig-chat-offline__divider {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #86868b;
  text-align: center;
}
.kinlig-chat-offline__form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px 12px;
  font: inherit;
  box-sizing: border-box;
}
.kinlig-chat-offline__text {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  color: #a1a1a6;
  max-width: 280px;
}
.kinlig-chat-head__status--off .kinlig-chat-head__dot {
  background: #86868b;
}
.kinlig-chat-head__status--off {
  color: #86868b;
  border-color: rgba(255, 255, 255, 0.06);
}
@media (prefers-reduced-motion: reduce) {
  .kinlig-chat-fab__pulse {
    animation: none;
    opacity: 0.35;
  }
  .kinlig-chat-fab:hover {
    transform: none;
  }
}
@media (max-width: 480px) {
  .kinlig-chat-fab {
    width: 50px;
    height: 50px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  .kinlig-chat-fab__icon {
    width: 24px;
    height: 24px;
  }
}
