/* Keep incoming-call context readable in the pre-answer dialer. */
.telephony-softphone-modal--incoming-neon.ant-modal {
  width: min(520px, calc(100vw - 16px)) !important;
}

.telephony-call-context-card .ant-alert {
  align-items: flex-start;
}

.telephony-call-context-card .ant-alert-content,
.telephony-call-context-card .ant-alert-message,
.telephony-call-context-card .ant-alert-description {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.telephony-call-context-card .ant-alert-action {
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .telephony-call-context-card .ant-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .telephony-call-context-card .ant-alert-action {
    grid-column: 2;
    margin-top: 8px;
    margin-inline-start: 0;
  }
}

/* Uzbek labels for the legacy incoming-call card. */
html[lang="uz"] .telephony-state-panel--incoming .telephony-state-title,
html[lang="uz"] .telephony-state-panel--incoming .telephony-state-subtitle,
html[lang="uz"] .telephony-state-panel--incoming .telephony-state-chip,
html[lang="uz"] .telephony-state-panel--incoming .telephony-action-btn--reject,
html[lang="uz"] .telephony-state-panel--incoming .telephony-action-btn--answer {
  font-size: 0 !important;
}

html[lang="uz"] .telephony-state-panel--incoming .telephony-action-btn--reject > span:not(.ant-btn-icon),
html[lang="uz"] .telephony-state-panel--incoming .telephony-action-btn--answer > span:not(.ant-btn-icon) {
  display: none;
}

html[lang="uz"] .telephony-state-panel--incoming .telephony-state-title::after {
  content: "Kiruvchi qo‘ng‘iroq";
  font-size: 14px;
}

html[lang="uz"] .telephony-state-panel--incoming .telephony-state-subtitle::after {
  content: "Javob bering yoki rad eting";
  font-size: 12px;
}

html[lang="uz"] .telephony-state-panel--incoming .telephony-state-chip::after {
  content: "1-liniya";
  font-size: 12px;
}

html[lang="uz"] .telephony-state-panel--incoming .telephony-action-btn--reject::after {
  content: "Rad etish";
  font-size: 14px;
}

html[lang="uz"] .telephony-state-panel--incoming .telephony-action-btn--answer::after {
  content: "Javob berish";
  font-size: 14px;
}
