.customer-support {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  font-family: inherit;
  color: #0b1120;
}
.customer-support [hidden],
.customer-support-settings [hidden] {
  display: none !important;
}
.customer-support-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 94px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary, #1d4ed8) 90%, #ffffff 10%), var(--brand-primary-dark, #1e3a8a));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 6px rgba(15, 23, 42, 0.16),
    0 14px 30px -8px var(--brand-shadow, rgba(15, 23, 42, 0.28));
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}
.customer-support-toggle:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 18px 36px -8px var(--brand-shadow, rgba(15, 23, 42, 0.34));
}
.customer-support-toggle:active {
  transform: translateY(0) scale(0.97);
}
.customer-support-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.customer-support-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 364px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 120px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.085);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 24px 64px -16px rgba(15, 23, 42, 0.22);
  animation: cs-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cs-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.customer-support-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.customer-support-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.customer-support-close {
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #f4f6fa;
  color: #475569;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 1;
  font-size: 20px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.18s ease, color 0.18s ease;
}
.customer-support-close:hover {
  background: #e2e8f0;
  color: #0b1120;
}
.customer-support-channels {
  display: grid;
  gap: 8px;
}
.customer-support-channel {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 15px;
  background: #f6f8fb;
  border: 1px solid rgba(15, 23, 42, 0.055);
  min-width: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.customer-support-channel:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}
.customer-support-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--brand-soft, #f2f6fd);
  color: var(--brand-primary, #1d4ed8);
  font-size: 11px;
  font-weight: 780;
}
.customer-support-icon-wechat { color: #059669; background: #ecfdf5; }
.customer-support-icon-telegram { color: #0284c7; background: #f0f9ff; }
.customer-support-icon-whatsapp { color: #059669; background: #ecfdf5; }
.customer-support-contact { min-width: 0; flex: 1; }
.customer-support-contact small { display: block; font-size: 10.5px; color: #64748b; margin-bottom: 2px; }
.customer-support-contact strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.4;
  user-select: all;
}
.customer-support-actions { display: flex; align-items: center; gap: 5px; flex: none; }
.customer-support-copy,
.customer-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #fff;
  color: #1e293b;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 620;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.customer-support-copy:hover,
.customer-support-link:hover {
  border-color: var(--brand-primary, #1d4ed8);
  color: var(--brand-primary, #1d4ed8);
}
.customer-support-link {
  background: var(--brand-soft, #f2f6fd);
  border-color: var(--brand-border, rgba(29, 78, 216, 0.14));
  color: var(--brand-primary-dark, #1e3a8a);
}
.customer-support-alternatives { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 13px; }
.customer-support-alternatives a { font-size: 12px; color: #475569; text-decoration: none; padding: 4px 0; }
.customer-support-note { margin: 14px 0 0; color: #64748b; font-size: 11.5px; line-height: 1.7; }
.customer-support-status { margin: 7px 0 0; min-height: 0; color: var(--brand-primary, #1d4ed8); font-size: 11.5px; font-weight: 600; }
.customer-support-status:empty { display: none; }
.customer-support button:focus-visible,
.customer-support a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.customer-support-settings-shortcuts { display: flex; gap: 9px; flex-wrap: wrap; }
.customer-support-settings { margin-top: 24px; scroll-margin-top: 30px; }
.customer-support-settings-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.customer-support-settings-heading h2 { margin: 0; font-size: 19px; }
.customer-support-settings .notice { margin-bottom: 16px; }
.customer-support-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin-bottom: 5px; }
.customer-support-fields .field { min-width: 0; max-width: none; }
.customer-support-fields input { width: 100%; min-width: 0; }
.customer-support-fields small,
.customer-support-visibility > small { font-size: 12px; color: #64748b; line-height: 1.6; }
.customer-support-visibility { padding: 0; margin: 0 0 21px; border: 0; min-width: 0; }
.customer-support-visibility legend { font-size: 13px; font-weight: 650; margin-bottom: 9px; color: #334155; }
.customer-support-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid rgba(15, 23, 42, 0.08); background: #f1f5f9; border-radius: 999px; vertical-align: middle; margin-right: 11px; }
.customer-support-switch label { position: relative; cursor: pointer; margin: 0; }
.customer-support-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.customer-support-switch span { display: block; padding: 5px 14px; border-radius: 999px; color: #64748b; font-size: 12px; font-weight: 600; }
.customer-support-switch input:checked + span { background: #fff; box-shadow: 0 1px 5px rgba(15, 23, 42, 0.09); color: #0b1120; font-weight: 700; }
.customer-support-switch input:focus-visible + span { outline: 3px solid #93c5fd; outline-offset: 2px; }
.customer-support-field-error { display: block; font-size: 12px; line-height: 1.6; color: #be123c; margin-top: 5px; }
.customer-support-settings input[aria-invalid="true"] { border-color: #e11d48; }
@media (max-width: 640px) {
  .customer-support { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .customer-support-toggle { min-width: 0; width: 48px; height: 48px; padding: 0; }
  .customer-support-toggle span { display: none; }
  .customer-support-panel { bottom: 60px; width: 330px; padding: 18px; border-radius: 22px; max-height: calc(100dvh - 220px); }
  .customer-support-note { font-size: 11px; }
  .customer-support-heading { margin-bottom: 13px; }
  .customer-support-fields { grid-template-columns: 1fr; gap: 0; }
  .customer-support-visibility > small { display: block; margin-top: 8px; }
  .customer-support-settings-shortcuts .button { font-size: 12px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-support * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
