.client-chat-button.order-channel-link-replaced {
  display: none !important;
  pointer-events: none !important;
}

.order-channel-links-portal {
  flex: 0 0 auto;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  display: flex;
}

.order-channel-link {
  min-width: 0;
  min-height: 31px;
  height: 31px;
  padding: 0 10px;
  border: 1px solid var(--border, #e4e8ef);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary, #596275);
  background: var(--surface, #fff);
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.order-channel-link:hover {
  border-color: var(--primary, #4f63ed);
  background: var(--surface-hover, #f4f7fc);
  box-shadow: 0 2px 8px rgba(32, 42, 72, .08);
}

.order-channel-link-icon {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}

.order-channel-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.order-channel-link-label {
  display: block;
}

.order-channel-link-chevron {
  width: 13px;
  height: 16px;
  margin-left: 1px;
  padding-left: 5px;
  border-left: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  display: grid;
  place-items: center;
  opacity: .72;
}

.order-channel-link-chevron svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-channel-link[aria-expanded="true"] .order-channel-link-chevron svg {
  transform: rotate(180deg);
}

.order-channel-link-telegram.linked {
  border-color: color-mix(in srgb, #2aabee 40%, var(--border, #e4e8ef));
  color: #178bc8;
  background: color-mix(in srgb, #2aabee 10%, var(--surface, #fff));
}

.order-channel-link-viber.linked {
  border-color: color-mix(in srgb, #7360d7 40%, var(--border, #e4e8ef));
  color: #6653c9;
  background: color-mix(in srgb, #7360d7 10%, var(--surface, #fff));
}

.order-channel-link-telegram.direct {
  color: #178bc8;
}

.order-channel-link-viber.direct {
  color: #6653c9;
}

.order-channel-link.unavailable {
  color: var(--text-muted, #929bad);
  background: var(--surface-subtle, #f8f9fc);
  cursor: default;
  opacity: .72;
}

.order-channel-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary, #4f63ed) 48%, transparent);
  outline-offset: 2px;
}

.order-channel-action-menu {
  width: 218px;
  position: fixed;
  z-index: 2750;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--border, #e4e8ef) 84%, var(--text, #161a24));
  border-radius: 13px;
  display: grid;
  gap: 1px;
  background: color-mix(in srgb, var(--surface, #fff) 96%, var(--surface-hover, #f4f7fc));
  box-shadow: 0 12px 30px rgba(24, 31, 51, .14), 0 2px 8px rgba(24, 31, 51, .06);
  transform-origin: top right;
  animation: order-channel-menu-in .12s ease-out;
}

.order-channel-action-menu::before {
  width: 9px;
  height: 9px;
  position: absolute;
  top: -5px;
  right: 20px;
  border-left: 1px solid color-mix(in srgb, var(--border, #e4e8ef) 84%, var(--text, #161a24));
  border-top: 1px solid color-mix(in srgb, var(--border, #e4e8ef) 84%, var(--text, #161a24));
  background: color-mix(in srgb, var(--surface, #fff) 96%, var(--surface-hover, #f4f7fc));
  content: "";
  transform: rotate(45deg);
}

.order-channel-action-menu.opens-upward {
  transform-origin: bottom right;
}

.order-channel-action-menu.opens-upward::before {
  top: auto;
  bottom: -5px;
  border: 0;
  border-right: 1px solid color-mix(in srgb, var(--border, #e4e8ef) 84%, var(--text, #161a24));
  border-bottom: 1px solid color-mix(in srgb, var(--border, #e4e8ef) 84%, var(--text, #161a24));
}

@keyframes order-channel-menu-in {
  from { opacity: 0; transform: translateY(-3px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.order-channel-action-item {
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text, #161a24);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.order-channel-action-item:hover:not(:disabled) {
  color: var(--primary, #4f63ed);
  background: var(--surface-hover, #f4f7fc);
}

.order-channel-action-item:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 34%, transparent);
  outline-offset: -2px;
}

.order-channel-action-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-secondary, #596275);
  background: var(--surface-hover, #f4f7fc);
}

.order-channel-action-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-channel-action-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-channel-action-menu-telegram .order-channel-action-item:hover:not(:disabled),
.order-channel-action-menu-telegram .order-channel-action-item:focus-visible {
  color: #178bc8;
  background: color-mix(in srgb, #2aabee 9%, var(--surface, #fff));
}

.order-channel-action-menu-telegram .order-channel-action-icon {
  color: #178bc8;
  background: color-mix(in srgb, #2aabee 11%, var(--surface, #fff));
}

.order-channel-action-menu-viber .order-channel-action-item:hover:not(:disabled),
.order-channel-action-menu-viber .order-channel-action-item:focus-visible {
  color: #6653c9;
  background: color-mix(in srgb, #7360d7 9%, var(--surface, #fff));
}

.order-channel-action-menu-viber .order-channel-action-icon {
  color: #6653c9;
  background: color-mix(in srgb, #7360d7 11%, var(--surface, #fff));
}

@media (prefers-reduced-motion: reduce) {
  .order-channel-action-menu { animation: none; }
}

.order-chat-link-notice {
  width: min(390px, calc(100vw - 32px));
  position: fixed;
  z-index: 2900;
  right: 18px;
  bottom: 18px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--primary, #4f63ed) 28%, var(--border, #e4e8ef));
  border-radius: 11px;
  color: var(--text, #161a24);
  background: var(--surface, #fff);
  box-shadow: 0 16px 42px rgba(20, 30, 58, .18);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}

.order-chat-link-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .order-channel-link-label {
    display: none;
  }

  .order-channel-link {
    width: 31px;
    padding: 0;
  }
}
