/*
    WooCommerce styling voor De Einder
*/

/* Gelijk aan de boxed Elementor-containers: 1200px inhoud met 100px padding */
body.woocommerce-page main.site-main {
	box-sizing: border-box;
	width: 100%;
	max-width: 1400px;
	margin: 50px auto;
	padding-inline: 100px;
}

@media (max-width: 1024px) {
	body.woocommerce-page main.site-main {
		margin-block: 30px;
		padding-inline: 50px;
	}
}

@media (max-width: 767px) {
	body.woocommerce-page main.site-main {
		padding-inline: 20px;
	}
}

body.woocommerce-shop h1.page-title,
body.woocommerce-shop h1.entry-title,
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title,
body.woocommerce-account h1.entry-title {
	color: var(--e-global-color-a606f8e);
}

body.woocommerce-cart .page-header .entry-title,
body.woocommerce-checkout .page-header .entry-title,
body.woocommerce-account .page-header .entry-title {
	max-width: none;
	width: auto;
	margin-inline: 0;
	padding-inline: 0;
}

/* Hello trekt .alignwide 80px naar buiten. Daardoor valt de padding van de winkelwagen weg. */
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide,
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide {
	margin-inline: 0;
	max-width: none;
}

/* WooCommerce zet de prijs op 0.857em. 1.15em ligt rond de 22px van de site. */
body.woocommerce-page ul.products li.product .price {
	font-size: 1.15em;
}

body.woocommerce-page ul.products li.product a img {
	width: 70%;
	height: auto;
}

/* Korte titels houden twee regels aan, zodat prijs en knop in een rij gelijk staan.
   De hoogte telt de padding mee, want het thema zet box-sizing op border-box. */
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
	line-height: 1.3;
	min-height: calc(2 * 1.3em + 1em);
}

@media (max-width: 600px) {
	body.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
		min-height: calc(3 * 1.3em + 1em);
	}
}

/* De sitebrede regel body li a zet een stippellijn onder elke link in een lijst.
   Productkaarten zijn ook lijstitems, dus die lijn valt onder de productlink en de knop. */
body.woocommerce-page ul.products li.product > a.woocommerce-loop-product__link {
	border-bottom: none !important;
	padding-bottom: 0 !important;
}

body.woocommerce-page ul.products li.product a.button,
body.woocommerce-page .single_add_to_cart_button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-account button.woocommerce-form-login__submit,
body.woocommerce-account button[name="save_account_details"],
body.woocommerce-account button[name="save_address"] {
	border-bottom: none !important;
	border-radius: 6px;
	padding: 10px 20px !important;
	background-color: var(--e-global-color-1476fb1) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: box-shadow 600ms;
}

body.woocommerce-account button[name="save_account_details"] {
	margin-top: 16px;
}

body.woocommerce-page ul.products li.product a.button:hover,
body.woocommerce-page ul.products li.product a.button:focus,
body.woocommerce-page .single_add_to_cart_button:hover,
body.woocommerce-page .single_add_to_cart_button:focus,
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:focus,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus,
body.woocommerce-account button.woocommerce-form-login__submit:hover,
body.woocommerce-account button.woocommerce-form-login__submit:focus,
body.woocommerce-account button[name="save_account_details"]:hover,
body.woocommerce-account button[name="save_account_details"]:focus,
body.woocommerce-account button[name="save_address"]:hover,
body.woocommerce-account button[name="save_address"]:focus {
	color: #fff !important;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
	body.woocommerce-page ul.products li.product a.button,
	body.woocommerce-page .single_add_to_cart_button,
	body.woocommerce-cart .wc-block-cart__submit-button,
	body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
	body.woocommerce-account button.woocommerce-form-login__submit,
	body.woocommerce-account button[name="save_account_details"],
	body.woocommerce-account button[name="save_address"] {
		font-size: 12px;
	}
}

/* 15% van de inhoud is de 30% die op de foto zelf stond, binnen de standaardkolom van 48%. */
@media (min-width: 769px) {
	body.single-product div.product div.images {
		width: 15%;
	}

	body.single-product div.product div.summary {
		width: calc(85% - 40px);
	}
}

body.single-product .woocommerce-product-gallery__trigger {
	display: none;
}

/* WooCommerce houdt het aantalveld op 3.631em. Met de padding van Hello valt het getal op Windows tegen de pijltjes. */
body.single-product .quantity .qty {
	width: 5em;
}

/* Het thema zet een doorgetrokken streep onder links. De stippellijn komt uit de sitebrede CSS. */
body.woocommerce-account .woocommerce-LostPassword a,
body.woocommerce-account .woocommerce-MyAccount-navigation a,
body.woocommerce-account .woocommerce-MyAccount-content a {
	text-decoration: none;
}

body.woocommerce-account .dw-account-actions,
body.woocommerce-account .dw-video-list {
	list-style: none;
	margin: 1.2em 0 0;
	padding: 0;
}

body.woocommerce-account .dw-video-list li {
	margin: 0 0 0.85em;
}

body.woocommerce-account .dw-video-list a {
	border-bottom: 2px dotted;
	padding-bottom: 1px;
}

body.woocommerce-account .dw-account-actions li {
	margin: 0 0 0.6em;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 1.4em;
}

/* Alleen mobiel: het korte accountmenu wijkt voor de actielijst op het dashboard,
   en voor één link terug op de vervolgpagina's. Uitloggen staat onderaan die lijst. */
body.woocommerce-account .dw-account-back,
body.woocommerce-account .dw-account-logout {
	display: none;
}

@media (max-width: 768px) {
	body.woocommerce-account .woocommerce-MyAccount-navigation {
		display: none;
	}

	body.woocommerce-account .dw-account-back {
		display: block;
		margin: 0 0 1.2em;
	}

	body.woocommerce-account .dw-account-logout {
		display: list-item;
		margin-top: 1.4em;
	}
}

/* De titel is een h2, de plugin laat alleen een h3 links zweven. De bewerken-link zweeft daardoor naar rechts. */
body.woocommerce-account .addresses .title h2,
body.woocommerce-account .addresses .title .edit {
	float: none;
}

body.woocommerce-account .addresses .title {
	text-align: left;
}

body.woocommerce-account .addresses .title h2 {
	margin-bottom: 0.15em;
}

body.woocommerce-account .addresses .title .edit {
	display: inline-block;
	border-bottom: 2px dotted;
	padding-bottom: 1px;
	text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

body.woocommerce-account main.site-main {
	min-height: 55vh;
}
