/**
 * Esup-Pod Change_video_owner styles
 */

.children-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.full-width {
  width: 100% !important;
  flex-grow: 1 !important;
}

.semi-width {
  max-width: 320px;
}

.suggestions {
  max-height: 310px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: var(--bs-dark);
  border-color: var(--bs-dark);
  color: #fff;
  z-index: 1;
}

.suggestions > *:nth-child(even) {
  border-top: 1px solid #2c2f38;
  border-bottom: 1px solid #2c2f38;
}

#current_search {
  border-left: 4px solid var(--pod-primary);
  font-weight: 600;
}

#current_search:hover {
  border-left-color: #fff;
}

.suggestions > p:hover {
  background-color: var(--pod-link-color);
}

.suggestions > * {
  padding: 0.8em;
  cursor: pointer;
  margin: 0;
}

#list_videos__search {
  padding: 0.4em;
}

.form .form-wrapper__control.select-videos {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-grow: 1;
  width: 100%;
  height: 290px;
  padding: 0.8em 0.4em;
  overflow-y: auto;
  background-color: var(--pod-background);
}

.form-wrapper__control.select-videos .card.manage_video {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 160px;
  margin: 0 0.8em 0.8em 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--pod-link-color);
  cursor: pointer;
}

.form-wrapper__control.select-videos .card.manage_video::after {
  content: "✓";
  width: 35px;
  height: 35px;
  background: var(--bs-success);
  color: #fff;
  border-bottom-style: solid;
  border-right-style: solid;
  border-width: 1px;
  border-color: #fff9;
  position: absolute;
  top: calc(50% - 17.5px);
  right: calc(50% - 17.5px);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  font-size: 20px;
  text-align: center;
  line-height: 35px;
}

.form-wrapper__control.select-videos .card.manage_video.choosed::after {
  opacity: 1;
}

.choosed > .card-body {
  opacity: 0.66;
}

.form-wrapper__control.select-videos .card.manage_video img {
  width: 100%;
}

.form-wrapper__control.select-videos .card.manage_video .footer {
  padding: 0.4em;
  font-size: 14px;
}

.card.manage_video .footer .video-title {
  width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
