.eif-popup[hidden],
.eif-popup__comment[hidden],
.eif-popup__success[hidden] {
  display: none;
}

body.eif-popup-open {
  overflow: hidden;
}

.eif-popup,
.eif-popup * {
  box-sizing: border-box;
}

.eif-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #161616;
  font-family: Arial, Helvetica, sans-serif;
}

.eif-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.58);
}

.eif-popup__panel {
  position: relative;
  width: min(100%, 640px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 0;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 34px);
  background: #fff;
  box-shadow: 0 24px 80px rgba(22, 22, 22, 0.22);
}

.eif-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ded8cc;
  border-radius: 50%;
  color: #64615d;
  background: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.eif-popup__eyebrow {
  margin: 0 48px 12px 0;
  color: #d95f45;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eif-popup__panel h2 {
  margin: 0 48px 10px 0;
  color: #161616;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.eif-popup__comment h2 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.eif-popup__intro {
  margin: 0 0 16px;
  color: #64615d;
  font-size: 1rem;
  line-height: 1.45;
}

.eif-popup__intro strong {
  color: #161616;
  font-weight: 800;
}

.eif-popup__options {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.eif-popup__intent {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  border: 1px solid #ded8cc;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  background: #fff;
  color: #161616;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.eif-popup__intent:hover,
.eif-popup__intent:focus {
  border-color: #0c6b4d;
  outline: 0;
  background: rgba(12, 107, 77, 0.08);
}

.eif-popup__comment,
.eif-popup__success {
  display: grid;
  gap: 12px;
}

.eif-popup__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -2px;
}

.eif-popup__suggestions:empty {
  display: none;
}

.eif-popup__suggestions button {
  max-width: 100%;
  border: 1px solid #ded8cc;
  border-radius: 999px;
  padding: 6px 10px;
  color: #161616;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

.eif-popup__suggestions button:hover,
.eif-popup__suggestions button:focus {
  border-color: #0c6b4d;
  outline: 0;
  background: rgba(12, 107, 77, 0.08);
}

.eif-popup__details {
  display: grid;
  gap: 7px;
  color: #64615d;
  font-size: 0.92rem;
  font-weight: 700;
}

.eif-popup__details--hidden-label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eif-popup__details textarea {
  width: 100%;
  min-height: 116px;
  border: 1px solid #ded8cc;
  border-radius: 8px;
  padding: 12px 13px;
  color: #161616;
  background: #fff;
  font: inherit;
  resize: vertical;
}

.eif-popup__details textarea:focus {
  border-color: #0c6b4d;
  outline: 3px solid rgba(12, 107, 77, 0.14);
}

.eif-popup__status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #064a37;
  font-weight: 700;
}

.eif-popup__status[data-error="true"] {
  color: #a83321;
}

.eif-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.eif-popup__submit,
.eif-popup__leave {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.eif-popup__submit {
  color: #fff;
  background: #0c6b4d;
}

.eif-popup__submit:hover {
  background: #064a37;
}

.eif-popup__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.eif-popup__leave {
  color: #64615d;
  background: transparent;
}

.eif-popup__leave:hover {
  color: #064a37;
}

@media (max-width: 520px) {
  .eif-popup__panel {
    width: min(100%, 680px);
  }

  .eif-popup__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .eif-popup__submit,
  .eif-popup__leave {
    width: 100%;
  }

  .eif-popup__details textarea {
    min-height: 126px;
  }
}
