
.o_Attachment {
  display: -webkit-box; display: -webkit-flex; display: flex;
}

.o_Attachment:hover .o_Attachment_asideItemUnlink.o-pretty {
  transform: translateX(0);
}

.o_Attachment_action {
  min-width: 20px;
}

.o_Attachment_actions {
  justify-content: space-between;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column;
}

.o_Attachment_aside {
  position: relative;
  overflow: hidden;
}

.o_Attachment_aside:not(.o-has-multiple-action) {
  min-width: 50px;
}

.o_Attachment_aside.o-has-multiple-action {
  min-width: 30px;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column;
}

.o_Attachment_asideItem {
  display: -webkit-box; display: -webkit-flex; display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.o_Attachment_asideItemUnlink.o-pretty {
  position: absolute;
  top: 0;
  transform: translateX(100%);
}

.o_Attachment_details {
  display: -webkit-box; display: -webkit-flex; display: flex;
  flex-flow: column;
  justify-content: center;
  min-width: 0;
  /* This allows the text ellipsis in the flex element */
  /* prevent hover delete button & attachment image to be too close to the text */
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.o_Attachment_filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.o_Attachment_image {
  flex-shrink: 0;
  margin: 3px;
}

.o_Attachment_image.o-details-overlay {
  position: relative;
}

.o_Attachment_image.o-details-overlay.o-small {
  min-width: 100px;
  min-height: 100px;
}

.o_Attachment_image.o-details-overlay.o-medium {
  min-width: 200px;
  min-height: 200px;
}

.o_Attachment_image.o-details-overlay.o-large {
  min-width: 400px;
  min-height: 400px;
}

.o_Attachment_image.o-details-overlay:hover .o_Attachment_imageOverlay {
  opacity: 1;
}

.o_Attachment_imageOverlay {
  bottom: 0;
  display: -webkit-box; display: -webkit-flex; display: flex;
  flex-direction: row;
  -webkit-box-pack: end; justify-content: flex-end;
  left: 0;
  padding: 10px;
  position: absolute;
  right: 0;
  top: 0;
}

.o_Attachment_imageOverlayDetails {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column;
  -webkit-box-pack: end; justify-content: flex-end;
  margin: 3px;
  width: 200px;
}

.o_Attachment.o-has-card-details {
  background-color: #dee2e6;
  border-radius: 5px;
}

.o_Attachment_action {
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

.o_Attachment_action:hover {
  background: rgba(255, 255, 255, 0.2);
}

.o_Attachment_aside {
  border-radius: 0 5px 5px 0;
}

.o_Attachment_asideItemDownload {
  cursor: pointer;
}

.o_Attachment_asideItemDownload:hover {
  background-color: #ced4da;
}

.o_Attachment_asideItemUnlink {
  cursor: pointer;
}

.o_Attachment_asideItemUnlink:not(.o-pretty):hover {
  background-color: #ced4da;
}

.o_Attachment_asideItemUnlink.o-pretty {
  color: white;
  background-color: #00A09D;
}

.o_Attachment_asideItemUnlink.o-pretty:hover {
  background-color: #006d6b;
}

.o_Attachment_asideItemUploaded {
  color: #00A09D;
}

.o_Attachment_extension {
  text-transform: uppercase;
  font-size: 80%;
  font-weight: 400;
}

.o_Attachment_image.o-attachment-viewable {
  cursor: zoom-in;
}

.o_Attachment_image.o-attachment-viewable:not(.o-details-overlay):hover {
  opacity: 0.7;
}

.o_Attachment_imageOverlay {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9));
  border-radius: 5px;
  color: white;
  opacity: 0;
}

.o_Attachment_asideItemUnlink.o-pretty {
  transition: transform 0.3s ease 0s;
}

.o_Attachment_imageOverlay {
  transition: all 0.3s ease 0s;
}

