/* Set Magnific Popup overlay background to dark with 0.7 opacity */
.mfp-bg {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Popup content: white background with padding */
.mfp-content {
	width: 60%!important;
}
.ebp-popup-container {
	font-family: 'open sans', Helvetica, Arial, sans-serif;
    text-align: center;
    color: #000;
    background: rgb(238,238,238);
	background: linear-gradient(0deg, rgba(238,238,238,1) 0%, rgba(238,238,238,1) 9%, rgba(255,255,255,1) 9%, rgba(255,255,255,1) 100%);
    padding: 20px 20px 0px 20px;
    border-radius: 10px;
    margin: 0 auto;
}
.popup-infotext {
	width: 100%;
	height: auto;
    min-height: 150px;
    border-radius: 10px;
    background-color: #e0e0e0;
    font-size: 14px;
    padding: 15px 5px; 
    
    
    
}
.popup-infotext ol {
	text-align: center;
	margin: auto;
    width: 70%;
    line-height: 1.6;
    margin-top: 10px;
}
.popup-infotext h5 {
    line-height: 1.4;
    font-weight: 400;
}

.mfp-inline-holder .mfp-content {   
    cursor: auto;
}
/* Header, main, and footer sections spacing */
.ebp-popup-header {
    margin: 30px 20px;
}
.ebp-popup-footer {
    margin: 0px;
}
.ebp-popup-header h2 {
    font-size: 27px;
    line-height: 1.1em;
    margin-bottom: 20px;
    font-weight: normal;
    text-transform: uppercase;
    font-family: 'open sans', Helvetica, Arial, sans-serif;
}
.ebp-popup-header h6 {
	margin-top: 15px;
}
.ebp-popup-header .avia_textblock, .ebp-popup-header .avia_textblock h6 {
	font-size: 14px;
	line-height: 1.5em;
    font-weight: lighter;
    font-family: 'open sans', Helvetica, Arial, sans-serif;
}
.ebp-popup-header .avia_textblock ul {
    list-style: disc;
    margin-top: 15px;
    display: inline-block;
}

mfp-close:active {
    top: 4px!important;
}
.mfp-close-btn-in .mfp-close {
    color: #fff!important;
    background: #2f2f2f;
    border-radius: 25px;
    width: 25px;
    height: 25px;
    line-height: 25px;
    right: 5px;
    top: 5px;
    font-size: 23px;
    font-weight: lighter;
}

/* Responsive buttons container using CSS Grid */
.ebp-buttons-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
    margin: 50px 0 80px 0;
}
.btn-full {
    display: inline;
}
.btn-abbr {
    display: none;
}

@media (max-width: 600px) {
    .btn-full {
        display: none;
    }
    .btn-abbr {
        display: inline;
    }
    .ebp-popup-container {
	    padding: 10px 10px 0px 10px;
	}
	.mfp-close-btn-in .mfp-close {
	    right: 10px;
	    top: 20px;
	}
    .mfp-close:active {
        top: 19px!important;
    }
	
}
.only_mobile a {
    color: #ffffff !important;
    font-size: 17px !important;
    font-family: 'open sans', 'HelveticaNeue', 'Helvetica Neue', 'Helvetica-Neue', Helvetica, Arial, sans-serif;
    font-weight: lighter !important;
    text-transform: uppercase;
    margin: 15px 25px !important;
    padding: 15px 20px !important;
    background-color: #0052aa;
}
@media only screen and (min-width: 769px) {
	.only_mobile { 
		display: none !important; 
	}
}
@media print, screen and (max-width: 820px) {
	.ebp-popup-footer p img {
        width: 80%!important;
    }
		
}
@media print, screen and (max-width: 912px) {
	.ebp-popup-footer p img {
        width: 80%!important;
    }
		
}
@media print, screen and (max-width: 1024px) {
		.btn-full {
	        display: none;
	    }
	    .btn-abbr {
	        display: inline;
	    }
	    .ebp-popup-header .avia_textblock ul {
		    margin: 10px 40px;
		}
	}
@media print, screen and (max-width: 1023px) {
	    .ebp-buttons-container {
	        grid-template-columns: repeat(2, minmax(0, 1fr));
	        gap: 2px;
	        margin: 20px 0 50px 0;
	    }
	    .mfp-content {
			width: 70%!important;
		}
		.ebp-button {
		    padding: 8px 8px;
	
		}
		.ebp-popup-container {
		    background: rgb(238,238,238);
			background: linear-gradient(0deg, rgba(238,238,238,1) 0%, rgba(238,238,238,1) 10%, rgba(255,255,255,1) 10%, rgba(255,255,255,1) 100%);
		}
		.btn-full {
	        display: none;
	    }
	    .btn-abbr {
	        display: inline;
	    }
	}

@media print, screen and (max-width: 39.9988em) {
	.ebp-popup-header {
	    margin: 20px 0 0 0;
	}
	.mfp-content{
	    padding: 15px 5px;
	    width: 100% !important;
	}
	.ebp-popup-header h2 {
	    font-size: 22px;
	}
	.ebp-popup-header h6 {
	    font-size: 16px;
	    line-height: 1.4em;
	}
	.ebp-popup-header p {
	    font-size: 11px;
        color: #393939;
        line-height: 1.4em;
	}
	.ebp-popup-header .avia_textblock ul li {
        font-size: 11px;
    }
    .popup-infotext ol {
	    width: 83%;
	}
	.popup-infotext h5 {
    	padding: 5px 15px;
    	font-size: 14px;
    	}
}
/* Each button wrapper */
.ebp-button-item {
    display: flex;
    text-align: center;
    background-color: #40a8e4;
    border-radius: 5px;
    text-transform: capitalize;
}

/* Button styling */
.ebp-button {
    text-align: center;
    box-sizing: inherit;
    font-weight: normal;
    font-size: 14px;
    width: 100%;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.ebp-button-item:first-child {
    background-color: #0052aa;
    text-transform: none;
}
.ebp-button:hover {
    background-color: #0052aa;
}
/* ====== Smooth Popup Zoom Effect ====== */
.mfp-zoom-in {
  /* Background overlay fade-in & fade-out */
  &.mfp-bg {
    opacity: 0.8 !important;
    transition: opacity 0.15s ease-in-out !important;
  }

  .mfp-close:active {
    top: 4px;
  }

  /* Popup content transition */
  .mfp-with-anim {
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.15s ease-out; /* Faster transition */
  }

  /* When popup is fully opened */
  &.mfp-ready .mfp-with-anim {
    opacity: 1;
  }

  /* When popup is closing */
  &.mfp-removing .mfp-with-anim {
    opacity: 0;
  }
}
