.ccm-cart {
	--ccm-cart-accent: #05707A;
	--ccm-cart-accent-dark: #045C64;
	--ccm-cart-heading: #313D4D;
	--ccm-cart-text: #484F56;
	--ccm-cart-line: #E4E7EA;
	--ccm-cart-soft: #F7F8F9;
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 0 80px;
	font-family: "Jost", sans-serif;
	color: var(--ccm-cart-text);
}

.ccm-cart .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Hoved og trin */
.ccm-cart__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 28px;
}

.ccm-cart ol.ccm-cart__steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccm-cart .ccm-cart__step {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #8A939B;
}

.ccm-cart .ccm-cart__step:not(:last-child)::after {
	content: "";
	display: block;
	width: 36px;
	height: 2px;
	margin-left: 2px;
	background-color: var(--ccm-cart-line);
	border-radius: 2px;
}

.ccm-cart__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	font-size: 13px;
	font-weight: 600;
	color: #8A939B;
	background-color: var(--ccm-cart-soft);
	border: 1px solid var(--ccm-cart-line);
	border-radius: 50%;
}

.ccm-cart .ccm-cart__step.is-current {
	color: var(--ccm-cart-heading);
}

.ccm-cart .ccm-cart__step.is-current .ccm-cart__step-num {
	color: #FFFFFF;
	background-color: var(--ccm-cart-accent);
	border-color: var(--ccm-cart-accent);
}

.ccm-cart .ccm-cart__title {
	margin: 0;
	font-family: "Jost", sans-serif;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 600;
	line-height: 1.1;
	color: var(--ccm-cart-heading);
}

/* Layout */
.ccm-cart--filled .ccm-cart__body > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	column-gap: 40px;
	row-gap: 0;
	align-items: start;
}

.ccm-cart--filled .ccm-cart__body > .woocommerce > * {
	grid-column: 1;
	min-width: 0;
}

.ccm-cart--filled .ccm-cart__body > .woocommerce > form.woocommerce-cart-form {
	grid-column: 1;
	margin: 0 0 20px;
}

.ccm-cart--filled .ccm-cart__body > .woocommerce > .cart-collaterals {
	display: contents;
}

.ccm-cart .cart-collaterals > .cart_totals {
	grid-column: 2;
	grid-row: 1 / span 8;
	position: sticky;
	top: 24px;
	float: none;
	width: auto;
	min-width: 0;
}

.ccm-cart .cart-collaterals > .cross-sells {
	grid-column: 1;
	float: none;
	width: auto;
}

.ccm-cart .woocommerce-notices-wrapper:empty {
	display: none;
}

/* Beskeder */
.ccm-cart .woocommerce-message,
.ccm-cart .woocommerce-info,
.ccm-cart .woocommerce-error {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 10px;
	padding: 14px 18px;
	font-size: 15px;
	line-height: 1.5;
	list-style: none;
	color: var(--ccm-cart-heading);
	background-color: #EEF6F6;
	border: 0;
	border-radius: 14px;
}

.ccm-cart .woocommerce-message::before,
.ccm-cart .woocommerce-info::before,
.ccm-cart .woocommerce-error::before {
	display: none;
}

.ccm-cart .woocommerce-error {
	color: #8A1C1C;
	background-color: #FDECEC;
}

.ccm-cart .woocommerce-message a.button,
.ccm-cart .woocommerce-info a.button {
	order: 2;
	margin: 0 0 0 auto;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ccm-cart-accent);
	background: #FFFFFF;
	border: 1px solid currentColor;
	border-radius: 999px;
}

/* Varelinjer */
.ccm-cart table.shop_table.cart {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	background: transparent;
}

.ccm-cart table.shop_table.cart thead {
	display: none;
}

.ccm-cart table.shop_table.cart tbody {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ccm-cart table.shop_table.cart tr {
	display: block;
	background: transparent;
}

.ccm-cart table.shop_table.cart td {
	display: block;
	padding: 0;
	text-align: left;
	background: transparent;
	border: 0;
}

.ccm-cart table.shop_table.cart td::before {
	display: none;
}

/* WooCommerces mobil-tabel (woocommerce-smallscreen.css) skjuler billedet og højrestiller tekst med !important */
.ccm-cart table.shop_table.cart td.product-thumbnail {
	display: block !important;
}

.ccm-cart table.shop_table.cart td.product-name,
.ccm-cart table.shop_table.cart td.product-price,
.ccm-cart table.shop_table.cart td.product-quantity,
.ccm-cart table.shop_table.cart td.product-remove,
.ccm-cart table.shop_table.cart td.actions {
	text-align: left !important;
}

.ccm-cart table.shop_table.cart td.product-subtotal {
	text-align: right !important;
}

.ccm-cart table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) auto;
	grid-template-areas:
		"thumb name remove"
		"thumb price price"
		"thumb qty subtotal";
	align-items: center;
	gap: 6px 18px;
	padding: 16px;
	background-color: #FFFFFF;
	border: 1px solid var(--ccm-cart-line);
	border-radius: 18px;
}

.ccm-cart table.shop_table.cart td.product-thumbnail {
	grid-area: thumb;
	align-self: start;
	width: auto;
}

.ccm-cart table.shop_table.cart td.product-thumbnail img {
	display: block;
	width: 104px;
	max-width: none;
	height: 104px;
	margin: 0;
	object-fit: cover;
	background-color: var(--ccm-cart-soft);
	border-radius: 12px;
}

.ccm-cart table.shop_table.cart td.product-name {
	grid-area: name;
	align-self: start;
	font-size: 14px;
	line-height: 1.5;
}

.ccm-cart table.shop_table.cart td.product-name > a {
	display: inline-block;
	margin-bottom: 4px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ccm-cart-heading);
	text-decoration: none;
}

.ccm-cart table.shop_table.cart td.product-name > a:hover {
	color: var(--ccm-cart-accent);
}

.ccm-cart table.shop_table.cart dl.variation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 2px 8px;
	margin: 0;
	font-size: 13px;
	color: var(--ccm-cart-text);
}

.ccm-cart table.shop_table.cart dl.variation dt,
.ccm-cart table.shop_table.cart dl.variation dd {
	float: none;
	margin: 0;
	padding: 0;
}

.ccm-cart table.shop_table.cart dl.variation dt {
	font-weight: 500;
}

.ccm-cart table.shop_table.cart dl.variation dd p {
	display: inline;
	margin: 0;
}

.ccm-cart table.shop_table.cart td.product-price {
	grid-area: price;
	font-size: 13px;
	color: #6B747D;
}

.ccm-cart table.shop_table.cart td.product-price::after {
	content: " / stk.";
}

.ccm-cart table.shop_table.cart td.product-remove {
	grid-area: remove;
	align-self: start;
	width: auto;
}

.ccm-cart table.shop_table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	font-size: 20px;
	line-height: 1;
	color: #6B747D !important;
	text-decoration: none;
	background-color: var(--ccm-cart-soft) !important;
	border-radius: 50%;
	transition: background-color 0.2s, color 0.2s;
}

.ccm-cart table.shop_table.cart td.product-remove a.remove:hover,
.ccm-cart table.shop_table.cart td.product-remove a.remove:focus-visible {
	color: #FFFFFF !important;
	background-color: #B42318 !important;
}

.ccm-cart table.shop_table.cart td.product-quantity {
	grid-area: qty;
}

.ccm-cart table.shop_table.cart td.product-subtotal {
	grid-area: subtotal;
	font-size: 18px;
	font-weight: 600;
	text-align: right;
	color: var(--ccm-cart-heading);
}

/* Antal */
.ccm-cart .woocommerce-cart-form .quantity {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	background-color: #FFFFFF;
	border: 1px solid #D2D7DC;
	border-radius: 999px;
}

.ccm-cart .woocommerce-cart-form .quantity input.qty {
	width: 48px;
	height: 40px;
	margin: 0;
	padding: 0;
	font-family: "Jost", sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	color: var(--ccm-cart-heading);
	background: transparent;
	border: 0;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.ccm-cart .woocommerce-cart-form .quantity input.qty::-webkit-inner-spin-button,
.ccm-cart .woocommerce-cart-form .quantity input.qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ccm-cart .woocommerce-cart-form button.ccm-qty-btn {
	width: 38px;
	height: 40px;
	margin: 0;
	padding: 0;
	font-family: "Jost", sans-serif;
	font-size: 20px;
	line-height: 1;
	color: var(--ccm-cart-heading);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
}

.ccm-cart .woocommerce-cart-form button.ccm-qty-btn:hover,
.ccm-cart .woocommerce-cart-form button.ccm-qty-btn:focus-visible {
	color: #FFFFFF;
	background-color: var(--ccm-cart-accent);
}

/* Rabatkode og opdatering */
.ccm-cart table.shop_table.cart td.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px;
	background-color: var(--ccm-cart-soft);
	border-radius: 18px;
}

.ccm-cart table.shop_table.cart td.actions .coupon {
	display: flex;
	flex: 1 1 320px;
	flex-wrap: wrap;
	gap: 8px;
	float: none;
}

.ccm-cart table.shop_table.cart td.actions .coupon input#coupon_code {
	flex: 1 1 160px;
	width: auto;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 18px;
	font-family: "Jost", sans-serif;
	font-size: 15px;
	color: var(--ccm-cart-heading);
	background-color: #FFFFFF;
	border: 1px solid #D2D7DC;
	border-radius: 999px;
}

.ccm-cart table.shop_table.cart td.actions .coupon input#coupon_code.has-error,
.ccm-cart table.shop_table.cart td.actions .coupon input#coupon_code[aria-invalid="true"] {
	border-color: #B42318;
}

.ccm-cart table.shop_table.cart td.actions .coupon .coupon-error-notice {
	flex: 1 1 100%;
	margin: 0;
	padding: 0 6px;
	font-size: 14px;
	line-height: 1.4;
	color: #B42318;
}

.ccm-cart table.shop_table.cart td.actions .button,
.ccm-cart table.shop_table.cart td.actions button {
	height: 46px;
	margin: 0;
	padding: 0 22px;
	font-family: "Jost", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: var(--ccm-cart-accent) !important;
	background-color: #FFFFFF !important;
	border: 1px solid var(--ccm-cart-accent) !important;
	border-radius: 999px !important;
	box-shadow: none;
	float: none;
}

.ccm-cart table.shop_table.cart td.actions .button:hover,
.ccm-cart table.shop_table.cart td.actions button:hover {
	color: #FFFFFF !important;
	background-color: var(--ccm-cart-accent) !important;
}

.ccm-cart--auto table.shop_table.cart td.actions button[name="update_cart"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0 !important;
}

.ccm-cart a.ccm-cart__continue {
	display: inline-block;
	margin-top: 16px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ccm-cart-accent);
	text-decoration: none;
}

.ccm-cart a.ccm-cart__continue:hover {
	text-decoration: underline;
}

/* Opsummering */
.ccm-cart .cart_totals {
	padding: 24px;
	background-color: var(--ccm-cart-soft);
	border-radius: 20px;
}

.ccm-cart .cart_totals > h2 {
	margin: 0 0 8px;
	font-family: "Jost", sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--ccm-cart-heading);
}

.ccm-cart .cart_totals table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

.ccm-cart .cart_totals table.shop_table tr {
	background: transparent;
}

.ccm-cart .cart_totals table.shop_table th,
.ccm-cart .cart_totals table.shop_table td {
	padding: 12px 0;
	font-size: 15px;
	vertical-align: top;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ccm-cart-line);
}

.ccm-cart .cart_totals table.shop_table th {
	font-weight: 500;
	text-align: left;
	color: var(--ccm-cart-text);
}

.ccm-cart .cart_totals table.shop_table td {
	text-align: right;
	color: var(--ccm-cart-heading);
}

.ccm-cart .cart_totals table.shop_table td::before {
	display: none;
}

.ccm-cart .cart_totals table.shop_table,
.ccm-cart .cart_totals table.shop_table tbody {
	display: block;
	width: 100%;
}

.ccm-cart .cart_totals table.shop_table tr {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--ccm-cart-line);
}

.ccm-cart .cart_totals table.shop_table tr > th,
.ccm-cart .cart_totals table.shop_table tr > td {
	display: block;
	border-bottom: 0;
}

.ccm-cart .cart_totals table.shop_table tr.order-total {
	border-bottom: 0;
}

.ccm-cart .cart_totals tr.woocommerce-shipping-totals {
	flex-direction: column;
	gap: 0;
}

.ccm-cart .cart_totals tr.woocommerce-shipping-totals th,
.ccm-cart .cart_totals tr.woocommerce-shipping-totals td {
	display: block;
	width: 100%;
	text-align: left;
}

.ccm-cart .cart_totals tr.woocommerce-shipping-totals th {
	padding-bottom: 6px;
	border-bottom: 0;
}

.ccm-cart .cart_totals tr.woocommerce-shipping-totals td {
	padding-top: 0;
}

.ccm-cart .cart_totals ul#shipping_method {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.ccm-cart .cart_totals ul#shipping_method li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.4;
	text-indent: 0;
	background-color: #FFFFFF;
	border: 1px solid var(--ccm-cart-line);
	border-radius: 12px;
}

.ccm-cart .cart_totals ul#shipping_method li input {
	margin: 3px 0 0;
	accent-color: var(--ccm-cart-accent);
}

.ccm-cart .cart_totals ul#shipping_method li label {
	margin: 0;
	font-family: "Jost", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ccm-cart-heading);
}

.ccm-cart .cart_totals .woocommerce-shipping-destination,
.ccm-cart .cart_totals .woocommerce-shipping-calculator {
	margin: 4px 0 0;
	font-size: 13px;
	color: #6B747D;
}

.ccm-cart .cart_totals .shipping-calculator-button {
	color: var(--ccm-cart-accent);
}

.ccm-cart .cart_totals tr.order-total th,
.ccm-cart .cart_totals tr.order-total td {
	padding-top: 16px;
	font-size: 19px;
	font-weight: 600;
	color: var(--ccm-cart-heading);
	border-bottom: 0;
}

.ccm-cart .cart_totals tr.order-total td small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: #6B747D;
}

.ccm-cart .cart_totals .wc-proceed-to-checkout {
	padding: 12px 0 0;
}

.ccm-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
	display: block;
	margin: 0 0 10px;
	padding: 17px 24px;
	font-family: "Jost", sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #FFFFFF !important;
	background-color: var(--ccm-cart-accent) !important;
	border: 0;
	border-radius: 999px;
	transition: background-color 0.2s;
}

.ccm-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
.ccm-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:focus-visible {
	background-color: var(--ccm-cart-accent-dark) !important;
}

.ccm-cart ul.ccm-cart__usps {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0 0;
	padding: 16px 0 0;
	list-style: none;
	border-top: 1px solid var(--ccm-cart-line);
}

.ccm-cart .ccm-cart__usp {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	color: var(--ccm-cart-heading);
}

.ccm-cart .ccm-cart__icon {
	flex: 0 0 auto;
	color: var(--ccm-cart-accent);
}

/* Tom kurv */
.ccm-cart .wc-empty-cart-message,
.ccm-cart .return-to-shop {
	display: none;
}

.ccm-cart__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 28px;
	text-align: center;
	background-color: var(--ccm-cart-soft);
	border-radius: 24px;
}

.ccm-cart__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 6px;
	background-color: #FFFFFF;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(49, 61, 77, 0.1);
}

.ccm-cart__empty-icon .ccm-cart__icon {
	width: 32px;
	height: 32px;
}

.ccm-cart .ccm-cart__empty-title {
	margin: 0;
	font-size: 26px;
	font-weight: 600;
	color: var(--ccm-cart-heading);
}

.ccm-cart .ccm-cart__empty-text {
	max-width: 460px;
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

.ccm-cart__empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

.ccm-cart a.ccm-cart__btn {
	display: inline-flex;
	align-items: center;
	padding: 14px 26px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	color: #FFFFFF;
	text-decoration: none;
	background-color: var(--ccm-cart-accent);
	border: 1px solid var(--ccm-cart-accent);
	border-radius: 999px;
}

.ccm-cart a.ccm-cart__btn--ghost {
	color: var(--ccm-cart-accent);
	background-color: #FFFFFF;
}

.ccm-cart a.ccm-cart__btn:hover {
	color: #FFFFFF;
	background-color: var(--ccm-cart-accent-dark);
}

@media (max-width: 1024px) {
	.ccm-cart--filled .ccm-cart__body > .woocommerce {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 20px 24px;
	}
}

@media (max-width: 860px) {
	.ccm-cart--filled .ccm-cart__body > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}

	.ccm-cart .cart-collaterals > .cart_totals,
	.ccm-cart .cart-collaterals > .cross-sells {
		grid-column: 1;
		grid-row: auto;
		position: static;
	}
}

@media (max-width: 767px) {
	.ccm-cart {
		padding: 12px 6px 48px;
	}

	.ccm-cart__head {
		margin-bottom: 20px;
	}

	.ccm-cart .ccm-cart__step:not(:last-child)::after {
		width: 16px;
	}

	.ccm-cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 76px minmax(0, 1fr) auto;
		gap: 6px 12px;
		padding: 12px;
	}

	.ccm-cart table.shop_table.cart td.product-thumbnail img {
		width: 76px;
		height: 76px;
	}

	.ccm-cart table.shop_table.cart td.product-name > a {
		font-size: 15px;
	}

	.ccm-cart table.shop_table.cart td.product-subtotal {
		font-size: 16px;
	}

	.ccm-cart .cart_totals {
		padding: 20px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccm-cart table.shop_table.cart td.product-remove a.remove,
	.ccm-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
		transition: none;
	}
}
