.vk-profile-choice {
  --choice-width: min(450px, calc(100dvw - 24px));
  --choice-height: calc(100dvh - 24px);
  position: fixed;
  inset: 50% auto auto 50%;
  box-sizing: border-box;
  width: var(--choice-width);
  max-width: none;
  max-height: var(--choice-height);
  margin: 0;
  padding: clamp(12px, 4%, 22px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--vkui--color_separator_primary, #4e535a);
  border-radius: 16px;
  color: var(--vkui--color_text_primary, #fff);
  background: var(--vkui--color_background_content, #242529);
  font: 400 1rem/1.45 -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  overflow-wrap: anywhere;
}

.vk-profile-choice::backdrop { background: #05070bbd; }
.vk-profile-choice h2 { margin: 0 0 8px; font-size: 1.25em; line-height: 1.2; }
.vk-profile-choice p { margin: 0; }
#vk-profile-status:not(:empty) { margin-top: 8px; }

.vk-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.vk-profile-actions button {
  flex: 1 1 9em;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--vkui--color_separator_primary, #4e535a);
  border-radius: 9px;
  color: inherit;
  background: var(--vkui--color_background_secondary, #33353a);
  font: 600 1em/1.25 -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#vk-profile-allow { background: #c9e0ff; border-color: #c9e0ff; color: #102840; }
#vk-profile-allow:disabled { opacity: .65; cursor: default; }
.vk-profile-actions button:focus-visible { outline: 2px solid #95caff; outline-offset: 2px; }

.driver-profile .vk-profile-manage {
  flex-shrink: 0;
  min-height: 38px;
  width: 100%;
  padding: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}

[data-vk-preview] #app .vk-online-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

[data-vk-preview] #app .vk-online-name { flex: 1 1 auto; }

@media (orientation: portrait) {
  .vk-profile-choice {
    --choice-width: min(450px, calc(100dvh - 24px));
    --choice-height: calc(100dvw - 24px);
    transform: translate(-50%, -50%) rotate(90deg);
  }
}
