
.incoming-call-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;

  background: #ffffff;
  border-radius: 14px;
  padding: 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  overflow-x: hidden;
  overflow-y: auto;

  z-index: 2000;
  animation: incomingCallFadeIn 0.25s ease-out;
}

@keyframes incomingCallFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.call-left {
  display: flex;
  align-items: center;
  gap: 12px;

  flex: 1;
  min-width: 0;
}

.call-icon {
  flex-shrink: 0;

  font-size: 1.6rem;
  color: #0d6efd;
}

.call-text {
  flex: 1;
  min-width: 0;
}

.call-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;

  overflow-wrap: anywhere;
}

.call-subtitle {
  margin-top: 2px;

  font-size: 0.8rem;
  line-height: 1.35;
  color: #666;

  overflow-wrap: anywhere;
}

.call-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  flex-shrink: 0;
}

.call-actions .btn {
  white-space: nowrap;
}

/*
 * Mobile layout
 *
 * Move the action buttons to a separate row so translated
 * labels remain fully visible on narrow screens.
 */
@media (max-width: 575.98px) {
  .incoming-call-banner {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);

    padding: 16px;

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
  }

  .call-left {
    width: 100%;
  }

  .call-actions {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .call-actions .btn {
    width: 100%;
    min-height: 42px;
  }
}
