html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.chat-shell {
  max-width: 900px;
  margin: 0 auto;
}

.chat-messages {
  min-height: 280px;
  max-height: 55vh;
  overflow-y: auto;
  background: var(--bs-tertiary-bg);
}

.profile-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex: 0 0 3rem;
}

.profile-placeholder {
  text-transform: uppercase;
}

.profile-avatar-sm {
  width: 2.5rem;
  height: 2.5rem;
  flex-basis: 2.5rem;
}

.presence-dot {
  display: inline-block;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  margin-right: .25rem;
  background: var(--bs-secondary-color);
}

.presence-dot.online {
  background: #198754;
}

.inbox-person-card {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}

.inbox-person-info {
  min-width: 0;
  flex: 1 1 auto;
}

.inbox-person-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
}

.friend-toggle-form {
  margin: 0;
}

.friend-toggle {
  min-width: 2.25rem;
  font-size: 1rem;
  line-height: 1.25;
}

.inbox-tabs .nav-link {
  white-space: nowrap;
}

.inbox-back {
  font-size: 1.5rem;
  line-height: 1;
  vertical-align: middle;
}

@media (max-width: 991.98px) {
  .inbox-mobile .inbox-sidebar,
  .inbox-mobile .inbox-chat {
    width: 100%;
  }

  .inbox-mobile .inbox-chat {
    display: none;
  }

  .inbox-mobile.inbox-chat-active .inbox-sidebar {
    display: none;
  }

  .inbox-mobile.inbox-chat-active .inbox-chat {
    display: block;
  }

  .inbox-mobile .inbox-chat .card {
    min-height: calc(100vh - 2rem);
  }

  .inbox-mobile .chat-messages {
    min-height: 0;
    max-height: calc(100vh - 250px);
  }

  .inbox-mobile .inbox-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: .25rem 0;
    background: var(--bs-body-bg);
  }
}

@media (max-width: 575.98px) {
  .inbox-mobile > .d-flex:first-child {
    align-items: flex-start !important;
  }

  .inbox-mobile > .d-flex:first-child h1 {
    font-size: 1.5rem;
  }

  .inbox-mobile > .d-flex:first-child p {
    font-size: .8rem;
  }

  .inbox-person-card {
    align-items: flex-start;
  }

  .inbox-person-actions {
    flex-direction: column;
  }
}

.embed-body {
  margin: 0;
  padding: .75rem;
  min-height: 100vh;
  background: var(--bs-body-bg);
}

.chat-attachment-image {
  max-width: min(100%, 24rem);
  max-height: 24rem;
  object-fit: contain;
  border-radius: .5rem;
}

.embed-dark {
  --bs-body-bg: #15151b;
  --bs-body-color: #f4f4f6;
  --bs-tertiary-bg: #24242c;
}

.embed-shell .chat-messages {
  min-height: 220px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
