.customer-service-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 46px;
  border: 1px solid #8f2020;
  border-radius: 5px;
  padding: 0 15px;
  background: #b22b2b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.2);
}

.customer-service-launcher:hover { background: #8f2020; }

.customer-service-panel {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 31;
  display: none;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100dvh - 100px));
  overflow: hidden;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.customer-service-panel.is-open { display: flex; flex-direction: column; }

.customer-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #101820;
  color: #fff;
}

.customer-service-head strong,
.customer-service-head small { display: block; }
.customer-service-head strong { font-size: 15px; }
.customer-service-head small { color: #c6d3df; font-size: 12px; margin-top: 2px; }

.customer-service-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.customer-service-close:hover { background: rgba(255, 255, 255, 0.12); }

.customer-service-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 11px;
  min-height: 190px;
  overflow-y: auto;
  padding: 16px;
  background: #f5f7fa;
}

.customer-service-message {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid #d9e0e7;
  border-radius: 5px;
  background: #fff;
  color: #233241;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.customer-service-message.customer {
  align-self: flex-end;
  border-color: #0b5cab;
  background: #0b5cab;
  color: #fff;
}

.customer-service-message.notice { border-left: 3px solid #d8a13a; }

.customer-service-handoff {
  display: none;
  gap: 9px;
  padding: 14px 16px;
  border-top: 1px solid #d9e0e7;
  background: #fffdf8;
}

.customer-service-handoff.is-visible { display: grid; }
.customer-service-handoff label { display: grid; gap: 5px; color: #233241; font-size: 12px; font-weight: 700; }
.customer-service-handoff input,
.customer-service-handoff textarea {
  width: 100%;
  border: 1px solid #c6d0d9;
  border-radius: 4px;
  padding: 8px 9px;
  background: #fff;
  color: #101820;
}
.customer-service-handoff textarea { min-height: 58px; resize: vertical; }
.customer-service-consent { display: flex !important; align-items: flex-start; gap: 7px; font-weight: 400 !important; }
.customer-service-consent input { width: auto; margin-top: 3px; }

.customer-service-send {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #d9e0e7;
  background: #fff;
}

.customer-service-send textarea {
  min-height: 42px;
  max-height: 100px;
  resize: vertical;
  border: 1px solid #c6d0d9;
  border-radius: 4px;
  padding: 9px;
}

.customer-service-send button,
.customer-service-handoff button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: #0b5cab;
  color: #fff;
  font-weight: 700;
}
.customer-service-send button:hover,
.customer-service-handoff button:hover { background: #083d73; }
.customer-service-handoff button { background: #b22b2b; }
.customer-service-handoff button:hover { background: #8f2020; }
.customer-service-status { min-height: 18px; padding: 0 16px 10px; color: #b22b2b; background: #fff; font-size: 12px; }

@media (max-width: 760px) {
  .customer-service-launcher { right: 16px; bottom: 70px; }
  .customer-service-panel { right: 16px; bottom: 126px; max-height: calc(100dvh - 146px); }
}

