/* ==========================================================
   WINKELMAND — Siera Rose
   1. Pagina (Divi-titel en zijbalk weg)
   2. Indeling: producten links, overzicht rechts
   3. Kop en gratis-verzendingbalk
   4. Producten
   5. Aantal en verwijderen
   6. Overzicht
   7. Kortingscode en cadeauverpakking
   8. Totaal en afrekenen
   9. Lege winkelmand
   10. Mobiel
   ========================================================== */


/* ==========================================================
   1. PAGINA
   ========================================================== */

body.siera-mand-pagina #main-content,
body.siera-mand-pagina #et-main-area {
	background: rgb(243, 242, 242);
}

/* Standaard Divi-paginatitel en zijbalk weg (de winkelmand heeft een eigen kop) */
body.siera-mand-pagina h1.entry-title.main_title,
body.siera-mand-pagina #sidebar {
	display: none !important;
}

body.siera-mand-pagina #main-content .container::before {
	display: none !important;
}

body.siera-mand-pagina #left-area {
	width: 100% !important;
	padding: 0 !important;
	float: none !important;
}

body.siera-mand-pagina #main-content .container {
	padding-top: 48px;
	padding-bottom: 80px;
}

body.siera-mand-pagina article.page {
	margin-bottom: 0 !important;
}

/* Divi/WooCommerce-meldingen boven de winkelmand */
body.siera-mand-pagina .woocommerce-notices-wrapper:empty {
	display: none;
}

/* Knop "Winkelmand bijwerken" niet nodig: bijwerken gaat vanzelf */
.siera-mand .siera-mand__bijwerken {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0 !important;
}


/* ==========================================================
   2. INDELING
   ========================================================== */

.siera-mand,
.siera-mand *,
.siera-mand-leeg,
.siera-mand-leeg * {
	box-sizing: border-box;
}

form.siera-mand {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: start;
	gap: 48px;
	margin: 0;
	font-family: 'Archivo', sans-serif;
	color: rgb(32, 30, 29);
}

.siera-mand__rechts {
	position: sticky;
	top: 120px;
}

/* WooCommerce zet het overzicht standaard half rechts */
.siera-mand .cart-collaterals,
.siera-mand .cart_totals {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}


/* ==========================================================
   3. KOP EN GRATIS VERZENDING
   ========================================================== */

.siera-mand h1.siera-mand__titel {
	margin: 0 0 22px;
	padding: 0;
	font-family: "Libre Baskerville", serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	color: rgb(32, 30, 29);
}

.siera-mand__aantal-titel {
	font-family: 'Archivo', sans-serif;
	font-size: 15px;
	font-weight: 400;
	vertical-align: middle;
	color: rgb(120, 115, 112);
}

.siera-mand__verzending {
	margin-bottom: 20px;
	padding: 14px 16px 16px;
	background: rgb(233, 230, 228);
}

.siera-mand p.siera-mand__verzending-tekst {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
	color: rgb(32, 30, 29);
}

.siera-mand__verzending-tekst svg {
	flex-shrink: 0;
}

.siera-mand__verzending-tekst strong {
	font-weight: 600;
}

.siera-mand__balk {
	height: 3px;
	overflow: hidden;
	background: rgba(32, 30, 29, .12);
}

.siera-mand__balk span {
	display: block;
	height: 100%;
	background: rgb(236, 48, 19);
	transition: width .5s ease;
}


/* ==========================================================
   4. PRODUCTEN
   ========================================================== */

.siera-mand ul.siera-mand__lijst {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border-top: 1px solid rgb(218, 215, 214);
}

.siera-mand li.siera-mand__item {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 20px;
	margin: 0;
	padding: 20px 0;
	list-style: none;
	border-bottom: 1px solid rgb(218, 215, 214);
}

.siera-mand li.siera-mand__item::before {
	display: none;
}

.siera-mand__beeld {
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: rgb(236, 233, 231);
}

.siera-mand__beeld a {
	display: block;
	height: 100%;
}

.siera-mand__beeld img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform .5s ease;
}

.siera-mand__beeld a:hover img {
	transform: scale(1.04);
}

.siera-mand__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.siera-mand__kop {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.siera-mand__tekst {
	min-width: 0;
}

.siera-mand h2.siera-mand__naam {
	margin: 0;
	padding: 0;
	font-family: "Libre Baskerville", serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: rgb(32, 30, 29);
}

.siera-mand__naam a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color .3s ease;
}

.siera-mand__naam a:hover {
	color: rgb(236, 48, 19) !important;
}

.siera-mand__prijs {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.siera-mand__prijs del {
	font-size: 12px;
	font-weight: 400;
	color: rgb(168, 163, 161);
}

.siera-mand__prijs del + span {
	color: rgb(236, 48, 19);
}

.siera-mand p.siera-mand__kenmerken,
.siera-mand p.siera-mand__stukprijs {
	margin: 4px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
	color: rgb(120, 115, 112);
}

.siera-mand p.siera-mand__stukprijs {
	font-size: 12px;
	color: rgb(168, 163, 161);
}

.siera-mand .backorder_notification {
	margin: 6px 0 0;
	font-size: 12px;
	color: rgb(236, 48, 19);
}

/* Terug naar de winkel */
.siera-mand a.siera-mand__verder {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 20px;
	font-size: 13px;
	color: rgb(32, 30, 29) !important;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: color .3s ease;
}

.siera-mand a.siera-mand__verder:hover {
	color: rgb(236, 48, 19) !important;
}


/* ==========================================================
   5. AANTAL EN VERWIJDEREN
   ========================================================== */

.siera-mand__acties {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: auto;
	padding-top: 16px;
}

.siera-mand__aantal {
	display: inline-flex;
	align-items: stretch;
	height: 36px;
	border: 1px solid rgb(218, 215, 214);
	background: #fff;
}

.siera-mand__aantal.is-vast .siera-mand__stap {
	display: none;
}

.siera-mand .siera-mand__stap {
	flex-shrink: 0;
	width: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: 'Archivo', sans-serif;
	font-size: 16px;
	line-height: 1;
	color: rgb(32, 30, 29);
	cursor: pointer;
	transition: color .3s ease;
}

.siera-mand .siera-mand__stap:hover {
	color: rgb(236, 48, 19);
}

/* Divi geeft het aantal-blok een vaste breedte van 100px; hier alleen zo breed als het cijfer */
.siera-mand .siera-mand__aantal .quantity,
.woocommerce .siera-mand .siera-mand__aantal .quantity,
.woocommerce-page .siera-mand .siera-mand__aantal .quantity {
	display: flex !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.siera-mand .siera-mand__aantal .quantity label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
}

.siera-mand .siera-mand__aantal .quantity input.qty,
.woocommerce .siera-mand .siera-mand__aantal .quantity input.qty,
.woocommerce-page .siera-mand .siera-mand__aantal .quantity input.qty {
	width: 36px !important;
	min-width: 0 !important;
	max-width: 36px !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: 'Archivo', sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-align: center !important;
	color: rgb(32, 30, 29) !important;
	-moz-appearance: textfield;
}

.siera-mand .siera-mand__aantal input.qty::-webkit-outer-spin-button,
.siera-mand .siera-mand__aantal input.qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Verwijderen: tekstlink met prullenbakje (WooCommerce maakt er standaard een rood rondje van) */
.siera-mand .product-remove {
	display: inline-flex;
}

.woocommerce .siera-mand a.remove.siera-mand__verwijder,
.siera-mand a.remove.siera-mand__verwijder {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	font-family: 'Archivo', sans-serif;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	text-align: left;
	color: rgb(32, 30, 29) !important;
	text-decoration: none;
	transition: color .3s ease;
}

.siera-mand a.remove.siera-mand__verwijder span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce .siera-mand a.remove.siera-mand__verwijder:hover,
.siera-mand a.remove.siera-mand__verwijder:hover {
	background: none !important;
	color: rgb(236, 48, 19) !important;
}


/* ==========================================================
   6. OVERZICHT
   ========================================================== */

.siera-overzicht {
	padding: 24px;
	border: 1px solid rgb(168, 163, 161);
	background: rgb(243, 242, 242);
}

.siera-mand h2.siera-overzicht__titel {
	margin: 0 0 18px;
	padding: 0;
	font-family: "Libre Baskerville", serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: rgb(32, 30, 29);
}

.siera-mand dl.siera-overzicht__regels {
	margin: 0;
	padding: 0;
}

.siera-overzicht__regel {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.4;
}

.siera-mand .siera-overzicht__regel dt,
.siera-mand .siera-overzicht__regel dd {
	margin: 0;
	padding: 0;
	font-weight: 400;
}

.siera-mand .siera-overzicht__regel dd {
	text-align: right;
}

.siera-overzicht__regel--korting dd {
	color: rgb(236, 48, 19);
}

.siera-overzicht__code {
	margin-left: 4px;
	padding: 2px 6px;
	background: rgb(233, 230, 228);
	font-size: 11px;
	letter-spacing: .05em;
}

.siera-mand .siera-overzicht a.woocommerce-remove-coupon {
	margin-left: 6px;
	font-size: 11px;
	color: rgb(120, 115, 112) !important;
	text-decoration: underline;
}

.siera-overzicht__blok {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgb(218, 215, 214);
}


/* ==========================================================
   7. CADEAUVERPAKKING EN KORTINGSCODE
   ========================================================== */

.siera-overzicht__cadeau {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.siera-overzicht__cadeau input {
	position: absolute;
	width: 18px;
	height: 18px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.siera-overzicht__vinkje {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 1px solid rgb(32, 30, 29);
	background: #fff;
	transition: background .2s ease;
}

.siera-overzicht__cadeau input:checked + .siera-overzicht__vinkje {
	background: rgb(32, 30, 29);
}

.siera-overzicht__cadeau input:checked + .siera-overzicht__vinkje::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.siera-overzicht__cadeau input:focus-visible + .siera-overzicht__vinkje {
	outline: 2px solid rgb(236, 48, 19);
	outline-offset: 2px;
}

.siera-overzicht__cadeau-tekst {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.siera-overzicht__cadeau-naam {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.siera-overzicht__cadeau-uitleg {
	font-size: 12px;
	line-height: 1.4;
	color: rgb(120, 115, 112);
}

/* Kortingscode */
.siera-mand label.siera-overzicht__label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 400;
	color: rgb(32, 30, 29);
}

.siera-overzicht__coupon-veld {
	display: flex;
	border: 1px solid rgb(168, 163, 161);
	background: #fff;
}

.siera-mand .siera-overzicht__coupon-veld input#coupon_code,
.woocommerce .siera-mand .siera-overzicht__coupon-veld input#coupon_code {
	flex: 1;
	width: auto !important;
	min-width: 0;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: 'Archivo', sans-serif !important;
	font-size: 16px !important; /* geen inzoomen op de iPhone */
	line-height: 1 !important;
	color: rgb(32, 30, 29) !important;
}

@media (min-width: 981px) {
	.siera-mand .siera-overzicht__coupon-veld input#coupon_code,
	.woocommerce .siera-mand .siera-overzicht__coupon-veld input#coupon_code {
		font-size: 13px !important;
	}
}

.siera-mand .siera-overzicht__coupon-veld input#coupon_code::placeholder {
	color: rgb(168, 163, 161);
}

.siera-mand button.siera-overzicht__toepassen,
.woocommerce .siera-mand button.siera-overzicht__toepassen {
	flex-shrink: 0;
	height: 40px;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 0 !important;
	border-left: 1px solid rgb(168, 163, 161) !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-family: 'Archivo', sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: rgb(32, 30, 29) !important;
	cursor: pointer;
	transition: background .3s ease, color .3s ease;
}

.siera-mand button.siera-overzicht__toepassen::after {
	display: none !important;
}

.siera-mand button.siera-overzicht__toepassen:hover {
	background: rgb(32, 30, 29) !important;
	color: #fff !important;
}


/* ==========================================================
   8. TOTAAL EN AFREKENEN
   ========================================================== */

.siera-overzicht__totaal {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgb(218, 215, 214);
}

.siera-overzicht__totaal-regel {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-size: 15px;
	font-weight: 600;
}

.siera-overzicht__totaal-regel strong {
	font-size: 18px;
	font-weight: 700;
}

.siera-mand p.siera-overzicht__btw {
	margin: 2px 0 0;
	padding: 0;
	font-size: 11px;
	color: rgb(120, 115, 112);
}

.siera-overzicht__afrekenen {
	margin-top: 18px;
	padding: 0 !important;
}

.siera-mand a.siera-overzicht__knop,
.woocommerce-cart .siera-mand .wc-proceed-to-checkout a.siera-overzicht__knop {
	display: flex !important;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: rgb(32, 30, 29) !important;
	font-family: 'Archivo', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-align: left;
	text-decoration: none !important;
	text-transform: none !important;
	color: rgb(243, 242, 242) !important;
	transition: background .4s ease;
}

.siera-mand a.siera-overzicht__knop::after {
	display: none !important;
}

.siera-mand a.siera-overzicht__knop:hover {
	background: rgb(236, 48, 19) !important;
	color: #fff !important;
}

.siera-overzicht__pijl {
	margin-left: auto;
	transition: transform .3s ease;
}

.siera-mand a.siera-overzicht__knop:hover .siera-overzicht__pijl {
	transform: translateX(4px);
}

.siera-mand p.siera-overzicht__betalen {
	margin: 12px 0 0;
	padding: 0;
	font-size: 11px;
	line-height: 1.4;
	text-align: center;
	color: rgb(120, 115, 112);
}


/* ==========================================================
   9. LEGE WINKELMAND
   ========================================================== */

.siera-mand-leeg {
	max-width: 480px;
	margin: 24px auto 0;
	padding: 48px 24px;
	text-align: center;
	font-family: 'Archivo', sans-serif;
	color: rgb(32, 30, 29);
}

.siera-mand-leeg__icoon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgb(233, 230, 228);
}

.siera-mand-leeg h1.siera-mand-leeg__titel {
	margin: 0 0 10px;
	padding: 0;
	font-family: "Libre Baskerville", serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.siera-mand-leeg__titel span {
	color: rgb(236, 48, 19);
}

.siera-mand-leeg p.siera-mand-leeg__tekst {
	margin: 0 0 24px;
	padding: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgb(120, 115, 112);
}

.siera-mand-leeg a.siera-mand-leeg__knop {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 50px;
	padding: 0 22px;
	background: rgb(32, 30, 29);
	font-size: 14px;
	font-weight: 600;
	color: rgb(243, 242, 242) !important;
	text-decoration: none !important;
	transition: background .4s ease;
}

.siera-mand-leeg a.siera-mand-leeg__knop:hover {
	background: rgb(236, 48, 19);
	color: #fff !important;
}


/* ==========================================================
   9b. SMALLE PAGINAKOLOM
   Staat de winkelmand in een smalle Divi-kolom (bijvoorbeeld met zijbalk),
   dan komt het overzicht onder de producten in plaats van ernaast.
   ========================================================== */

.woocommerce:has(> form.siera-mand) {
	container-type: inline-size;
}

@container (max-width: 820px) {
	form.siera-mand {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.siera-mand__rechts {
		position: static;
	}
}


/* ==========================================================
   10. MOBIEL
   ========================================================== */

@media (max-width: 980px) {

	body.siera-mand-pagina #main-content .container {
		width: 90% !important;
		padding-top: 24px;
		padding-bottom: 40px;
	}

	form.siera-mand {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.siera-mand__rechts {
		position: static;
	}

	.siera-mand h1.siera-mand__titel {
		font-size: 26px;
		margin-bottom: 16px;
	}

	.siera-mand li.siera-mand__item {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 14px;
		padding: 16px 0;
	}

	.siera-mand h2.siera-mand__naam {
		font-size: 15px;
	}

	.siera-mand__acties {
		padding-top: 12px;
	}

	.siera-overzicht {
		padding: 20px;
	}
}
