/* =========================================================
   Crittenden Medical - Checkout Block Manage Order
   Complete replacement stylesheet
   ========================================================= */


/* =========================================================
   CHECKOUT PAGE WIDTH
   Override Newspaper's 970px content container only on checkout.
   ========================================================= */

body.woocommerce-checkout .td-container.tdc-content-wrap {
	width: calc(100% - 40px) !important;
	max-width: 1180px !important;
	margin-right: auto !important;
	margin-left: auto !important;
}


/* =========================================================
   NEWSPAPER / TAGDIV ALIGNWIDE FIX
   ========================================================= */

body.woocommerce-checkout
.td-pb-span12
.wp-block-woocommerce-checkout.alignwide {
	position: static !important;
	left: auto !important;
	transform: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-components-sidebar-layout {
	width: 100% !important;
	max-width: 100% !important;
}


/* =========================================================
   DESKTOP / TABLET CHECKOUT LAYOUT
   ========================================================= */

@media (min-width: 900px) {

	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: flex-start !important;
		gap: 42px !important;
	}

	body.woocommerce-checkout .wc-block-checkout__main {
		order: 1;
		flex: 1 1 auto !important;
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar {
		order: 2;
		flex: 0 0 360px !important;
		width: 360px !important;
		max-width: 360px !important;
		margin: 0 !important;
	}
}


/* =========================================================
   MANAGE ORDER
   ========================================================= */

.cml-checkout-remove-items {
	margin: 0;
	padding: 16px 22px 14px !important;
	border-top: 1px solid #dfe2e8;
	background: #fff;
	font-family: "proxima-nova", sans-serif;
}

.cml-checkout-remove-items__heading {
	margin: 0 0 10px;
	color: #41506f;
	font-family: "Roboto", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cml-checkout-remove-items__list {
	display: grid;
	gap: 0;
}

.cml-checkout-remove-items__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
	padding: 10px 0;
	border-top: 1px solid #eef0f4;
}

.cml-checkout-remove-items__item:first-child {
	border-top: 0;
	padding-top: 2px;
}

.cml-checkout-remove-items__details {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 8px;
}

.cml-checkout-remove-items__name,
.cml-checkout-remove-items__variation {
	display: block;
}

.cml-checkout-remove-items__name {
	max-width: none;
	overflow: visible;
	color: #293542;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: initial;
	white-space: normal;
}

.cml-checkout-remove-items__variation {
	margin-top: 3px;
	color: #6c7380;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
}

.cml-checkout-remove-items__button {
	flex: 0 0 auto;
	margin: 0;
	padding: 1px 0 0;
	border: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #676ab1 !important;
	cursor: pointer;
	font-family: "Roboto", sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	white-space: nowrap;
}

.cml-checkout-remove-items__button:hover,
.cml-checkout-remove-items__button:focus {
	color: #41506f !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cml-checkout-remove-items__button:focus-visible {
	outline: 2px solid #676ab1;
	outline-offset: 3px;
	border-radius: 2px;
}

.cml-checkout-remove-items__button:disabled {
	cursor: wait;
	opacity: .5;
}


/* =========================================================
   MOBILE CHECKOUT LAYOUT
   ========================================================= */

@media (max-width: 899px) {

	body.woocommerce-checkout .td-container.tdc-content-wrap {
		width: calc(100% - 30px) !important;
		max-width: 100% !important;
	}

	body.woocommerce-checkout
	.td-pb-span12
	.wp-block-woocommerce-checkout.alignwide {
		width: 100% !important;
		max-width: 100% !important;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		gap: 28px !important;
	}

	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	body.woocommerce-checkout .wc-block-checkout__main {
		order: 1;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar {
		order: 2;
		margin-top: 0 !important;
	}

	.cml-checkout-remove-items {
		padding: 14px 18px 12px;
	}

	.cml-checkout-remove-items__item {
		align-items: flex-start;
	}

	.cml-checkout-remove-items__name {
		font-size: 12px;
	}

	.cml-checkout-remove-items__variation,
	.cml-checkout-remove-items__button {
		font-size: 11px;
	}
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

	body.woocommerce-checkout .td-container.tdc-content-wrap {
		width: calc(100% - 20px) !important;
	}

	.cml-checkout-remove-items {
		padding-right: 16px;
		padding-left: 16px;
	}

	.cml-checkout-remove-items__item {
		gap: 10px;
	}

	.cml-checkout-remove-items__details {
		padding-right: 2px;
	}
}
