/*!
Theme Name: Austin's Wines (Kadence Child)
Theme URI: https://austinswines.com.au
Template: kadence
Author: ClickWP
Author URI: https://clickwp.com
Description: A child theme for the Kadence Theme.
Version: 1.0.2
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

body.austinswines {
	font-family: var(--global-body-font-family);
}

.single-content h1.elementor-heading-title, 
.single-content h2.elementor-heading-title, 
.single-content h3.elementor-heading-title, 
.single-content h4.elementor-heading-title, 
.single-content h5.elementor-heading-title, 
.single-content h6.elementor-heading-title {
	margin: 0;
}


/* == Commerce7
-------------------------------------------------------------- */

/** These styles are copied from the wp-commerce7 plugin, put overrides below */

#c7wp-cart-box {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	bottom: auto;
	padding: 1rem;
	z-index: 99999;
	display: flex;
	flex-direction: row;
	align-items: center;
}
#c7wp-cart-box.top-left {
	top: 0;
	right: auto;
	left: 0;
	bottom: auto;
}
#c7wp-cart-box.bottom-left {
	top: auto;
	right: auto;
	left: 0;
	bottom: 0;
	position: fixed;
}
#c7wp-cart-box.bottom-right {
	top: auto;
	right: 0;
	left: auto;
	bottom: 0;
	position: fixed;
}
#c7wp-cart-box.c7dark > div > a {
	color: #fff;
}
#c7wp-cart-box.c7light > div > a {
	color: #333;
}
:root {
	--c7-header-text-color: #fff !important;
}
#c7-login,
#c7-account {
    padding: 0 1rem 0 0;
}
.c7-checkout__content__title a {
	font-size: 0.95rem;
}
.c7-cart__count {
	display: none;
}
@media screen and (min-width: 46rem) {
		.c7-form__group div div.date-picker, .c7-form__group div div.rdtPicker, .c7-form__group div div.rdtDays {
		width: auto;
		margin: 0;
	}
}


/* Beaver, Elementor, and Cornerstone UI tweaks */
.fl-builder-edit .c7wp-wrap,
.ember-application .c7wp-wrap,
.elementor-editor-active .c7wp-wrap,
.vc_element .c7wp-wrap  {
	position: relative;
	background: #efefef;
	border: 1px dotted #333;
	min-height: 2em;
}
.fl-builder-edit .c7wp-wrap::after,
.ember-application .c7wp-wrap::after,
.elementor-editor-active .c7wp-wrap::after,
.vc_element .c7wp-wrap::after {
    content: 'Commerce7 Content: ' attr(data-c7-type);
    color: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
            transform: translate(-50%,-50%);
}


/** Commerce7 style overrides */

#c7wp-cart-box {
	left: -101vw !important;
}

button.c7-checkout-mobile__summary-toggle,
button.c7-checkout-mobile__items-toggle,
button.c7-link,
button.c7-link:hover,
button.c7-link:focus,
button.c7-link:active,
button.c7-btn--unstyled,
button.c7-btn--unstyled:hover,
button.c7-btn--unstyled:focus,
button.c7-btn--unstyled:active {
	background-color: unset;
	box-shadow: none;
	color: var(--global-palette4);
}

button.c7-link,
button.c7-link:hover,
button.c7-link:focus,
button.c7-link:active {
	border: 0;
	color: var(--global-palette5);
	text-decoration: underline;
}

.c7-date-picker__header > div {
	color: var(--c7-alt-text-color);
}

.c7-form--coupon-code-container .c7-form__group button.c7-btn {
	flex: 1;
	max-width: 40%;
}

.c7-button-center div[class*="button"] {
	text-align: center;
}


/* Move C7 cart box into header account */

.header-account-control-wrap,
.header-account-wrap,
.header-mobile-account-wrap {
	display: flex;
	justify-content: space-between;
	min-width: 90px;
}


#c7wp-cart-box .c7-user-nav__account {
	display: none;
}

#c7-cart .c7-btn {
	text-decoration: none;
}

#c7-side-cart__header__close,
#c7-side-cart__header__close:hover,
#c7-side-cart__header__close:focus,
#c7-side-cart__header__close:active {
	border: 0;
	background: inherit;
	background: #fff;
}

.c7-cart .c7-callout,
.c7-side-cart__content-container,
.c7-order-item__pricing {
	font-size: var(--c7-font-size-sub);
}

.c7-order-item__pricing {
	word-break: keep-all
}

/* Styles for custom product template */

.aw-product__photo img {
	margin: 0 auto var(--global-md-spacing);
}

.aw-custom-product-template .c7-product__add-to-cart,
.aw-custom-product-template .aw-product__detail,
.aw-custom-product-template .aw-product__tabs {
	margin-bottom: var(--global-lg-spacing);
}

.aw-product__tabs {
	border: 1px solid var(--global-palette7);
	display: flex;
	flex-wrap: wrap;
}

.aw-product__tabs .radiotab {
	position: absolute;
	opacity: 0;
}

.aw-product__tabs .label {
	width: 100%;
	padding: 22px 20px;
	background: var(--global-palette7);
	border-bottom: solid 1px var(--global-palette7);
	color: var(--global-palette6);
	cursor: pointer;
	font-weight: bold;
	transition: background .3s, color .3s;
	border: none;
	border-radius: 0;
	text-align: center;
}

.aw-product__tabs .label:hover,
.aw-product__tabs .label:active,
.aw-product__tabs .radiotab:checked + .label {
	background: var(--global-palette9);
	color: var(--global-palette-highlight);
}

.aw-product__tabs .label.active,
.aw-product__tabs .radiotab:checked + .label {
	background: var(--global-palette9);
	color: var(--global-palette-highlight);
}

/* .aw-product__tabs .label.active::after, */
.aw-product__tabs .radiotab:checked + .label::after {
	content: "";
	width: 100px;
    display: block;
    border-bottom: 1px solid;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
}

.aw-product__tabs .panel {
	display: none;
	padding: var(--global-sm-spacing) 20px;
	width: 100%;
}

/* .aw-product__tabs .panel.active, */
.radiotab:checked + .label + .panel {
	display: block;
}

.aw-product__meta .c7-product__specs,
.aw-product__meta .c7-product__spec {
	max-width: uset;
	width: 100%;
}

.aw-product__meta .c7-product__spec {
	display: flex;
}

.aw-product__meta .c7-product__spec > div:first-child {
	margin-right: 5px;
}

.aw-product__meta .c7-product__spec > div:first-child::after {
	content: ": ";
}

@media (min-width: 800px) {
	
	.aw-custom-product-template {
		display: flex;
		justify-content: space-between;
	}
	
	.aw-product__photo {
		margin-right: var(--global-sm-spacing);
		width: 400px;
	}
	
	.aw-product__details {
		width: calc( 100% - 400px - var(--global-xs-spacing));
	}
	
	.aw-product__tabs {
		border-width: 0 0 1px 0;
	}
	
	.aw-product__tabs .panel {
		order: 99;
		padding-left: 0;
		padding-right: 0;
	}

	.aw-product__tabs .label {
		background-color: unset;
		margin-top: 5px;
		padding: 20px 20px 0 0;
		width: auto;
	}
	
	.aw-product__tabs .label::after {
		content: "";
		display: block;
		width: 100%;
		margin: 5px 0 0 0 !important;
		transform: unset !important;
	}
	
	.aw-product__tabs .label:hover::after {
		border-bottom: 1px solid var(--global-palette7);
	}
/* 	.aw-product__tabs .label:active::after, */
	.aw-product__tabs .radiotab:checked + .label::after {
		border-bottom: 1px solid var(--global-palette-highlight);
		width: auto;
	}

}

/* C7 Profile Page */

.c7-account-details__delete-account,
.c7-account-club--subscription .c7-account-blocks--status button.c7-link,
.c7-account-club__details .c7-account-block:first-child .c7-account-block__actions,
button.c7-btn--skip { 
	display: none; 
}

@media screen and (min-width: 769px) {
	.c7-account-club__shipment__footer__total {
	max-width: 350px;
	margin-left: auto;
	}
}

.c7-account-club__shipment__footer::before {
	content: "To modify your club membership please email hello@austinswines.com.au";
	padding-top:10px;
}

.c7-account-club__details .c7-account-blocks--status .c7-account-block__details::after {
	content: "To modify your club membership please email hello@austinswines.com.au"
}