.wc-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 1001;
  width: min(390px, calc(100vw - 36px));
  max-height: calc(100dvh - 112px);
  overflow: auto;
  border: 1px solid rgba(69, 176, 228, 0.45);
  border-radius: 18px;
  background: #f7fafc;
  color: #0e2a38;
  box-shadow: 0 24px 70px rgba(3, 19, 29, 0.35);
}

.wc-chat-panel[hidden] {
  display: none !important;
}

.wc-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-top: 3px solid #45b0e4;
  border-radius: 17px 17px 0 0;
  background: #0e2a38;
  color: #fff;
}

.wc-chat-head strong {
  display: block;
  font: 600 19px/1.25 Poppins, Arial, sans-serif;
}

.wc-chat-head span {
  display: block;
  margin-top: 4px;
  color: #c9dbe4;
  font: 400 13px/1.45 Figtree, Arial, sans-serif;
}

.wc-chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.wc-chat-body {
  padding: 21px 22px 22px;
}

.wc-chat-intro {
  margin: 0 0 17px;
  color: #405866;
  font: 400 15px/1.55 Figtree, Arial, sans-serif;
}

.wc-chat-form {
  display: grid;
  gap: 13px;
  padding: 0;
  background: transparent;
}

.wc-chat-form label {
  display: grid;
  gap: 6px;
  color: #0e2a38;
  font: 600 13px/1.35 Figtree, Arial, sans-serif;
}

.wc-chat-form input,
.wc-chat-form textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #b9ced9;
  border-radius: 8px;
  background: #fff;
  color: #0e2a38;
  font: 400 16px/1.45 Figtree, Arial, sans-serif;
}

.wc-chat-form textarea {
  min-height: 98px;
  resize: vertical;
}

.wc-chat-form input:focus,
.wc-chat-form textarea:focus,
.wc-chat-close:focus-visible,
.wc-chat-submit:focus-visible,
.wc-chat-options a:focus-visible {
  outline: 3px solid rgba(69, 176, 228, 0.5);
  outline-offset: 2px;
}

.wc-chat-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.wc-chat-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #45b0e4;
  border-radius: 8px;
  background: #45b0e4;
  color: #082535;
  font: 600 14px/1.3 Poppins, Arial, sans-serif;
  cursor: pointer;
}

.wc-chat-submit[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.wc-chat-status {
  min-height: 22px;
  margin: 0;
  color: #405866;
  font: 500 13px/1.55 Figtree, Arial, sans-serif;
}

.wc-chat-status.is-success {
  color: #176589;
}

.wc-chat-status.is-error {
  color: #8a2f2f;
}

.wc-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #d6e3e9;
}

.wc-chat-options a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #176589;
  font: 600 13px/1.4 Poppins, Arial, sans-serif;
  text-decoration: none;
}

.wc-chat-options a:hover {
  color: #0e2a38;
}

body.wc-chat-open {
  overflow: hidden;
}

@media (min-width: 701px) {
  body.wc-chat-open {
    overflow: auto;
  }
}

@media (max-width: 700px) {
  .wc-chat-panel {
    right: 12px;
    bottom: max(70px, calc(env(safe-area-inset-bottom) + 58px));
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 94px);
    border-radius: 16px;
  }

  .wc-chat-head {
    padding: 16px 18px;
  }

  .wc-chat-head strong {
    font-size: 18px;
  }

  .wc-chat-body {
    padding: 17px 18px 18px;
  }

  .wc-chat-intro {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc-chat-panel,
  .wc-chat-panel * {
    animation: none !important;
    transition: none !important;
  }
}
