/**
 * Cart / checkout / quote layout styles.
 * Previously loaded via Simple Custom CSS & JS with English URL filters
 * (cart|checkout), which skipped translated slugs like winkelwagen/afrekenen.
 */

.cart-container .woocommerce.row.row-large.row-divided,
.cart-container .row.pt-0 {
	background: #fff;
	padding: 20px;
	border-radius: 20px;
}

.cart-container .has-border,
.woocommerce-billing-fields,
.shop_table .order-total td,
.shop_table .order-total th,
.shop_table thead th {
	border: unset;
}

.shop_table thead,
tr.cart-subtotal,
dl.variation {
	display: none !important;
}

.cart_totals th,
.cart_totals tr,
.cart-sidebar .widget-title,
.shipping-installation-row th {
	border: none;
}

.uppercase,
h6,
span.widget-title,
th {
	text-transform: unset;
}

th.product-name,
h3#order_review_heading {
	font-size: 1.2em;
	font-family: "Radial";
	letter-spacing: unset !important;
}

.woocommerce-billing-fields h3 {
	display: none;
}

button#place_order {
	border-radius: 99px;
	padding: 0 1.2em !important;
	width: 100%;
	line-height: unset !important;
	font-size: unset !important;
}

.woocommerce-cart input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.woocommerce-cart textarea,
.woocommerce-cart select,
.woocommerce-checkout input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.woocommerce-checkout textarea,
.woocommerce-checkout select {
	border-radius: 20px !important;
	border-color: #1e274a !important;
	height: auto !important;
	min-height: 3.2em !important;
	margin-bottom: 0 !important;
	background-color: #fff;
	color: #1e274a;
}

.woocommerce-cart input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):focus,
.woocommerce-cart textarea:focus,
.woocommerce-cart select:focus,
.woocommerce-checkout input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
	border-radius: 20px;
	border-color: #1e274a;
	box-shadow: unset !important;
}

.yith-ywraq-mail-form-wrapper input::placeholder,
.yith-ywraq-mail-form-wrapper textarea::placeholder {
	color: #1e274a !important;
}

.woocommerce-cart input::placeholder,
.woocommerce-cart textarea::placeholder,
.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder {
	color: #1e274a !important;
}

form.checkout h3 {
	text-transform: unset;
}

bdi {
	color: #1e274a;
}

.koop-subtotal bdi,
.lease-subtotal bdi {
	font-weight: bold;
}

.koop-subtotal,
.lease-subtotal {
	border-top: 1px solid #1e274a;
}

.shop_table tfoot th {
	font-size: unset;
	font-weight: unset;
}

tr.shipping-installation-row td {
	color: #00997f !important;
}

h3#order_review_heading {
	padding-top: unset !important;
}

.order-total span.amount,
.product-total span.amount {
	font-weight: 500 !important;
}

.woocommerce-billing-fields {
	padding-top: 30px;
}

.woocommerce-form-coupon-toggle {
	display: none;
}

span.amount {
	font-weight: unset;
}

.woocommerce-checkout #payment ul.payment_methods {
	list-style: none;
	padding: 0;
	margin: 0 0 1em;
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: 0.6em 0;
	margin: 0;
	border: none;
	line-height: 1.4;
}

.woocommerce-checkout #payment ul.payment_methods li > label {
	position: relative;
	padding-left: 28px;
	cursor: pointer;
	width: 100%;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35em 0.5em;
	line-height: 1.4;
	box-sizing: border-box;
}

#billing_country_field,
#shipping_country_field {
	display: block;
	float: none;
	width: 100%;
}

.woocommerce-checkout select {
	-webkit-appearance: none;
	appearance: none;
	padding: 0 2.2em 0 0.85em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231e274a' d='M1.4.8 6 5.4 10.6.8 12 2.2 6 8.2 0 2.2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9em center;
	background-size: 10px 7px;
}

.woocommerce-checkout .select2-container .select2-selection--single {
	border-radius: 20px !important;
	border: 1px solid #1e274a !important;
	height: 3.2em !important;
	min-height: 3.2em !important;
	background-color: #fff !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 3.1em;
	color: #1e274a;
	padding-left: 0.85em;
}

tr.order-total {
	display: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li > label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	transform: none;
	width: 18px;
	height: 18px;
	border: 2px solid #333;
	border-radius: 10px;
	background: #fff;
	box-sizing: border-box;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.woocommerce-checkout #payment ul.payment_methods li > input[type="radio"]:checked + label::before,
.woocommerce-checkout #payment ul.payment_methods li > input[type="checkbox"]:checked + label::before {
	background: #0073aa;
	border-color: #0073aa;
	box-shadow: inset 0 0 0 3px #fff;
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box label {
	padding-left: 0;
	width: auto;
	display: inline;
	position: static;
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box label::before {
	content: none !important;
	display: none;
	border: none;
	background: none;
	box-shadow: none;
}

#payment ul.payment_methods li > input[name="payment_method"],
input[name="payment_method"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	opacity: 0 !important;
	pointer-events: none;
	margin: 0 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
	display: flex;
	align-items: flex-start;
	gap: 0.55em;
	line-height: 1.4;
}

.woocommerce-checkout input[type="checkbox"],
.woocommerce-checkout input[type="radio"] {
	height: auto !important;
	min-height: 0 !important;
	width: auto !important;
	border-radius: 4px !important;
	margin: 0.2em 0 0 !important;
	flex-shrink: 0;
}

.fl-labels .fl-wrap label[for]:first-child {
	max-width: calc(100% - 1.6em);
	overflow: hidden;
	text-overflow: ellipsis;
}

.woocommerce-cart td,
.woocommerce-cart th,
.woocommerce-cart tr,
.woocommerce-checkout td,
.woocommerce-checkout th,
.woocommerce-checkout tr {
	color: unset !important;
	border-bottom: unset;
}

/* Checkout company autocomplete (was Custom CSS & JS "Checkout auto-complete") */
.woocommerce-billing-fields__field-wrapper .autocomplete-suggestions {
	background: #fff;
	-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.woocommerce-billing-fields__field-wrapper .autocomplete-suggestion:hover {
	background: #f2f2f2;
}

.woocommerce-billing-fields__field-wrapper .autocomplete-suggestion {
	font-size: 0.85em;
}

span.auto-company-name {
	padding-right: 15px;
}

span.auto-company-location {
	padding-right: 15px;
}

.autocomplete-suggestion span i {
	padding-right: 5px;
}

/* Dutch postcode-checker leftover. Must not hide postcode/city/street. */
.hide-form-fields {
	display: unset;
}

a.unhide-fields-link {
	color: #1976d2;
	padding-left: 10px;
}

span.field_values_display {
	margin-bottom: 10px;
}

#companyinfo_field p {
	display: none !important;
}

div#companyinfo_title_field {
	margin-bottom: 0 !important;
}

@media (max-width: 767px) {
	.cart-container .woocommerce.row.row-large.row-divided,
	.cart-container .row.pt-0 {
		margin: 5px;
	}

	.cross-sells {
		display: none;
	}

	.cart-container .has-border {
		padding: 0;
	}
}
