.telegram-webk-dialog-host {
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.telegram-webk-dialog-host > :not(.telegram-webk-dialog-frame):not(.telegram-webk-dialog-status):not(.telegram-renderer-switch) {
  display: none !important;
}

.telegram-webk-dialog-frame {
  position: absolute;
  inset: 42px 0 0;
  display: block;
  width: 100%;
  height: calc(100% - 42px);
  min-height: 640px;
  border: 0;
  background: #fff;
}

.telegram-webk-dialog-frame.is-suspended,
.telegram-webk-dialog-status.is-suspended {
  display: none !important;
}

.telegram-webk-dialog-status {
  position: absolute;
  inset: 42px 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: #334155;
  background: #f8fafc;
}

.telegram-renderer-switch {
  position: relative;
  z-index: 3;
  flex: 0 0 42px;
  display: flex;
  gap: 4px;
  height: 42px;
  padding: 5px 8px;
  border-bottom: 1px solid #dbe2ea;
  background: #fff;
}

.telegram-renderer-switch button {
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  color: #475569;
  background: transparent;
  cursor: pointer;
}

.telegram-renderer-switch button.is-active {
  color: #fff;
  background: #2481cc;
}

.telegram-webk-dialog-status.is-hidden { display: none; }
.telegram-webk-dialog-status strong { color: #0f172a; font-size: 16px; }
.telegram-webk-dialog-status button {
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  color: #fff;
  background: #2481cc;
  cursor: pointer;
}
