#prod-ad-modal-form {
    width: 950px;
    /*height: 535px;*/
    background: #FFF;
    /*border-radius: 25px;*/
    
	position: fixed; 
	top: 45%; 
    left: 50%; 
    
	margin-top: -267px;
    margin-left: -475px;
    
	display: none; 
	opacity: 0; 
	z-index: 15; 
}

/* Шапка формы */
/*#prod-ad-modal-form,
#prod-ad-modal-form .prod-ad-modal-form-header { padding: 15px; }*/

#prod-ad-modal-form .prod-ad-modal-form-header {
    position: relative;
    /*border-radius: 25px 25px 0 0;
    margin: -15px -15px 20px -15px;
    background: rgb(129, 69, 151);*/
}

#prod-ad-modal-form .prod-ad-modal-form-header .prod-ad-modal-form-caption {
    text-align: center;
    font-size: 2.3em;
    color: #FFF;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

/* Тело формы */
#prod-ad-modal-form .prod-ad-modal-form-body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: space-around;
    margin-left: -15px;
    margin-right: -15px;
}

#prod-ad-modal-form .prod-ad-modal-form-body .prod-ad-item {
    display: flex;
    flex-direction: column;
    width: 156px;
    /*height: 195px;*/
    color: #000;
    background: #FFF;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.25);
    padding: 5px;
    margin: 0 5px 25px 5px;
    border: 2px solid rgba(129, 69, 151, 0.4);
    border-radius: 15px;
    /*font-size: .75em;*/
    text-decoration: none;
    text-align: center;
    justify-content: space-between;
}

#prod-ad-modal-form .prod-ad-item-title {
    margin-bottom: 0.75em;
    font-weight: 700;
}

#prod-ad-modal-form .prod-ad-modal-form-body .prod-ad-item:hover {
    color: #FFF;
    background: #d0155a;
    border-color: #d0155a;

    transform: scale(1.1);

    animation: item-on-hover 0.7s forwards;
}

#prod-ad-modal-form .prod-ad-modal-form-body .prod-ad-item img {
    display: block;

    width: 150px;
    height: auto;

    border-radius: 5px;
    margin-bottom: 1em;
}

/* Кнопка закрытия */
.icross {
    width: 20px;
    height: 20px;
    position: relative;
    transform:rotate(45deg);
    -ms-transform:rotate(45deg); /* IE 9 */
    -webkit-transform:rotate(45deg); /* Safari and Chrome */
 }
 
.icross:before, .icross:after {
   content: "";
   position: absolute;
   z-index: -1;
   background: #FFF;
}
 
.icross:before {
   left: 50%;
   width: 20%;
   margin-left: -10%;
   height: 100%;
}
 
.icross:after {
   top: 50%;
   height: 20%;
   margin-top: -10%;
   width: 100%;
}
 

#prod-ad-modal-form #prod-ad-modal-form-close {
    position: absolute;
    /*right: 20px;*/
    right: -35px;
    /*top: 20px;*/
    top: -20px;

	cursor: pointer;
    display: block;

    background: #d0155a;
    padding: 10px;
    border-radius: 30px;
}

#prod-ad-modal-form #prod-ad-modal-form-close:hover { background: #f00059; }

/* Затемнение фона */
#prod-ad-modal-form-overlay {
	z-index: 12; 
	position:fixed; 
	background-color:#000; 
	opacity:0.8; 
	-moz-opacity:0.8; 
	filter:alpha(opacity=80);
	width:100%; 
	height:100%; 
	top:0; 
	left:0;
	cursor:pointer;
	display:none; 
}

@keyframes item-on-hover {
    0% {
        color: #000;
        background: #FFF;
        border-color: rgba(129, 69, 151, 0.4);
    }
    40% { color: #FFF; }
    70% { border-color: #d0155a; }
    100% {
        background: #d0155a;
        transform: scale(1.15);
    }
}