.custom-file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1;
}

.custom-file-wrapper {
  display: flex;
  position: relative;
  flex-direction: column;
  row-gap: 0.8rem;
  background-color: rgb(var(--shades0));
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  z-index: 1;
}

.custom-file-label {
  background-color: rgba(var(--theme-primary500-shades100), 1);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  color: rgb(var(--shades0));
  column-gap: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  letter-spacing: var(--letterSpacing04);
  padding: 15px;
  text-transform: uppercase;
  width: 100%;
  z-index: 2;
}
.custom-file-label:after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='16' height='16' viewBox='0 0 16 16' xml:space='preserve'%3E%3Cpath fill='%23ffffff' d='M2.8,7.8V5.2L8,0l5.2,5.2v2.7L11,5.7L8.8,3.3l0.1,3.2v6H7v-6l0.1-3.2L4.9,5.7L2.8,7.8 L2.8,7.8z'/%3E%3Cpath id='Trazado_1408' fill='%23ffffff' d='M15.1,16H0.9v-5.6h1.7v3.9h10.8v-3.9h1.7L15.1,16L15.1,16z'/%3E%3C/svg%3E");
  width: 16px;
  height: 16px;
}

.custom-file-status {
  margin-bottom: 1rem;
  color: rgb(var(--grays-700));
  text-transform: uppercase;
  z-index: 2;
}

.wrp--custom-file__upload input.button {
  background-color: rgb(var(--warning-color50));
  color: rgb(var(--complementary-color900));
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing1);
  margin: 1rem 0;
}

.wrp--custom-file__upload .description {
  margin: 1rem 0 3rem;
}
form.webform-submission-form .wrp--custom-file__upload > label {
  margin-bottom: 1rem;
}

.wrp--custom-file__upload .custom-file-wrapper .custom-file-label {
  font-family: var(--headline-font-family);
}
.wrp--custom-file__upload .custom-file-wrapper .custom-file-status {
  font-family: var(--headline-font-family);
}

.wrp--custom-file__upload .webform-element-description {
  font-family: var(--headline-font-family);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing17);
  font-weight: 300;
}

@media (min-width: 768px) {
  .custom-file-wrapper {
    flex-direction: row;
    column-gap: 1rem;
    justify-content: flex-start;
    align-items: center;
  }
  .custom-file-label {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 0;
    height: 100%;
    max-width: 300px;
    margin: 0 !important;
    padding: 2rem 0;
  }
  .custom-file-status {
    margin: 0 auto;
  }
}

.error--message {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.custom-file-input {
  width: 100%;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}
