:root {
	--c7-primary-button-text-color: #c1bbae;
	--c7-primary-button-bg: transparent;
	--c7-primary-button-bg-hover: transparent;
	--c7-alt-button-text-color: #00215b;
	--c7-alt-button-bg: #c1bbae;
	--c7-alt-button-bg-hover: #c1bbae;
	--c7-font-size: var(--wp--preset--font-size--text-s);
}

body {
	font-size: var(--wp--preset--font-size--text-s);
}

#c7-content {
	--c7-font-size: var(--wp--preset--font-size--text-xs);
	font-size: var(--wp--preset--font-size--text-xs);
	
	.c7-cart__content, 
	.c7-account .c7-content {
		padding-inline: 2.5rem;
	}
	
	.c7-cart .c7-callout {
		margin-inline: 2.5rem;
	}
}


.c7wp-wrap[data-c7-type="cart"] {
	pointer-events: none;
	
	.c7-user-nav__cart > button.c7-link,
	.c7-user-nav__cart > .c7-side-cart {
		pointer-events: all;
	}
}

/* Add to cart */
/* Stable hook: .eltonzero-c7-add-to-cart. Visual design will be added later. */

.c7-btn {
	align-items: center;
	background: transparent none;
	background-color: var(--c7-primary-button-bg);
	border-color: currentColor;
	border-radius: 0px;
	border-style: solid;
	border-width: 1px;
	color: var(--c7-primary-button-text-color);
	display: flex;
	font-family: var(--wp--preset--font-family--mtt-milano);
	font-size: 14px;
	font-style: normal;
	font-weight: bold;
	justify-content: center;
	letter-spacing: 1.4px;
	line-height: 1.14;
	padding-top: 20px;
	padding-right: 24px;
	padding-bottom: 20px;
	padding-left: 24px;
	text-align: center;
	text-transform: uppercase;
	
	&:hover {
		background-color: var(--c7-primary-button-bg-hover);
		opacity: 0.5;
		transition: opacity 0.3s ease-out;
	}
	
	&.c7-btn--alt {
		background-color: var(--c7-alt-button-bg);
		color: var(--c7-alt-button-text-color);
		
		&:hover {
			background-color: var(--c7-alt-button-bg-hover); 
		}
	}
}

.c7-order-summary__buttons {
	--c7-primary-button-text-color: #00215b;
}

.c7-product__add-to-cart__price__variant {
	display: none;
}


/* hide loader/spinner in default add to cart button*/
.c7-btn--loading {
	.c7-spinner {
		display: none;
	}
	
	span:not(.c7-sr-only) {
		opacity: 1;
		visibility: visible;
	}
}

/* Price */
/* V2 price class confirmed in Commerce7 for WordPress's buyslug/frontend.css. */
.eltonzero-c7-add-to-cart--hide-price .c7-product__add-to-cart__price {
	display: none;
}

/* Quantity */
/* V2 renderer has distinct wrappers for numeric and select quantity fields. */
.eltonzero-c7-add-to-cart--hide-quantity .c7-product__add-to-cart__form__quantity,
.eltonzero-c7-add-to-cart--hide-quantity .c7-product__add-to-cart__form__quantity--select {
	display: none;
}

/* Cart launcher */
/* The launcher is a direct child; the drawer is a separate sibling component. */
.eltonzero-c7-cart .c7-user-nav__cart > button.c7-link {
	padding: 8px 16px 0 0;
	position: relative;
	
	.c7-user-nav__cart__count {
		height: 18px;
		left: 80%;
		min-width: 18px;
		position: absolute;
		top: 8px;
		translate: -8px -33%;
	}
}

/* Cart drawer */
/* Reserved for reviewed Commerce7 side-cart styles. */

/* Cart */
/* Reserved for reviewed Commerce7 cart styles. */

#c7-side-cart {
	--c7-font-size: var(--wp--preset--font-size--text-xs);
	font-size: var(--wp--preset--font-size--text-xs);
	
	.c7-order-summary__item--total .c7-order-summary__value {
		font-size: inherit;
	}
}

.c7-order-item__title {
	cursor: text;
	margin-top: 0;

	a {
		border: none;
		color: var(--text);
		display: inline-block;
		font-size: inherit;
		font-weight: inherit;
		pointer-events: none;
		text-decoration: none;
		text-transform: none;
	}
}

.c7-carrot--product-upsell {
	display: none !important;
}

/* Checkout */
/* Reserved for reviewed Commerce7 checkout styles. */

/* Customer account / profile */
/* Reserved for reviewed Commerce7 account styles. */

.c7-account__header .c7-link {
	align-items: center;
	display: inline-flex;
}





/* hide reservation link by default*/
li:has([href="/profile/reservation"]),
.c7-account-dashboard__left-column .c7-account-dashboard__block:has(a[href="/reservation/"]) {
	display: none;
}

@container style(not (--show-reservation-link: initial)) {
	li:has([href="/profile/reservation"]) {
		display: list-item;
	}
	
	.c7-account-dashboard__left-column .c7-account-dashboard__block:has(a[href="/reservation/"]) {
		display: block;
	}
}


/* hide membership link by default*/
li:has([href="/profile/club-membership"]),
.c7-account-dashboard__left-column .c7-account-dashboard__block:has(a[href="/membership/"]) {
	display: none;
}

@container style(not (--show-membership-link: initial)) {	
	li:has([href="/profile/club-membership"]) {
		display: inline-block;
	}

	.c7-account-dashboard__left-column .c7-account-dashboard__block:has(a[href="/membership/"]) {
		display: block;
	}
}








/* hide shipping instructions by default */
#c7-delivery-shipping-group .c7-form__field:has(> button.c7-expand-link[aria-controls="c7-shippingInstructions-group"]) {
	display: none !important;
}

@container style(not (--show-shipping-instructions: initial)) {	
	#c7-delivery-shipping-group .c7-form__field:has(> button.c7-expand-link[aria-controls="c7-shippingInstructions-group"]) {
		display: block !important;
	}
}



/* checkout: hide email signup and prop65 warning */
.c7-form__field:has(#c7-emailPreferences-subscribe-help),
.c7-checkout__footer .c7-prop65 {
	display: none;
}

