.swipe{
    --awc-swipe-bg: #fff;
    --awc-swipe-color: #333;
    --awc-swipe-padding: 30px;
    --awc-swipe-radius: 32px;
    --awc-swipe-max-width: 654px;
    --awc-swipe-text-align: left;
    --awc-swipe-loader-size: 50px;
    --awc-swipe-loader-border-size: 4px;
    --awc-swipe-loader-color:#1dc8ff;
    --awc-swipe-loader-bg: transparent;

    display: none;
}

.swipe.is-loading .swipe__body {
    --awc-btn-loader-size: 50px;
    --awc-btn-loader-color: #1dc8ff;
    --awc-btn-loader-border-size: 4px;
    --awc-btn-loader-bg: rgba(255,255,255,0.7);

    position: relative;
}
.swipe.is-loading .swipe__body:before {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--awc-btn-loader-bg);
    z-index: 15;
}
.awc--form:has(.awc--success-message){
    height: 100%;
}
.awc--success-message{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    margin: 0;
    opacity: .9;
    color: var(--dark-50);
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
}
.swipe.is-loading .swipe__body:after {
    content: "";
    display: block;
    position: absolute;
    width: var(--awc-btn-loader-size);
    height: var(--awc-btn-loader-size);
    left: 50%;
    top: 50%;
    margin-left: calc(var(--awc-btn-loader-size) / 2 * -1);
    margin-top: calc(var(--awc-btn-loader-size) / 2 * -1);
    z-index: 20;
    transform-origin: 50%;
    box-sizing: border-box;
    border: var(--awc-btn-loader-border-size) solid var(--awc-btn-loader-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: preloader-spin 1s steps(12, end) infinite;
}
.swipe.is-opened{
    position: fixed;
    display: block;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.swipe__overlay{
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    z-index: 350;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.swipe__box{
    position: absolute;
    top: 0;
    z-index: 450;
    text-align: var(--awc-swipe-text-align);
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    max-width:  var(--awc-swipe-max-width);
    padding: var(--awc-swipe-text-align);
    color: var(--awc-swipe-color);
    background-color: var(--awc-swipe-bg);
    transition: transform var(--awc-swipe-delay, 400ms);
}
.swipe_position-right .swipe__box{
    right: 0;
    transform: translate(100%);
    border-radius: var(--awc-swipe-radius) 0 0 var(--awc-swipe-radius);
}
.swipe_position-right .swipe__title{
    border-radius: var(--awc-swipe-radius) 0 0;
}
.swipe_position-right .swipe__footer{
    border-radius: 0 0 0 var(--awc-swipe-radius);
}

.swipe_position-left .swipe__box{
    left: 0;
    transform: translate(-100%);
    border-radius: 0 var(--awc-swipe-radius) var(--awc-swipe-radius) 0;
}
.swipe_position-left .swipe__title{
    border-radius: 0 var(--awc-swipe-radius) 0 0;
}
.swipe_position-left .swipe__footer{
    border-radius: 0 0 0 var(--awc-swipe-radius);
}


.swipe__box.is-opened-box{
    transform: translate(0);
}

.swipe__close-link {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  overflow: visible;
  width: 35px;
  height: 35px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  text-decoration: none;
  color: #95979c;
  border: 0;
  outline: 0;
  background: transparent;
}

.swipe__close-link:hover,
.swipe__close-link:focus {
  color: #2b2e38;
}

.swipe__header {
  padding: 0;
}

.swipe__title {
  font-weight: 700;
  font-size: 22px;
  line-height: 22px;
  text-align: center;
  padding: 12px 24px;
  background-color: #f2f2f2;
  border-top-left-radius: var(--awc-swipe-radius);
  border-top-right-radius: var(--awc-swipe-radius);
}
.swipe__inner,
.swipe__body {
    height: 100%;
}
.swipe__body {
  padding: 42px 30px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*.swipe-is-ajax-loading .swipe__body {
  padding: 30px;
  text-align: center;
  background-color: var(--awc-swipe-loader-bg);
}

.swipe-is-ajax-loading .swipe__body:after {
  content: "";
  display: block;
  position: absolute;
  width: var(--awc-swipe-loader-size);
  height: var(--awc-swipe-loader-size);
  left: 50%;
  top: 50%;
  margin-left: calc(var(--awc-swipe-loader-size) / 2 * -1);
  margin-top: calc(var(--awc-swipe-loader-size) / 2 * -1);
  z-index: 20;
  transform-origin: 50%;
  box-sizing: border-box;
  border: var(--awc-swipe-loader-border-size) solid var(--awc-swipe-loader-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: preloader-spin 1s steps(12, end) infinite;
}*/

.swipe__close-link {
  /*top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;*/
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    background: var(--dark-10);
    box-shadow: 0 0 30px #2a30471a;
}

.swipe__close-link svg{
    width: 20px;
    height: 20px;
}

.swipe__close-link:focus{
  outline: none;
}

/*.swipe.is-swipe{
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 25;
    width: 100%;
    height: 100%;
    max-width: 653px;
    transform: translate(100%);
    overflow: clip;
    transition: transform .4s, opacity .4s;
}

.swipe.is-swipe-active{
    transform: translate(0);
    opacity: 1;
}*/

@media (min-width: 1025px) {
  .swipe__title {
    padding: 20px 50px;
  }
  .swipe__close-link {
    top: 15px;
    right: 15px;
  }
  .swipe__body {
    padding: 30px 50px;
  }
  /*.swipe__close-link {
    width: 32px;
    height: 32px;
  }*/
}