#newsletter-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

@keyframes test {
  0% {
    scale: 0.9;
  }

  80% {
    scale: 1.05;
  }

  100% {
    scale: 1;
  }
}

.newsletter-popup strong,
.newsletter-reminder strong{
  font-weight: 900 !important;
}

.newsletter-popup-content {
  background: #fff;
  padding: 32px;
  width: 460px;
  border-radius: 10px;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: test 300ms ease-out;
  box-sizing: border-box;
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
}

.b-logo-light,
.b-logo-dark {
  width: 130px;
  height: 100px;
  margin-bottom: 48px;
  margin-top: 24px;
}

/* .b-logo-dark{display: none;} */

.newsletter-popup-content h2 {
  margin-block: 0;
  margin-bottom: 16px;
  font-weight: 400;
  max-width: 350px;
}

.newsletter-popup-content>p {
  font-size: 16px;
}

.newsletter-popup-content input {
  height: 45px;
  border-radius: 4px;
  border: 1px solid #bbbbbb;
  width: 100%;
  padding-inline: 16px;
  box-sizing: border-box;
  margin-top: 32px;
  font-size: 16px;
  outline: none;
}

.newsletter-popup-content>button {
  background-color: #B8860B;
  color: #FFF;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  height: 45px;
  /* max-width: 200px; */
  width: 100%;
  font-size: 16px;
  transition-duration: 500ms;
}

.newsletter-popup-content>button:hover,
.newsletter-popup-content>button:focus {
  background-color: #6d5007 !important;
}

#newsletter-message {
  font-size: 14px;
  text-align: center;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  margin: 16px 0 8px 0;
  cursor: pointer;
  position: relative;
  gap: 8px;
  user-select: none;
  gap: 16px;
}

.newsletter-consent input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.newsletter-consent:hover .custom-checkbox {
  border-color: #fab915;
}

.newsletter-consent>p {
  font-family: 'Calibri';
  font-size: 14px;
  font-weight: 300;
}

.newsletter-consent:hover>p {
  color: #3a3a3a;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #B8860B;
  border-radius: 4px;
  background: #fff;
  display: inline-block;
  position: relative;
  margin-top: 2px;
  transition-duration: 500ms;
}

.newsletter-consent input[type="checkbox"]:checked+.custom-checkbox::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #B8860B;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.newsletter-consent>p {
  flex: 1;
  margin-block: 0;
  text-align: left;
  transition-duration: 500ms;

}

.consent-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), -webkit-line-clamp 0.4s;
  max-height: 3.2em;
  cursor: pointer;
  user-select: text;
}

.consent-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  max-height: 100vh;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), -webkit-line-clamp 0.4s;
  overflow: visible;
}

.consent-more-btn {
  background: none;
  border: none;
  color: #B8860B;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-top: -4px;
  margin-bottom: 8px;
  text-decoration: underline;
  transition: color 0.2s;
  align-self: end;
}

.consent-more-btn:hover {
  color: #8B6508;
}


/*--- --- --- ---*/

.newsletter-reminder {
  max-width: 1240px;
  margin-inline: auto;
  background-color: #fbf7ec;
  padding: 32px 64px;
  border-radius: 10px;
  display: flex;
  gap: 128px;
  align-items: center;
  box-sizing: border-box;
  margin-top: 128px;
}

.newsletter-reminder > div{
  flex:1;
}

.newsletter-reminder h2 {
  font-size: 30px;
}

.newsletter-reminder p {
  font-size: 16px;
}

.newsletter-reminder button {
  background-color: #B8860B;
  color: #FFF;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  height: 45px;
  max-width: 250px;
  width: fit-content;
  font-size: 16px;
  transition-duration: 500ms;
  flex: 1
}

.newsletter-reminder button:hover{
  background-color: #6d5007;
}

/* @media only screen and (max-width: 1535px){
  .newsletter-reminder{width: 960px;}
} */

@media only screen and (max-width: 1279px){
  .newsletter-reminder{width: 960px;}
}

@media only screen and (max-width: 1023px){
  .newsletter-reminder{width: 90%;
    flex-direction: column;
    gap: 32px;
  }

  .newsletter-reminder h2{text-align: center; font-size: 25px;}
  .newsletter-reminder p{text-align: center; font-size: 15px;}

  .newsletter-reminder button{
    flex: none;
    padding-inline: 32px;
  }
}

@media only screen and (max-width: 500px) {
  .newsletter-popup-content {
    width: 90%;
  }

  .newsletter-popup-content img {
    width: 100px;
    height: 96px;
  }

  .newsletter-popup-content h2 {
    margin-bottom: 12px;
    font-size: 25px;
  }

  .newsletter-popup-content>p {
    font-size: 14px;
  }

  .custom-checkbox {
    width: 18px;
    height: 18px;
  }

  .newsletter-popup-content input {
    height: 40px;
    font-size: 14px;
  }

  .newsletter-popup-content>button {
    height: 40px;
    font-size: 14px;
  }

  .newsletter-consent input[type="checkbox"]:checked+.custom-checkbox::after {
    top: 0;
    left: 6px;
  }

  .newsletter-reminder{padding: 32px 32px;}
}

/* @media (prefers-color-scheme: dark) {
  .b-logo-light{
    display: none;
  }
  .b-logo-dark{
    display: block;
  }
} */

/*checkboxy w kontakcie*/

#wpcf7-f2250-p700-o1>form>p:nth-child(6)>label>span>span>span>label>span>a {
  color: #B8860B;
  transition-duration: 500ms;
}

#wpcf7-f2250-p700-o1>form>p:nth-child(6)>label>span>span>span>label>span>a:hover {
  color: #8B6508;
}

#wpcf7-f2250-p700-o1>form>p:nth-child(6)>label>span>span>span>label>span {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.1;
}

#wpcf7-f2250-p700-o1>form>p:nth-child(6)>label>span>span>span>label>span::before {
  width: 20px;
  height: 20px;
  border-color: #B8860B;
  margin-right: 16px;
  margin-bottom: 32px;
  float: left;
}

#wpcf7-f2250-p700-o1>form>p:nth-child(7)>label>span>span>span>label>span {
  font-weight: 300;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.1;
}

#wpcf7-f2250-p700-o1>form>p:nth-child(7)>label>span>span>span>label>span::before {
  width: 20px;
  height: 20px;
  border-color: #B8860B;
  margin-right: 16px;
  margin-bottom: 48px;
  float: left;
}