/*
 * Legacy overrides
 * Charger apres main.css.
 */

.has-mobile-bottom-toolbar .tool-bar,
.tool-bar.tool-bar-bottom {
  top: auto !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  width: 100vw;
}

.has-mobile-bottom-toolbar {
  padding-bottom: 56px;
}

/* Edition d'annonce : panneau de réordonnancement des photos. */
#photo-order-panel {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #d9e4e7;
  background: #f8fbfc;
}

#photo-order-list {
  margin: 15px 0;
  padding: 0;
  list-style: none;
}

#photo-order-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #d9e4e7;
  background: #fff;
  cursor: move;
}

#photo-order-list li.photo-order-dragging {
  opacity: .5;
}

#photo-order-list .photo-order-picture {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

#photo-order-list .photo-order-picture picture,
#photo-order-list .photo-order-picture img {
  display: block;
  max-width: 100px;
  max-height: 70px;
}

#photo-order-list .photo-order-actions {
  white-space: nowrap;
}

#photo-order-status.photo-order-error {
  color: #b94a48;
}

#photo-order-status.photo-order-success {
  color: #3c763d;
}

@media (max-width: 600px) {
  #photo-order-list li {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #photo-order-list .photo-order-actions {
    width: 100%;
  }
}
