/* Offer Modal (Atman) */

.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.offer-modal.is-open {
  display: block;
}

.offer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.offer-modal__dialog {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.offer-modal__close {
  position: relative;
    top: -330px;
    width: 44px;
    right: -22px;
    float: right;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(232,225,216,0.95);
  color: #6b6158;
  font-size: 30px;
  line-height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}

.offer-modal__close:focus {
  outline: 2px solid rgba(107,97,88,0.45);
  outline-offset: 2px;
}

.offer-modal__card {
  width: min(920px, 92vw);
  border-radius: 14px;
  /*overflow: hidden;*/
  background: #e8e1d8;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  /*display: grid;*/
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 300px;
  background-image: url(../img/offer_back.png);
  background-repeat: no-repeat;
    background-position: center right;
    background-size: 71%;
}

.offer-modal__content {
  padding: 42px 44px 38px;
  color: #3f3a35;
}

.offer-modal__title {
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.08;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.offer-modal__list {
  margin: 0 0 22px;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.offer-modal__list li {
  margin: 8px 0;
}

.offer-modal__foot {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.offer-modal__image {
    background-image: url(../img/offer_back.png);
    background-size: auto 110%;
    background-position: center;
    min-height: 300px;
}

/* Portrait / mobile layout */
@media (max-width: 640px), (orientation: portrait) {
  .offer-modal__dialog {
    padding: 18px;
    align-items: end;
  }

  .offer-modal__close {
    top: auto;
    bottom: -27px;
    right: 50%;
    transform: translateX(50%);
    width: 54px;
    height: 54px;
    font-size: 34px;
    line-height: 54px;
    margin-bottom:-100%
  }

  .offer-modal__card {
    width: min(430px, 94vw);
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .offer-modal__content {
    padding: 30px 26px 18px;
  }

  .offer-modal__title {
    font-size: 23px;
  }

  .offer-modal__list {
    font-size: 15px;
  }

  .offer-modal__image {
    min-height: 220px;
  }
}

/* Lock scroll when modal is open */
html.offer-modal--lock,
body.offer-modal--lock {
  /*overflow: hidden !important;*/
}

.offer-modal__close {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.offer-modal__foot {

    line-height: normal;
}

a.button.b2 {
    background: #fff;
    display: inline-flex;
    border-radius: 32px;
    padding: 10px !important;
    font-size: 14px;
    margin-right: 5px;
    margin-bottom:10px;
}

.offer-modal__actions {
    margin-top: 20px;
}

.bic {
    position: relative;
    top: 3px;
    margin-right: 5px;
}

@media (orientation: landscape) {
    .offer-modal__close {
        top:-470px;
        margin-bottom:-100%;
    }

    .offer-modal__card {
        background-size: 84%;
    }
}
  
@media (orientation: portrait) {
    .offer-modal__dialog {
        padding: 0px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .offer-modal__list{
            margin: 30px 0px;
            line-height: 1.2rem;
    }

    .offer-modal__card {
        background-position: 36%;
        background-size: 240%;
    }
}
