.hystmodal__opened {
    position: fixed;
    right: 0;
    left: 0;
    overflow: hidden;
}

.hystmodal__shadow{
    position: fixed;
    border:none;
    display: block;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 98;
    opacity: 0;
    -webkit-transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
    transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
    background-color: black;
}
@media only screen and (min-width: 48em) {
    .hystmodal__shadow{
        -webkit-transition: opacity 300ms ease;
        transition: opacity 300ms ease;
        background-color: black;
    }
}

.hystmodal__shadow--show{
    pointer-events: auto;
    opacity: 0.6;
}

.hystmodal {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch; 
    opacity: 1;
    pointer-events: none;
    display: flex;
    flex-flow: column nowrap;
    /* justify-content: end; */
    z-index: 99;
    visibility: hidden;
    -webkit-transform: translate(0px, 100%);
    transform: translate(0px, 100%);
    -webkit-transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
    transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
}

@media only screen and (min-width: 48em) {
    .hystmodal {
        -webkit-transform: none;
        transform: none;
        transition: none;
    }
 }
 
.hystmodal--active{
    opacity: 1;
}

.hystmodal--moved,
.hystmodal--active{
    pointer-events: auto;
    visibility: visible;
    -webkit-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
}
@media only screen and (min-width: 48em) {
    .hystmodal--moved,
    .hystmodal--active{
        -webkit-transform: none;
        transform: none;
    }
 }

.hystmodal__wrap {
    flex-shrink: 0;
    flex-grow: 0;
    width: 100%;
    min-height: 100%;
    margin: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}
@media all and (min-width: 48em){
    .hystmodal__wrap {
        justify-content: center;
    }
}

.hystmodal__window {
    position: fixed;
    bottom: 0;
    margin: 0;
    /* height: 50vh; */
   
    width: 100%;
    border-radius: 20px 20px 0 0;
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
    background: #fff;  
    overflow: visible;
    -webkit-transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
    transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
}
@media all and (min-width: 48em){
    .hystmodal__window {
        position: inherit;
        margin: 50px 0;
        height: auto;
        max-width: 600px;
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
        opacity: 0;
        border-radius: 10px;
        -webkit-transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
        transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
    }
}

.hystmodal--active .hystmodal__window{
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

.hystmodal__close{
    position: absolute;
    top: 17px;
    right: 17px;
    width: 18px;
    height: 18px;
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23111' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M22 2L2 22'/%3E%3Cpath fill='none' stroke='%23111' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M2 2l20 20'/%3E%3C/svg%3E");
    z-index: 100;
    border: none;
    font-size: 0;
    outline: none;
}
@media all and (min-width: 48em){
    .hystmodal__close{
        top: 0;
        right: -40px;
        display: block;
        width: 30px;
        height: 30px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23fff' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M22 2L2 22'/%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M2 2l20 20'/%3E%3C/svg%3E");
        cursor: pointer;
    }
}
.hystmodal__close:focus{
    outline: 2px dotted #d6d6d6;
    outline-offset: 2px;
}

.hystmodal__header {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    /* border-bottom: 1px solid #e6e6e6; */
    border-radius: 20px 20px 0 0;
    z-index: 10;
    background-color: #fff;
}
@media all and (min-width: 48em){
    .hystmodal__header {
        
    }
}

/* .hystmodal__header::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 50px;
    height: 3px;
    background-color: rgb(216, 216, 216);
    border-radius: 1px;
} */

.modal-content {
    padding: 50px 0 0 0;  
    overflow-y: scroll; 
    height: 100%;
}
@media all and (min-width: 48em){
    .modal-content {
        overflow-y: visible; 
        height: 100%;
    }
}

.hystmodal__title {padding: 10px 20px;}


/* ------------------------------------------------------------------- */

.modal-quickshow .hystmodal {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
 
    /* -webkit-overflow-scrolling: touch; */
    opacity: 1;
    pointer-events: none;
    display: flex;
    flex-flow: column nowrap;
    /* justify-content: end; */
    z-index: 99;
    visibility: hidden;
    -webkit-transform: translate(-100%, 0%);
    transform: translate(-100%, 0%);
    -webkit-transition: all 100ms cubic-bezier(0.26, 0, 0.07, 1);
    transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
}
@media only screen and (min-width: 48em) {
    .modal-quickshow .hystmodal {
        -webkit-transform: none;
        transform: none;
        transition: none;
        overflow-y: scroll;
    }
 }
 
 .modal-quickshow .hystmodal--active{
    opacity: 1;
}

.modal-quickshow .hystmodal--moved,
.modal-quickshow .hystmodal--active{
    pointer-events: auto;
    visibility: visible;
    -webkit-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
}
@media only screen and (min-width: 48em) {
    .modal-quickshow .hystmodal--moved,
    .modal-quickshow .hystmodal--active{
        -webkit-transform: none;
        transform: none;
    }
 }

 .modal-quickshow .hystmodal__wrap {
    flex-shrink: 0;
    flex-grow: 0;
    width: 100%;
    min-height: 100%;
    margin: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
}
@media all and (min-width: 48em){
    .modal-quickshow .hystmodal__wrap {
        justify-content: center;
        align-items: center;
    }
}

.modal-quickshow .hystmodal__window {
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
    background: #fff;  
    overflow: visible;
    width: 80%;
    height: 100%;
    border-radius: 0 20px 0 0;
    -webkit-transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
    transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
}

@media all and (min-width: 30em){
    .modal-quickshow .hystmodal__window{ 
        width: 60%;
    }
}

@media all and (min-width: 48em){
    .modal-quickshow .hystmodal__window {
        margin: 10px 0;
        box-sizing: border-box;
        flex-shrink: 0;
        flex-grow: 0;
        background: #fff;
        width: 600px;
        height: auto;
        border-radius: 20px;
        max-width: 100%;
        overflow: visible;
        transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
        transform: scale(0.9);
        opacity: 0;
    }
}

.modal-quickshow .hystmodal--active .hystmodal__window{
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

.modal-quickshow .hystmodal__close{
    position: absolute;
    top: 17px;
    right: 17px;
    width: 18px;
    height: 18px;
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23111' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M22 2L2 22'/%3E%3Cpath fill='none' stroke='%23111' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M2 2l20 20'/%3E%3C/svg%3E");
    z-index: 100;
    border: none;
    font-size: 0;
    outline: none;
}
@media all and (min-width: 48em){
    .modal-quickshow .hystmodal__close{
        top: 0;
        right: -40px;
        display: block;
        width: 30px;
        height: 30px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23fff' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M22 2L2 22'/%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M2 2l20 20'/%3E%3C/svg%3E");
        cursor: pointer;
    }
}
.modal-quickshow .hystmodal__close:focus{
    outline: 2px dotted #d6d6d6;
    outline-offset: 2px;
}

.modal-quickshow .hystmodal__header {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border: none;
    height: 50px;
    width: 100%;
    border-radius: 0 20px 0 0;
    background-color: #fff;
    z-index: 10;
}
@media all and (min-width: 48em){
    .modal-quickshow .hystmodal__header {
        display: none;
    }
}

/* .modal-quickshow .hystmodal__header::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 0px;
    height: 0px;
    background-color: black;
} */

.modal-quickshow .modal-content {
    padding: 50px 10px 20px 10px;  
    overflow-y: scroll; 
    height: 100%;
}
@media all and (min-width: 48em){
    .modal-quickshow .modal-content {
         overflow-y: visible;
         height: 100%;
         padding: 30px 10px 20px 10px;  
    }
}

.modal-quickshow__img img {
  border-radius: 5px;
  width: 100%; 
  position: relative;
}

.modal-quickshow__title { 
  font-size: 1.25rem; 
  padding: 20px 0 10px 0; 
  line-height: 1.3;
}

.modal-quickshow__btn {
  padding: 15px; 
  margin: 25px 0 0 0;
  font-size: 1rem; 
  text-align: center; 
  /* text-shadow: 0 -1px 0 rgb(0 0 0 / 25%);  */
  background-color:#f7f7f7;
  color: #333; 
  border-radius: 5px;
  border: 1px solid #dfdfdf;
  cursor: pointer;
}
@media only screen and (min-width: 48em) {
  .modal-quickshow__btn {
    width: 100%;
  }
}
.modal-quickshow__btn:hover {
  /* background-color: #dddddd; */
  border: 1px solid rgb(128, 128, 128);
  transition: .3s all;
}

.modal-quickshow__transporter-price {
  padding: 5px 0 25px 0;
}

.modal-content__text-content {
  padding: 0 10px;
}

/* ------------------------------------------------------------------- */

.modal-appform .hystmodal__window,
.modal-special-offers .hystmodal__window{
    position: fixed;
    bottom: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
    flex-grow: 0;
    background: #fff;  
    overflow: visible;
    -webkit-transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
    transition: all 300ms cubic-bezier(0.26, 0, 0.07, 1);
}
@media all and (min-width: 48em){
    .modal-appform .hystmodal__window,
    .modal-special-offers .hystmodal__window {
        position: inherit;
        margin: 20px 0;
        height: auto;
        max-width: 800px;
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
        opacity: 0;
        border-radius: 10px;
        -webkit-transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
        transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
    }
}
.hystmodal--moved,
.hystmodal--active{
    pointer-events: auto;
    visibility: visible;
    -webkit-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
}

.hystmodal--active .hystmodal__window{
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

.modal-appform .modal-content,
.modal-special-offers .modal-content{
    padding: 73px 15px 20px 15px;
    font-size: 0.875rem;
    overflow-y: scroll; 
    height: 100%;
}
@media all and (min-width: 48em){
    .modal-appform .modal-content, 
    .modal-special-offers .modal-content {
        padding: 30px 20px 20px 20px;
        font-size: 0.875rem;
        overflow-y: visible; 
        height: 100%;
    }
}

.modal-appform .hystmodal__header,
.modal-special-offers .hystmodal__header {
    height: 50px;
    border-radius: 0px;
    border-bottom: 1px solid #efefef;
}
@media all and (min-width: 48em){
    .modal-appform .hystmodal__header,
    .modal-special-offers .hystmodal__header {
        display: none;
    }
}
