#popin-bkg,
.popin {
  display: none;
}

#popin-bkg.on,
.popin.on {
  -webkit-animation: fadein 0.5s;
  -moz-animation: fadein 0.5s;
  -o-animation: fadein 0.5s;
  animation: fadein 0.5s;
  display: block;
}

#popin-bkg.fadeout,
.popin.fadeout {
  -webkit-animation: fadeout 0.5s;
  -moz-animation: fadeout 0.5s;
  -o-animation: fadeout 0.5s;
  animation: fadeout 0.5s;
  display: block;
}

#popin-bkg {
  background: #888;
  background: rgba(0, 0, 0, 0.6);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 99;
}

.popin {
  box-sizing: border-box;
  color: #222;
  left: 50%;
  margin: 0;
  max-height: 550px;
  max-width: 900px;
  position: fixed;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 95%;
  z-index: 100;
}
.popin > span {
  background: #222;
  border: 2px solid #fff;
  box-sizing: border-box;
  color: #fff;
  display: block;
  font-size: 0.9em;
  min-height: 2em;
  padding: 0.25em 2em 0.25em 0.5em;
  position: relative;
  text-align: left;
  width: 100%;
  z-index: 200;
}
.popin > span .close {
  cursor: pointer;
  font-size: 1.5em;
  font-weight: 700;
  position: absolute;
  right: 0.5em;
  top: 0.125em;
}
.popin .popin-content {
  background: #fff;
  color: #222;
  height: auto;
  max-height: 480px;
  overflow: auto;
  padding: 1em;
}
@media only screen and (max-width: 700px) {
  .popin .popin-content {
    height: 87.5%;
    height: calc(100% - 82px);
  }
}
.popin h2 {
  margin: 0 0 1em;
  padding: 0 0.25em 0.25em;
  text-align: center;
}
.popin .required {
  text-align: left;
}
.popin p.ml {
  font-size: 0.75em;
  margin: 1em 0 0;
  padding: 0;
}

body.popinForm .popin {
  max-width: 350px;
  text-align: center;
}
@media only screen and (max-width: 700px) {
  body.popinForm .popin {
    max-width: 100%;
  }
}
body.popinForm .popin .popin-content {
  padding: 1em 2em;
}
body.popinForm .popin button {
  margin: 0 auto;
  width: 46.5%;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.popin .note {
  color: #aaa;
  font-size: 0.75rem;
  line-height: 1em;
  margin: -0.5em 0 0;
  padding: 0 0 1em;
  text-align: left;
}
.popin form[name='partenaire'] .products {
  padding: 0.5em 0;
}
.popin #formCampagne > .columns > div:first-child {
  width: 33.33%;
}
@media only screen and (max-width: 700px) {
  .popin #formCampagne > .columns > div:first-child {
    width: 100%;
  }
}
.popin #formCampagne > .columns > div:nth-child(2) {
  width: 66.66%;
}
@media only screen and (max-width: 700px) {
  .popin #formCampagne > .columns > div:nth-child(2) {
    width: 100%;
  }
}
.popin.popin-form .popin-content, .popin.popin-fiche .popin-content {
  font-size: 0.875em;
}
.popin.popin-form table, .popin.popin-fiche table {
  margin: 0.5em 0;
}
.popin.popin-form #popin-fond-noir, .popin.popin-fiche #popin-fond-noir {
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 101;
  left: 0px;
  top: 0px;
}
.popin.popin-form {
  max-width: 500px;
}
.popin.popin-form.popin-form-produit {
  max-width: 700px;
}
.popin.popin-form.popin-form-emailing, .popin.popin-form.popin-form-contenu, .popin.popin-form.popin-form-apercu {
  max-width: 90%;
}
.popin.popin-form.popin-form-emailing .page-links, .popin.popin-form.popin-form-contenu .page-links, .popin.popin-form.popin-form-apercu .page-links {
  text-align: left;
}
.popin.popin-form.popin-form-emailing .page-links #btn_validate, .popin.popin-form.popin-form-contenu .page-links #btn_validate, .popin.popin-form.popin-form-apercu .page-links #btn_validate {
  float: right;
}
.popin.popin-fiche {
  max-width: 500px;
}
.popin .popin[popin-id='campagnes-new2'] ul,
.popin .popin[popin-id='campagnes-new3'] ul {
  padding: 0.25em 1em;
  text-align: center;
}
.popin .popin[popin-id='campagnes-new2'] ul li,
.popin .popin[popin-id='campagnes-new3'] ul li {
  display: inline-block;
  list-style: none;
  padding: 0.25em 1.5em;
  position: relative;
  font-size: 0.925em;
}
.popin .popin[popin-id='campagnes-new2'] ul li:before,
.popin .popin[popin-id='campagnes-new3'] ul li:before {
  content: "";
  display: block;
  background: #e00;
  position: absolute;
  width: 0.75em;
  height: 0.75em;
  top: 0.625em;
  left: 0.25em;
}
.popin .popin[popin-id='campagnes-new2'] ul li.last-of-type,
.popin .popin[popin-id='campagnes-new3'] ul li.last-of-type {
  padding-right: 0;
}
.popin .popin[popin-id='campagnes-new2'] .upload-zone,
.popin .popin[popin-id='campagnes-new3'] .upload-zone {
  border: 1px solid #ccc;
  height: 150px;
  background: #eee;
}
.popin .flex-1.inputStyle {
  border-right: 1px solid #ccc;
  padding: 0 15px;
}
.popin .flex-2.inputStyle {
  padding: 0 15px;
}
.popin .inputContainer {
  margin: auto;
  position: relative;
  width: 200px;
}
.popin .inputContainer label[id='inputTrigger'] {
  display: block;
  margin: 25% 0;
  padding: 6px 34px;
  background: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  color: #000;
  transition: 0.5s;
  cursor: pointer;
}
.popin .inputContainer label[id='inputTrigger']:hover {
  background: #444;
  color: #fff;
  border: 1px solid #fff;
  cursor: pointer;
}
.popin .inputContainer label[id='inputTrigger']:before {
  content: "Choisissez un fichier... ";
}
.popin .inputContainer input[id='guide_guide'] {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  padding: 7px 0;
  opacity: 0;
  cursor: pointer;
}
.popin ul.recap li {
  padding: 0.5em;
}
.popin ul.recap li > span {
  border-bottom: 1px solid #ddd;
  display: block;
  font-weight: 700;
}
.popin ul.recap li > p {
  padding: 0.25em 0;
}

#campagnes .popin.popin-form {
  max-width: 750px;
}

#campagne_seuil label {
  display: inline;
  vertical-align: top;
}

#campagne_generique label {
  display: inline;
  vertical-align: top;
}

#campagnes .campagne-action-btn {
  float: left;
  margin-right: 5px;
}

@media only screen and (max-width: 700px) {
  .popin {
    bottom: 4%;
    height: auto;
    left: 4%;
    max-height: initial;
    max-width: initial;
    right: 4%;
    top: 4%;
    position: fixed;
    transform: initial;
    width: auto;
  }
  .popin .popin-content {
    max-height: initial;
  }
  .popin.popin-form #formProduit td {
    border: none;
    box-sizing: border-box;
    display: inline-block;
    width: 48%;
  }
}
