.mb-theme.woocommerce-cart #main.main,
.mb-theme.woocommerce-checkout #main.main {
	padding-top: 0;
}

.mb-theme.woocommerce-cart .page-title,
.mb-theme.woocommerce-checkout .page-title,
.mb-theme.woocommerce-checkout .woocommerce-form-coupon-toggle,
.mb-theme.woocommerce-checkout .woocommerce-form-login-toggle,
.mb-theme.woocommerce-checkout .woocommerce-additional-fields,
.mb-theme.woocommerce-checkout #payment,
.mb-theme.woocommerce-checkout .woocommerce-checkout-review-order-table,
.mb-theme.woocommerce-checkout .col2-set {
	display: none;
}

.mb-checkout {
	padding: 16px 0 48px;
}

.mb-checkout .mb-crumb {
	font-size: 16px;
	padding: 8px 0 12px;
	color: var(--mb-text);
}

.mb-checkout .mb-crumb a {
	color: var(--mb-blue-hover);
	text-decoration: none;
}

.mb-checkout .mb-crumb .last,
.mb-checkout .mb-crumb span.last {
	color: var(--mb-text);
}

.mb-checkout__title {
	font-size: 20px;
	font-weight: 600;
	text-transform: uppercase;
	margin: 0 0 20px;
	color: var(--mb-text);
	letter-spacing: 0;
}

.mb-cart-empty {
	margin: 16px 0 24px;
}

.mb-checkout__customer {
	border: 1px solid var(--mb-border);
	padding: 20px 24px 28px;
	background: #fff;
}

.mb-checkout__customer-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 12px;
	text-transform: uppercase;
	color: var(--mb-text);
}

.mb-checkout__hint {
	text-align: center;
	margin: 0 0 20px;
	font-size: 16px;
	color: var(--mb-text);
}

.mb-checkout__fields .form-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	float: none;
	width: 100%;
	padding: 0;
}

.mb-checkout__fields label {
	width: 160px;
	margin: 0;
	text-align: right;
	font-size: 16px;
	font-weight: 400;
	color: var(--mb-text);
}

.mb-checkout__fields label .required,
.mb-checkout__fields label abbr.required {
	display: none;
}

.mb-checkout__fields .woocommerce-input-wrapper {
	width: 320px;
}

.mb-checkout__fields input.input-text,
.mb-checkout__fields textarea {
	width: 100%;
	border: 1px solid #7f7f7f;
	border-radius: 0;
	padding: 6px 8px;
	height: 32px;
	background: #fff;
	box-shadow: none;
}

.mb-checkout__fields textarea {
	height: 64px;
	resize: vertical;
}

.mb-checkout__actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
}

.mb-checkout__reset,
.mb-checkout__submit,
a.mb-checkout__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	height: 32px;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.mb-checkout__reset,
a.mb-checkout__reset {
	background: var(--mb-blue-hover);
}

.mb-checkout__submit,
.mb-checkout #place_order {
	background: var(--mb-sale);
	color: #fff;
}

.mb-checkout__review {
	margin: 0;
	padding: 0;
	border: 0;
}

@media (max-width: 849px) {
.mb-checkout__title {
		text-align: center;
		font-size: 16px;
		font-weight: 700;
	}

.mb-checkout .mb-crumb {
		font-size: 10px;
	}

.mb-checkout__customer {
		padding: 12px 8px 20px;
	}

.mb-checkout__customer-title {
		font-size: 16px;
		text-align: center;
	}

.mb-checkout__hint {
		font-size: 12px;
	}

.mb-checkout__fields .form-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

.mb-checkout__fields label,
	.mb-checkout__fields .woocommerce-input-wrapper {
		width: 100%;
		text-align: left;
	}

.mb-checkout__fields input.input-text,
	.mb-checkout__fields textarea {
		max-width: 100%;
	}

}

/* Keep checkout aligned with the site and isolate Flatsome shop defaults. */
.mb-theme .cart-container.page-wrapper {
	max-width: calc(var(--mb-container) + 32px);
	padding: 0 16px;
}

.mb-checkout__form { margin: 0; }

.mb-checkout__fields .woocommerce-billing-fields { border: 0; padding: 0; }

.mb-checkout__fields .woocommerce-billing-fields > h3,
.mb-checkout__fields label .optional { display: none; }

.mb-checkout__fields input.input-text,
.mb-checkout__fields textarea {
	margin: 0;
	font-size: 16px;
	color: var(--mb-text);
	min-height: 36px;
}

.mb-checkout__fields textarea { height: 80px; min-height: 80px; }

.mb-checkout__fields .form-row { margin-bottom: 16px; }

.mb-checkout__fields .notes { align-items: flex-start; }

.mb-checkout__fields .notes label { padding-top: 6px; }

.mb-checkout__fields input:focus,
.mb-checkout__fields textarea:focus {
	border-color: var(--mb-blue);
	outline: 2px solid rgba(11, 108, 179, .18);
	outline-offset: 1px;
}

.mb-checkout__fields .woocommerce-invalid input { border-color: var(--mb-sale); }

.mb-checkout .mb-checkout__reset,
.mb-checkout #place_order {
	flex: 0 0 auto;
	width: auto;
	min-width: 110px;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 20px;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
}

.mb-checkout .mb-checkout__reset:hover,
.mb-checkout #place_order:hover { filter: brightness(.92); }

.mb-checkout__review { margin-top: 16px; font-size: 13px; color: var(--mb-muted); }

@media (max-width: 549px) {
.mb-checkout { padding-top: 12px; padding-bottom: 32px; }

.mb-checkout .mb-crumb { font-size: 13px; }

.mb-checkout__title,
	.mb-checkout__customer-title { font-size: 18px; }

.mb-checkout__customer { padding: 20px 16px; }

.mb-checkout__hint { font-size: 14px; }

.mb-checkout__fields input.input-text { height: 44px; }

.mb-checkout__fields .notes label { padding-top: 0; }

.mb-checkout__actions { gap: 12px; margin-top: 20px; }

.mb-checkout .mb-checkout__reset,
	.mb-checkout #place_order { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; }

}

/* Product listing inside the combined cart and checkout. */
.mb-checkout-cart {
	margin-bottom: 28px;
	border: 1px solid var(--mb-border);
	border-radius: var(--mb-card-radius);
	background: #fff;
	box-shadow: 0 3px 16px rgba(6, 58, 107, .04);
}

.mb-checkout .mb-cart-form { margin: 0; }
.mb-checkout .mb-cart-table {
	width: 100%;
	min-width: 0;
	margin: 0;
	table-layout: fixed;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
}

.mb-checkout .mb-cart-table th,
.mb-checkout .mb-cart-table td {
	border: 0;
	padding: 22px 16px;
	vertical-align: middle;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.mb-checkout .mb-cart-table thead th {
	padding: 16px;
	border-bottom: 1px solid var(--mb-border);
	background: var(--mb-surface-soft);
	color: var(--mb-blue-deep);
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

.mb-checkout .mb-cart-table th:first-child { border-radius: 12px 0 0 0; }
.mb-checkout .mb-cart-table th:last-child { border-radius: 0 12px 0 0; }
.mb-checkout .mb-cart-table tbody tr + tr td { border-top: 1px solid var(--mb-divider); }
.mb-checkout .mb-cart-table tbody tr:hover { background: var(--mb-surface-subtle); }
.mb-checkout .mb-cart-table th.product-remove { width: 6%; }
.mb-checkout .mb-cart-table th.product-thumbnail { width: 12%; }
.mb-checkout .mb-cart-table th.product-name { width: 36%; text-align: left; }
.mb-checkout .mb-cart-table th.product-quantity { width: 14%; }
.mb-checkout .mb-cart-table th.product-price,
.mb-checkout .mb-cart-table th.product-subtotal { width: 16%; }

.mb-checkout .mb-cart-table .product-thumbnail { display: table-cell; }
.mb-cart-table .product-thumbnail img {
	display: block;
	width: 96px;
	height: 96px;
	margin: auto;
	padding: 8px;
	object-fit: contain;
	border: 1px solid var(--mb-divider);
	border-radius: var(--mb-radius-control);
	background: #fff;
}

.mb-checkout .mb-cart-table td.product-name {
	text-align: left;
	font-weight: 600;
	overflow-wrap: anywhere;
}
.mb-cart-table .product-name a { color: var(--mb-heading); text-decoration: none; }
.mb-cart-table .product-name a:hover { color: var(--mb-blue); }
.mb-cart-sku {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 400;
	color: var(--mb-muted);
}
.mb-cart-table .product-name dl.variation { margin: 8px 0 0; font-size: 13px; font-weight: 400; }

.mb-checkout .mb-cart-table .product-remove a {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 36px;
	border-radius: var(--mb-radius-control);
	font-size: 12px !important;
	font-weight: 400;
	line-height: 1.5 !important;
	color: var(--mb-muted);
	text-decoration: none;
}
.mb-checkout .mb-cart-table .product-remove a:hover {
	background: #fff0f0;
	color: var(--mb-sale);
}

.mb-checkout .mb-cart-table .product-price,
.mb-checkout .mb-cart-table .product-subtotal { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mb-cart-table .product-price .woocommerce-Price-amount { color: var(--mb-muted); font-weight: 400; }
.mb-cart-table .product-subtotal .woocommerce-Price-amount { color: var(--mb-heading); font-weight: 700; }

.mb-checkout .mb-cart-table .quantity {
	display: inline-flex;
	max-width: 100%;
	margin: 0;
	border: 1px solid var(--mb-border);
	border-radius: var(--mb-radius-control);
	background: #fff;
}
.mb-checkout .mb-cart-table .quantity .qty,
.mb-checkout .mb-cart-table .quantity .button {
	height: 38px;
	min-height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	color: var(--mb-heading);
	font-size: 14px;
	line-height: 1;
	text-align: center;
}
.mb-checkout .mb-cart-table .quantity .qty { flex: 1; width: 40px; min-width: 0; font-weight: 600; }
.mb-checkout .mb-cart-table .quantity .button { flex: 0 0 32px; width: 32px; min-width: 0; border-radius: var(--mb-radius-control); }
.mb-checkout .mb-cart-table .quantity .button:hover { background: var(--mb-surface-soft); color: var(--mb-blue); }
.mb-checkout .mb-cart-table .quantity.hidden { display: none; }
.mb-cart-table a:focus-visible,
.mb-cart-table input:focus-visible { outline: 2px solid var(--mb-blue); outline-offset: 2px; }

.mb-cart-update { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.mb-cart-update:focus-visible { position: static; width: auto; height: auto; clip: auto; }
.mb-cart-total {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 16px;
	margin: 0;
	padding: 20px 24px;
	border-top: 1px solid var(--mb-border);
	border-radius: 0 0 12px 12px;
	background: var(--mb-surface-subtle);
	font-size: 15px;
	font-weight: 500;
	color: var(--mb-muted);
}
.mb-cart-total .woocommerce-Price-amount { font-size: 24px; font-weight: 700; color: var(--mb-sale); }

@media (min-width: 550px) and (max-width: 849px) {
	.mb-checkout .mb-cart-table th,
	.mb-checkout .mb-cart-table td { padding: 16px 8px; font-size: 12px; }
	.mb-checkout .mb-cart-table th.product-name { width: 26%; }
	.mb-checkout .mb-cart-table th.product-quantity { width: 18%; }
	.mb-checkout .mb-cart-table th.product-price,
	.mb-checkout .mb-cart-table th.product-subtotal { width: 19%; }
	.mb-cart-table .product-thumbnail img { width: 64px; height: 64px; padding: 4px; }
	.mb-checkout .mb-cart-table .product-remove a { width: auto; }
	.mb-checkout .mb-cart-table .quantity .button { flex-basis: 26px; width: 26px; }
}

@media (max-width: 549px) {
	.mb-checkout-cart { margin-bottom: 24px; }
	.mb-checkout .mb-cart-table { display: block; }
	.mb-cart-table thead { display: none; }
	.mb-cart-table tbody { display: block; }
	.mb-checkout .mb-cart-table tr.cart_item {
		display: grid;
		grid-template-columns: 76px minmax(0, 1fr);
		padding: 16px;
		gap: 12px;
	}
	.mb-checkout .mb-cart-table tr.cart_item + tr.cart_item { border-top: 1px solid var(--mb-border); }
	.mb-checkout .mb-cart-table tr.cart_item td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		width: auto;
		padding: 0;
		border: 0;
		font-size: 14px;
		text-align: left;
	}
	.mb-checkout .mb-cart-table td.product-thumbnail { grid-column: 1; grid-row: 1 / 3; align-self: start; }
	.mb-cart-table .product-thumbnail img { width: 76px; height: 76px; padding: 6px; }
	.mb-checkout .mb-cart-table tr.cart_item td.product-name { grid-column: 2; grid-row: 1; display: block; }
	.mb-cart-sku { margin-top: 6px; font-size: 11px; }
	.mb-checkout .mb-cart-table td.product-remove { grid-column: 2; grid-row: 2; }
	.mb-checkout .mb-cart-table .product-remove a { width: auto; height: 28px; padding: 0 8px; margin-left: -8px; }
	.mb-checkout .mb-cart-table td.product-quantity,
	.mb-checkout .mb-cart-table td.product-price,
	.mb-checkout .mb-cart-table td.product-subtotal { grid-column: 1 / -1; }
	.mb-checkout .mb-cart-table td.product-quantity { margin-top: 4px; }
	.mb-checkout .mb-cart-table td.product-quantity::before,
	.mb-checkout .mb-cart-table td.product-price::before,
	.mb-checkout .mb-cart-table td.product-subtotal::before { content: attr(data-title); color: var(--mb-muted); font-size: 13px; }
	.mb-checkout .mb-cart-table tr.cart_item td.product-subtotal { padding-top: 12px; border-top: 1px dashed var(--mb-border); }
	.mb-checkout .mb-cart-table .quantity { width: 112px; }
	.mb-checkout .mb-cart-table .quantity .qty,
	.mb-checkout .mb-cart-table .quantity .button { height: 40px; min-height: 40px; }
	.mb-checkout .mb-cart-table .quantity .button { flex-basis: 34px; }
	.mb-cart-total { padding: 18px 16px; justify-content: space-between; gap: 8px; font-size: 14px; }
	.mb-cart-total .woocommerce-Price-amount { font-size: 21px; }
}
