.inhaltsbereich.lw {
  max-width: 1146px;
  margin: 0 auto;
  padding-top: 20px;
}


.small--ads input[type="text"].epayPaywall__textInput,
.small--ads .epayPaywall__btn{
  grid-column-start: 1;
  grid-column-end: -1;
}


.epayment-ad-confirmation .flex-container {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.small--ads input[type="text"].epayPaywall__textInput {
  font-size: 18px;
  height: 40px;
  margin-bottom: 20px;
}

.small-ad-errors {
  color: var(--color-primary);
}

.small--ads .boxcontainer .boxheader h2 {
  background: #fff;
}

.small-ads-details {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.small-ads-details .small-ad-category label,
.small-ads-details .small-ad-category select,
.small-ads-details .small-ad-text input[type="text"],
.small-ads-details .small-ad-text textarea,
.small-ads-product_container {
  margin-bottom: 20px;
}
.small-ads-details .small-ad-category select{
  width: 441px;
}

.small-ads-details .small-ad-text input[type="text"],
.small-ads-details .small-ad-text textarea {
  font-size: 18px;
  font-family: var(--font-primary);
}
.small-ads-details .small-ad-text textarea {
  height: 188px;
}

.small-ads-details .small-ad-category.select-container::after {
  bottom: 32px;
}

.small-ads-product_container label,
.small-ad-text label[for=anzeigen-zeichenlaenge-120]{
  margin-right: 20px;
}

.small-ad-text label[for=anzeigen-chiffre]{
  margin: 20px 0 0 4px;
}

.small--ads .btn {
  width: 100%;
  font-size: 16px;
  line-height: 25px;
}

.small-ad-text-grid {
  display: grid;
  grid-template-columns: 285px 1fr;
  grid-template-rows: auto;
  grid-gap: 30px;
  margin-bottom: 20px;
}
.small-ad-text,
.small-ad-chars {
  text-align: left;
}

.small-ad-chars p:first-child {
  margin-top: 0;
}

.small-ad-preview-container {
  background: var(--color-background);
  padding: 10px;
  text-align: left;
  margin-bottom: 20px;
}

.small-ad-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-column-gap: 30px;
  grid-row-gap: 0px;
  margin-bottom: 20px;
}
.small-ad-preview-grid .small-ad-preview-headline {
  grid-column: 1/2;
  grid-row: 1/2;
  text-align: left;
}
.small-ad-preview-grid .small-ad-preview-container {
  grid-column: 1/2;
  grid-row: 2/3;
}
.small-ad-preview-grid .small-ad-preview-data-grid {
  grid-column: 2/3;
  grid-row: 2/3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-gap: 30px;
  align-self: start;
  margin-bottom: 20px;
  text-align: left;
}
.small-ad-preview-data-grid > div {
  align-self: start;
}

.small-ad-preview-title,
.small-ad-info-title {
  font-weight: bold;
}

.small-ads-details .epayPaywall__payum .fieldLabel,
.small-ads-details .epayPaywall__payum .fieldContent,
.small-ads-details .epayPaywall__userChange .fcmskundeneingabefelder-desc,
.small-ads-details .epayPaywall__userChange .fcmskundeneingabefelder-content{
  text-align: left;
}

.small-ad-btns-last-step {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.small--ads .small-ad-btns-last-step .btn {
  width: initial;
  line-height: 36px;
}

@media screen and (max-width: 767px) {
  .small--ads .epayPaywall__btn--facebook {
    padding: 5px;
  }
  .small--ads .boxcontainer {
    margin-top: 20px;
  }
  .small-ads-details .small-ad-category select {
    width: 63%;
  }
  .small-ads-product_container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;  
    text-align: left;
  }  
  .small-ad-text-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-gap: 20px;
  }  
  .small-ad-text label[for=anzeigen-chiffre]{
    display: block
  }
  .small-ad-chars {
    margin-top: 0px;
  }  

  .small-ad-preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    grid-column-gap: 20px;
    grid-row-gap: 0px;
  }
  .small-ad-preview-grid .small-ad-preview-headline {
    grid-column: 1/2;
    grid-row: 1/2;
    text-align: left;
  }
  .small-ad-preview-grid .small-ad-preview-container {
    grid-column: 1/2;
    grid-row: 2/3;
  }
  .small-ad-preview-grid .small-ad-preview-data-grid {
    grid-column: 1/2;
    grid-row: 3/4;
    grid-gap: 20px;
    margin-bottom: 0px;
  }  
  .small--ads .small-ad-btns-last-step .btn {
    margin-top: 18px;
  }
  .small--ads .small-ad-btns-last-step .btn:nth-child(1){
    margin-right: 18px;
  }

}

/* Anpassungen 2023 */
.epayPaywall__payum > form {
  display: flex;
  flex-direction: column;
}

.epayPaywallBestellungOuter {
  order: 0;
}

header.epayPaywall__header.epayPaywall__header--error {
  order: 3;
}

.epayGutscheinOuter {
  order: 1;
}

.epayPaywallPayumOuter {
  order: 2;
}

.epayPaywallSubmitOuter {
  order: 4;
}
