.bb-email-signup {
  --bb-turq: #5FBFBB;
  --bb-dkturq: #3c9693;
  --bb-red: #c2063b;
  --bb-brown: #48312f;
  --bb-ink: #4d3945;
  --bb-cream: #fcfbf3;
  --bb-dash: #fcfadb;
  --bb-white: #ffffff;
  --bb-cubano: Cubano, Helvetica, Arial, sans-serif;
  --bb-robo: "Roboto Slab", Helvetica, serif;

  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  box-sizing: border-box;
  margin: 0;
  padding: 22px 22px 20px;
  background-color: #5FBFBB;
  color: var(--bb-ink);
  font-family: var(--bb-robo);
  border: 2px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(72, 49, 47, 0.22);
}

.bb-email-signup.is-closed {
  display: none;
}

.bb-email-signup__close {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  line-height: 24px;
  cursor: pointer;
  transition: color 0.14s ease-in-out;
}

.bb-email-signup__close:hover,
.bb-email-signup__close:focus {
  color: #4d3945;
  outline: none;
}

.bb-email-signup__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bb-email-signup__title {
  margin: 0 0 4px;
  font-family: var(--bb-cubano);
  font-size: 26px;
  font-weight: normal;
  line-height: 1.15;
  color: #ffffff;
  text-align: center;
  padding: 0 18px;
}

.bb-email-signup__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bb-email-signup__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bb-email-signup input.bb-email-signup__input[type="text"],
.bb-email-signup input.bb-email-signup__input[type="email"] {
  display: block;
  width: 100%;
  max-width: none;
  height: 40px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 12px;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid var(--bb-border, #e5e5e5);
  border-radius: 2px;
  color: #4d3945 !important;
  -webkit-text-fill-color: #4d3945;
  font-family: var(--bb-robo);
  font-size: 16px;
  font-weight: 400;
  line-height: 40px;
  text-align: left !important;
  -webkit-appearance: none;
  appearance: none;
}

.bb-email-signup input.bb-email-signup__input[type="text"]:focus,
.bb-email-signup input.bb-email-signup__input[type="text"]:active,
.bb-email-signup input.bb-email-signup__input[type="email"]:focus,
.bb-email-signup input.bb-email-signup__input[type="email"]:active {
  background: #ffffff !important;
  background-color: #ffffff !important;
  outline: 2px solid var(--bb-ink);
  outline-offset: 1px;
  border-color: var(--bb-ink);
}

.bb-email-signup input.bb-email-signup__input[type="text"]::placeholder,
.bb-email-signup input.bb-email-signup__input[type="email"]::placeholder {
  color: #82747d !important;
  opacity: 1;
  text-align: left !important;
  -webkit-text-fill-color: #82747d;
}

.bb-email-signup input.bb-email-signup__input[type="text"]::-webkit-input-placeholder,
.bb-email-signup input.bb-email-signup__input[type="email"]::-webkit-input-placeholder {
  color: #82747d !important;
  opacity: 1;
}

.bb-email-signup input.bb-email-signup__input[type="text"]::-moz-placeholder,
.bb-email-signup input.bb-email-signup__input[type="email"]::-moz-placeholder {
  color: #82747d !important;
  opacity: 1;
}

.bb-email-signup input.bb-email-signup__input[type="text"]:-ms-input-placeholder,
.bb-email-signup input.bb-email-signup__input[type="email"]:-ms-input-placeholder {
  color: #82747d !important;
  opacity: 1;
}

.bb-email-signup input.bb-email-signup__input[type="text"]:-webkit-autofill,
.bb-email-signup input.bb-email-signup__input[type="email"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #ffffff inset;
  -webkit-text-fill-color: #4d3945;
}

.bb-email-signup__input.is-invalid {
  border-color: var(--bb-red) !important;
}

.bb-email-signup__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #ffffff;
}

.bb-email-signup__consent span {
  color: #ffffff;
}

.bb-email-signup__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--bb-ink);
}

.bb-email-signup__checkbox.is-invalid {
  outline: 1px solid var(--bb-red);
}

.bb-email-signup__field-error {
  margin: 0;
  font-size: 12px;
  color: var(--bb-red);
}

.bb-email-signup__actions {
  margin-top: 2px;
  text-align: center;
}

.bb-email-signup .bb-email-signup__submit {
  display: inline-block;
  background: #c2063b;
  color: #ffffff;
  font-family: var(--bb-cubano) !important;
  font-size: 20px;
  line-height: 1;
  border-radius: 2px;
  border: 0;
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 0.14s ease-in-out, color 0.14s ease-in-out;
}

.bb-email-signup .bb-email-signup__submit:hover,
.bb-email-signup .bb-email-signup__submit:focus {
  background: #4d3945;
  color: #ffffff;
}

.bb-email-signup .bb-email-signup__submit:disabled {
  background: var(--bb-brown);
  color: #cbbfb8;
  cursor: not-allowed;
}

.bb-email-signup__status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 500;
  background: var(--bb-cream);
}

.bb-email-signup__status.is-success {
  color: var(--bb-dkturq);
  border: 2px solid var(--bb-cream);
  text-align: center;
  white-space: pre-line;
}

.bb-email-signup__status.is-error {
  color: var(--bb-red);
  background: #f8dee5;
  border: 2px solid var(--bb-red);
}

.bb-email-signup__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bb-email-signup.is-complete .bb-email-signup__form > :not(.bb-email-signup__status) {
  display: none;
}

.bb-email-signup.is-complete .bb-email-signup__status {
  display: block;
}

@media (max-width: 480px) {
  .bb-email-signup {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    padding: 18px;
  }
}
