/***Product Addons Modal Styling***/
/* The Overlay (background) */
.pa-overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */    
    height: 0;
    width: 100%;
    position: fixed; /* Stay in place */
    z-index: 999999; /* Sit on top */
    left: 0;
    top: 0;
    background-color: #fff;
    overflow: hidden; /* Disable horizontal scroll */
    transition: 0.3s;
}

/* Position the content inside the overlay */
.pa-overlay-content {
    position: relative;
    left: 0;
	height: 100%;
    max-width: 360px;
    text-align: left;
	padding: 8px;
	margin: auto;
}

/* The links inside the overlay */
.pa-overlay a {
    padding: 8px;
    text-decoration: none;
	font-size: 1em;
    color: #818181;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.pa-overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

/* Position the close button (top right corner) */
.pa-overlay .closebtn {
    display: inline-block;
    float: right;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .pa-overlay a {font-size: 20px}
    .pa-overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}
.single-product div.product .summary {
	width: initial;
	float: initial;
}
/*hide the product addons initially*/
.pa-overlay .woocommerce {
    display: none;
}
/*hide quantity box, rewards points and apple pay*/
.pa-overlay-content .quantity {
    display: none;
}
.pa-overlay-content .qty {
    display: none;
}
.pa-overlay-content span.wc-points-rewards-product-message {
    display: none;
}
.pa-overlay-content .apple-pay-button-wrapper {
    display: none;
}
.pa-overlay-content p.points {
    display: none;
}
/*position product correctly*/
.pa-overlay div.product {
    float: left;
    display: inline-block;
    margin-left: 15px;
    position: initial !important;
}
.pa-overlay #product-addons-total{
    display: none !important;
}
/*position totals*/
div#product-addons-total {
    display: inline-block;
}
.pa-overlay-content .woocommerce div.product form.cart .button {
    position: absolute;
	right: 2%;
}
.pa-overlay-content dd, dt {
    display: inline-block;
}
/*add seperators between the popup elements*/
.pa-overlay-content h3.addon-name {
    border-bottom: solid 1px #c3c3c3;
}
.pa-overlay-content form .form-row {
    border-bottom: solid 1px #c3c3c3;
}
/*stop title blocking close button*/
.pa-overlay-content h1 {
    width: 75%;
	display: inline-block;
	word-wrap: break-word;
}
/*float add to cart button to the right*/
.pa-overlay-content button.single_add_to_cart_button.button.alt {
	display: inline-block;
    float: right;
	margin-top: 0px !important;
	margin-right: 0;
}

/*Footer*/
.popup-footer {
    position: absolute;
    bottom: 25px;
	width: 100%;
	max-width: 360px;
	padding-top: 10px;
	background: #ffffff;
    border-top: solid 1px #c3c3c3;
	font-size: 0.9em !important;
    display: block !important;
}
.pa-overlay p.price.product-page-price.total:before{
    content: '' !important;
}
.pa-overlay button.single_add_to_cart_button.button.alt.wp-element-button{
    float: right;
}
/*fix width of add to cart button when loading*/
button.single_add_to_cart_button.button.loading.alt {
    padding-right: 2.618em !important;
}
/*Scroll when options list is too long*/
.pa-overlay-content form.cart {
    overflow-y: auto;
}
/*Desktop styling - centered with a max-height*/
@media(min-width:768px) {
	.pa-overlay-content {
		position: absolute;
		height: 100%;
		width: 50%;
		max-width: 400px;
		max-height: 750px;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		padding: initial;
	}
}
/*For really small screens*/
@media(max-width:767px){
	.pa-overlay-content button.single_add_to_cart_button.button.alt {
		padding: 10px;
	}
	.popup-footer {
		width:96%;
	}
}
/*generic hiding class*/
.hidden-pop {
	display: none !important;
}

/*price display*/
.addon-price {
    margin-bottom: 0 !important;
    padding-bottom: 0;
    display: inline-block !important;
}
p.price.total {
    display: inline-block !important;
    margin-bottom: 0 !important;
    width: auto !important;
    padding: 0 !important;
}