.abort-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: var(--primary);
}

.abort-overlay__close {
  max-width: var(--max-width);
  margin: 0 auto auto auto;
  padding: 0 var(--offset);
  position: absolute;
  top: 35px;
  right: 0;
}

.abort-overlay__wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--offset);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.abort-overlay__headline {
  color: var(--tertiary);
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 100px auto;
}

.abort-overlay__items {
  display: grid;
  grid-gap: 0 50px;
  grid-template-columns: 1fr 1fr;
  max-width: 600px;
  margin: 0 auto;
}

.abort-overlay__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.abort-overlay__item-headline {
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.abort-overlay__item-icon {
  display: block;
  text-align: center;
}

.abort-overlay__item-input-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.abort-overlay__item-input {
  padding: 20px 150px 20px 30px;
  border: none;
  border-radius: 100px;
  font-size: 18px;
  box-sizing: border-box;
  width: 100%;
}

.abort-overlay__item-input::placeholder {
  color: #9BAAB0;
}

.abort-overlay__item-input:focus-visible {
  outline: none;
}

.abort-overlay__item-submit {
  position: absolute;
  height: 50px;
  width: 50px;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  z-index: 1;
  background: transparent;
  border: none;
  font-size: 0;
  cursor: pointer;
}

.abort-overlay__item-submit::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -9px;
  width: 60px;
  height: 62px;
  border-radius: 0 100px 100px 0;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary);
  background-image: url('../../assets/media/search.svg');
  cursor: pointer;
  transition: background-color .3s ease-in-out;
}

.abort-overlay__item-submit:hover::after {
  background-color: #77a212;
}

.abort-overlay__svg-circle {
  fill: var(--secondary);
  transition: fill .3s ease-in-out;
}

.abort-overlay__svg:hover .abort-overlay__svg-circle {
  fill: #77a212;
}

@media screen and (max-width: 800px) {
  .abort-overlay__headline {
    margin-bottom: 30px;
  }

  .abort-overlay__items {
    grid-template-columns: 1fr;
  }

  .abort-overlay__item {
    margin-top: 50px;
  }

  .abort-overlay__item:first-child {
    margin-top: 0;
  }

  .abort-overlay__item-input-wrapper {
    margin: auto;
    width: 100%;
    max-width: 270px;
  }

  .abort-overlay__item-input {
    padding: 20px 50px 20px 30px;
  }
}

@media screen and (max-width: 1024px) {
  .abort-overlay__close {
    padding-right: 0;
  }

  .abort-overlay__close svg {
    height: 40px;
  }
}

@media screen and (max-width: 599px) {
  .abort-overlay__item {
    margin-top: 25px;
  }
}
