/* attachment */
:root {
  --happyforms-color-attachment-text-primary: #000;
  --happyforms-color-attachment-text-secondary: #999;
  --happyforms-color-attachment-add-file-link: #407fff;
  --happyforms-color-attachment-drop-zone-bg: #fcfcfc;
  --happyforms-color-attachment-drop-zone-bg-focused: #fff;
  --happyforms-color-attachment-progress-bar-bg: #dbdbdb;
  --happyforms-color-attachment-progress-bar: #407fff;
}

.happyforms-part--attachment .happyforms-tooltip {
  top: -30px;
  right: 0;
  align-items: flex-start;
}
.happyforms-part--attachment .happyforms-tooltip .happyforms-part__description {
  top: -10px;
}
.happyforms-attachment-box {
  margin-bottom: 10px;
  padding: 40px 20px;
  border: 2px dashed;
  border-radius: 6px;
}
.happyforms-form--part-border-radius-square .happyforms-attachment-box {
  border-radius: 0;
}
.happyforms-form--part-border-radius-pill .happyforms-attachment-box {
  border-radius: 25px;
}
.happyforms-styles .happyforms-attachment-box {
  border-color: #dbdbdb;
  border-color: var(--happyforms-color-part-border);
  background-color: #fcfcfc;
  background-color: var(--happyforms-color-attachment-drop-zone-bg);
}
.happyforms-attachment-box.entered {
  border-color: #407fff;
  border-color: var(--happyforms-color-part-border-focus);
  background-color: #fff;
  background-color: var(--happyforms-color-attachment-drop-zone-bg-focused);
}
.happyforms-attachment-box__input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.happyforms-styles .happyforms-attachment-box__label {
  color: #999;
  color: var(--happyforms-color-attachment-text-secondary);
}
.happyforms-attachment-box__label span {
  cursor: pointer;
  color: #407fff;
  color: var(--happyforms-color-attachment-add-file-link);
  text-decoration: underline;
}
.happyforms-attachment-box__label--uploading {
  display: none;
}
.happyforms-attachment-box.uploading .happyforms-attachment-box__label {
  display: none;
}
.happyforms-attachment-box.uploading .happyforms-attachment-box__label--uploading {
  display: block;
}
ul.happyforms-attachment__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
ul.happyforms-attachment__list.has-items {
  margin-bottom: 20px !important;
}
ul.happyforms-attachment__list li.happyforms-attachment-item {
  display: flex;
  margin: 0 0 5px !important;
}
.happyforms-styles ul.happyforms-attachment__list li.happyforms-attachment-item {
  font-size: 16px;
  font-size: var(--happyforms-part-value-font-size);
}
ul.happyforms-attachment__list li.happyforms-attachment-item:first-child {
  margin-top: 20px !important;
}
ul.happyforms-attachment__list li.happyforms-attachment-item[data-attachment-id=""] {
  display: none;
}
.happyforms-attachment-item__col--main {
  flex: 1;
}
.happyforms-attachment-item__size {
  text-transform: uppercase;
}
.happyforms-styles .happyforms-attachment-item__size {
  color: #999;
  color: var(--happyforms-color-attachment-text-secondary);
}
.happyforms-attachment-item__size:before {
  content: '-';
  display: inline-block;
  margin-right: 5px;
}
.happyforms-attachment-item__size span {
  padding: 0 5px;
}
.happyforms-styles .happyforms-attachment-link {
  font-weight: normal;
  color: #000;
  color: var(--happyforms-color-attachment-text-primary);
  text-decoration: underline;
}
.happyforms-styles .happyforms-attachment-link:hover {
  color: #f00;
}
.happyforms-attachment-box__progress {
  position: relative;
  display: none;
  width: 60%;
  height: 10px;
  margin: 20px auto 0;
  background-color: #dbdbdb;
  background-color: var(--happyforms-color-attachment-progress-bar-bg);
}
.happyforms-attachment-box__progress span {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 10px;
  background-color: #407fff;
  background-color: var(--happyforms-color-attachment-progress-bar);
  transition: width 0.2s ease-in;
}
.happyforms-attachment-box.uploading .happyforms-attachment-box__progress {
  display: block;
}
.happyforms-attachment__counter {
  line-height: 1;
  text-align: right;
}
.happyforms-styles .happyforms-attachment__counter {
  font-size: 16px;
  font-size: var(--happyforms-part-value-font-size);
  color: #999;
  color: var(--happyforms-color-attachment-text-secondary);
}
.happyforms-attachment__counter svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: top;
}
.happyforms-part--attachment .happyforms-file-notices .happyforms-message-notice {
  display: none;
}

.happyforms-form--password-protect .happyforms-flex {
  padding: 25px 0;
}
.happyforms-form--password-protect .happyforms-flex > .happyforms-message-notices {
  padding: 0 !important;
}
.happyforms-form--password-protect .happyforms-part {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0 !important;
}
.happyforms-form--password-protect .happyforms-part--form-password input {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}
.happyforms-form--password-protect .happyforms-part--submit {
  top: 0;
  width: 100% !important;
}
.happyforms-form--password-protect .happyforms-part--submit input[type=submit] {
  padding: 16px 50px 17px !important;
}
@media screen and (min-width: 800px) {
  .happyforms-form--password-protect .happyforms-part {
    width: auto;
  }
  .happyforms-form--password-protect .happyforms-part--form-password {
    padding-right: 25px;
  }
  .happyforms-form--password-protect .happyforms-part--submit {
    top: -5px;
    width: auto !important;
  }
}