/* Contact Us attachments: dropzone states and attached files list (see contact-us-attachments.js) */


.input__label span.gray-t {
  color: #A0A3BD;
}
/* Dropzone */
.upload-file__wrapper--enhanced {
  place-content: center;
}

.upload-file__wrapper--enhanced:focus-visible {
  outline: 2px solid #1D4ED8;
  outline-offset: 2px;
}

.upload-file__wrapper--enhanced .upload-file__inside {
  color: #4E4B66;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.upload-file__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: url("../img/attachments/attachment_file.svg") no-repeat center / 20px 20px;
}

.upload-file__choose {
  color: #1D4ED8;
  font-weight: 500;
  cursor: pointer;
}

.upload-file__choose:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

.upload-file__text--drag,
.upload-file__text--limit {
  display: none;
}

/* Drag over */
.upload-file__wrapper--enhanced.is-dragover,
.upload-file__wrapper--enhanced.is-dragover:hover {
  border-color: #1D4ED8;
  background-color: #EFF6FF;
}

.upload-file__wrapper--enhanced.is-dragover .upload-file__icon {
  background-image: url("../img/attachments/attachment_file_blue.svg");
}

.upload-file__wrapper--enhanced.is-dragover .upload-file__text--default {
  display: none;
}

.upload-file__wrapper--enhanced.is-dragover .upload-file__text--drag {
  display: inline;
  color: #1D4ED8;
  font-weight: 500;
}

/* File limit reached */
.upload-file__wrapper--enhanced.is-disabled,
.upload-file__wrapper--enhanced.is-disabled:hover {
  border-color: #D9DBE9;
  background-color: #F9F9FC;
  cursor: not-allowed;
}

.upload-file__wrapper--enhanced.is-disabled .upload-file__icon {
  opacity: 0.6;
}

.upload-file__wrapper--enhanced.is-disabled .upload-file__text--default,
.upload-file__wrapper--enhanced.is-disabled .upload-file__text--drag {
  display: none;
}

.upload-file__wrapper--enhanced.is-disabled .upload-file__text--limit {
  display: inline;
  color: #A0A3BD;
}

/* Attached files */
.attachments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.attachments-list:empty {
  display: none;
}

.attachments-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #EBEEF5;
  border-radius: 6px;
}

.attachments-list__item--error {
  background: #FFF4F3;
  border-color: #ED6A61;
}

.attachments-list__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #EAF4FF url("../img/attachments/docs-icon.svg") no-repeat center / 16px 16px;
}

.attachments-list__icon--image {
  background-image: url("../img/attachments/image_filled_icons.svg");
}

.attachments-list__icon--error {
  background-color: #FDE3E1;
  background-image: url("../img/attachments/warning_alert.svg");
}

.attachments-list__info {
  flex: 1 1 auto;
  min-width: 0;
}

.attachments-list__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.attachments-list__name {
  overflow: hidden;
  min-width: 0;
  color: #4E4B66;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

a.attachments-list__name,
a.attachments-list__name:visited {
  color: #4E4B66;
  text-decoration: none;
  cursor: pointer;
}

a.attachments-list__name:hover,
a.attachments-list__name:focus-visible {
  color: #1D4ED8;
  text-decoration: underline;
}

.attachments-list__size {
  flex: 0 0 auto;
  color: #A0A3BD;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.attachments-list__error {
  margin-top: 2px;
  color: #ED6A61;
  font-size: 13px;
  line-height: 18px;
}

.attachments-list__remove {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent url("../img/attachments/delete.svg") no-repeat center / 20px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.attachments-list__remove:hover,
.attachments-list__remove:focus-visible {
  background-color: #EFF0F6;
}

.attachments-list__server-error {
  display: none;
  margin-top: 8px;
  color: #ED6A61;
  font-size: 14px;
  line-height: 20px;
}

/* The legacy containers stay empty; hide their spacing */
#listfiles:empty,
#listfiles2:empty {
  display: none;
}

@media (max-width: 767.98px) {
  .attachments-list__item {
    gap: 10px;
    padding: 8px;
  }
}

@media (max-width: 375.98px) {
  .upload-file__text-desktop,
  .upload-file__supports {
    font-size: 12px;
  }
}
