.cfd-root {
	--cfd-ecommerce: #7c1016;
	--cfd-quote: #003d7e;
	--cfd-bottom: 24px;
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(var(--cfd-bottom), env(safe-area-inset-bottom));
	z-index: 999990;
	color: #1d2939;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.cfd-root.cfd-position-left {
	right: auto;
	left: max(18px, env(safe-area-inset-left));
}

.cfd-root *,
.cfd-root *::before,
.cfd-root *::after {
	box-sizing: border-box;
}

.cfd-root ul,
.cfd-root ol,
.cfd-root li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.cfd-root li::marker,
.cfd-root li::before,
.cfd-root li::after {
	display: none !important;
	content: none !important;
}

.cfd-root a {
	text-decoration: none;
}

.cfd-root button,
.cfd-root input {
	font: inherit;
}

.cfd-launcher {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, .1);
	border-radius: 999px;
	box-shadow: 0 12px 38px rgba(15, 23, 42, .23);
	transition: box-shadow .2s ease, transform .2s ease;
}

.cfd-launcher:hover {
	box-shadow: 0 16px 44px rgba(15, 23, 42, .29);
	transform: translateY(-2px);
}

.cfd-launcher-button {
	display: flex !important;
	gap: 7px;
	align-items: center;
	min-height: 58px;
	margin: 0 !important;
	padding: 9px 13px !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: filter .18s ease;
}

.cfd-launcher-button:hover,
.cfd-launcher-button:focus-visible {
	color: #fff !important;
	filter: brightness(1.1);
	outline: none;
}

.cfd-launcher-ecommerce {
	background: var(--cfd-ecommerce) !important;
}

.cfd-launcher-quote {
	background: var(--cfd-quote) !important;
}

.cfd-launcher-button svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cfd-launcher-button > span {
	max-width: 88px;
}

.cfd-launcher-button > strong,
.cfd-tab > strong {
	display: grid;
	flex: 0 0 auto;
	min-width: 23px;
	height: 23px;
	padding: 0 5px;
	place-items: center;
	color: #1d2939;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	background: #fff;
	border-radius: 999px;
}

.cfd-launcher-divider {
	display: none;
}

.cfd-backdrop {
	position: fixed !important;
	inset: 0 !important;
	z-index: 1;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: rgba(15, 23, 42, .47) !important;
	border: 0 !important;
	border-radius: 0 !important;
	opacity: 0;
	pointer-events: none;
	cursor: default;
	transition: opacity .22s ease;
}

.cfd-panel {
	position: absolute;
	right: 0;
	bottom: calc(100% + 13px);
	z-index: 3;
	display: flex;
	flex-direction: column;
	width: min(420px, calc(100vw - 28px));
	max-height: min(680px, calc(100vh - var(--cfd-bottom) - 90px));
	max-height: min(680px, calc(100dvh - var(--cfd-bottom) - 90px));
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, .1);
	border-radius: 22px;
	box-shadow: 0 22px 70px rgba(15, 23, 42, .25);
	opacity: 0;
	pointer-events: none;
	transform: translateY(14px) scale(.98);
	transform-origin: bottom right;
	transition: opacity .2s ease, transform .23s ease;
}

.cfd-position-left .cfd-panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.cfd-root.is-open .cfd-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.cfd-root.is-open .cfd-backdrop {
	opacity: 1;
	pointer-events: auto;
}

.cfd-panel-header {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 19px 20px 16px;
	background: #fff;
	border-bottom: 1px solid #eaecf0;
}

.cfd-panel-header span {
	display: block;
	margin-bottom: 2px;
	color: #667085;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cfd-panel-header h2 {
	margin: 0 !important;
	padding: 0 !important;
	color: #101828 !important;
	font-size: 21px !important;
	font-weight: 850 !important;
	line-height: 1.2 !important;
}

.cfd-close {
	display: grid !important;
	flex: 0 0 38px;
	width: 38px !important;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	place-items: center;
	color: #344054 !important;
	background: #f2f4f7 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	cursor: pointer;
}

.cfd-close:hover {
	color: #101828 !important;
	background: #e4e7ec !important;
}

.cfd-close svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.cfd-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 10px 12px;
	background: #f8fafc;
	border-bottom: 1px solid #eaecf0;
}

.cfd-tab {
	position: relative;
	display: flex !important;
	gap: 7px;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 46px;
	margin: 0 !important;
	padding: 8px 9px !important;
	color: #475467 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	background: transparent !important;
	border: 1px solid transparent !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	cursor: pointer;
}

.cfd-tab:first-child.is-active {
	color: var(--cfd-ecommerce) !important;
	background: #fff !important;
	border-color: #ead4d6 !important;
	border-color: color-mix(in srgb, var(--cfd-ecommerce) 25%, #fff) !important;
	box-shadow: 0 3px 10px rgba(15, 23, 42, .07) !important;
}

.cfd-tab:nth-child(2).is-active {
	color: var(--cfd-quote) !important;
	background: #fff !important;
	border-color: #d7e3ef !important;
	border-color: color-mix(in srgb, var(--cfd-quote) 25%, #fff) !important;
	box-shadow: 0 3px 10px rgba(15, 23, 42, .07) !important;
}

.cfd-tab svg {
	flex: 0 0 19px;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cfd-tab > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cfd-tab > strong {
	min-width: 21px;
	height: 21px;
	color: #344054;
	background: #eaecf0;
}

.cfd-panel-body {
	position: relative;
	min-height: 190px;
	padding: 4px 0 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.cfd-pane[hidden] {
	display: none !important;
}

.cfd-woocommerce-mini-cart,
.cfd-quote-mini-cart {
	padding: 14px 17px 18px;
}

.cfd-root .woocommerce-mini-cart,
.cfd-quote-items {
	display: grid !important;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
}

.cfd-root .woocommerce-mini-cart-item,
.cfd-quote-item {
	position: relative;
	display: grid !important;
	grid-template-columns: 70px minmax(0, 1fr) 34px;
	gap: 11px;
	align-items: center;
	min-height: 84px;
	margin: 0 !important;
	padding: 9px !important;
	overflow: visible;
	background: #f8fafc;
	border: 1px solid #eaecf0;
	border-radius: 13px;
}

.cfd-root .woocommerce-mini-cart-item {
	display: block !important;
	padding-right: 44px !important;
}

.cfd-root .woocommerce-mini-cart-item > a:not(.remove) {
	display: grid !important;
	grid-template-columns: 70px minmax(0, 1fr);
	gap: 11px;
	align-items: center;
	min-width: 0;
	color: #1d2939 !important;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.3;
}

.cfd-root .woocommerce-mini-cart-item img,
.cfd-item-image img {
	display: block !important;
	float: none !important;
	width: 70px !important;
	height: 66px !important;
	margin: 0 !important;
	padding: 5px;
	object-fit: contain;
	background: #fff;
	border-radius: 9px;
}

.cfd-root .woocommerce-mini-cart-item .quantity {
	display: block;
	margin: -19px 0 0 81px;
	color: #667085;
	font-size: 12px;
}

.cfd-root .woocommerce-mini-cart-item > a.remove {
	position: absolute !important;
	top: 50% !important;
	right: 8px !important;
	left: auto !important;
	display: grid !important;
	width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	place-items: center;
	color: #b42318 !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	background: #fff !important;
	border: 1px solid #fecdca !important;
	border-radius: 50% !important;
	transform: translateY(-50%);
}

.cfd-root .woocommerce-mini-cart-item > a.remove:hover {
	color: #fff !important;
	background: #b42318 !important;
}

.cfd-root .woocommerce-mini-cart__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 15px 0 10px !important;
	padding: 13px 4px 0 !important;
	color: #344054;
	border-top: 1px solid #eaecf0;
}

.cfd-root .woocommerce-mini-cart__total strong {
	font-weight: 700;
}

.cfd-root .woocommerce-mini-cart__total .amount {
	color: var(--cfd-ecommerce);
	font-size: 17px;
	font-weight: 900;
}

.cfd-root .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
	margin: 0 !important;
	padding: 0 !important;
}

.cfd-root .woocommerce-mini-cart__buttons .button,
.cfd-primary-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0 !important;
	padding: 10px 13px !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	background: var(--cfd-ecommerce) !important;
	border: 0 !important;
	border-radius: 11px !important;
	box-shadow: none !important;
}

.cfd-root .woocommerce-mini-cart__buttons .button:first-child {
	color: #344054 !important;
	background: #eaecf0 !important;
}

.cfd-root .woocommerce-mini-cart__empty-message {
	margin: 0 !important;
	padding: 34px 15px !important;
	color: #667085;
	text-align: center;
	background: #f8fafc;
	border: 1px dashed #d0d5dd;
	border-radius: 14px;
}

.cfd-item-image {
	grid-row: 1;
	grid-column: 1;
}

.cfd-item-info {
	display: grid;
	grid-row: 1;
	grid-column: 2;
	gap: 4px;
	min-width: 0;
}

.cfd-item-name {
	display: -webkit-box;
	overflow: hidden;
	color: #1d2939 !important;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.cfd-item-info small {
	color: #667085;
	font-size: 10px;
}

.cfd-remove-quote {
	display: grid !important;
	grid-row: 1;
	grid-column: 3;
	width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	place-items: center;
	color: #b42318 !important;
	background: #fff !important;
	border: 1px solid #fecdca !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	cursor: pointer;
}

.cfd-remove-quote svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cfd-quantity {
	display: grid;
	grid-template-columns: 27px 38px 27px;
	margin-top: 2px;
}

.cfd-quantity button,
.cfd-quantity input {
	display: grid !important;
	width: 100% !important;
	height: 27px !important;
	margin: 0 !important;
	padding: 0 !important;
	place-items: center;
	color: #344054 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-align: center;
	background: #fff !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.cfd-quantity button:first-child {
	border-radius: 7px 0 0 7px !important;
}

.cfd-quantity button:last-child {
	border-radius: 0 7px 7px 0 !important;
}

.cfd-quantity input {
	border-right: 0 !important;
	border-left: 0 !important;
	-moz-appearance: textfield;
}

.cfd-quantity input::-webkit-inner-spin-button,
.cfd-quantity input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.cfd-quote-button {
	width: 100%;
	margin-top: 13px !important;
	background: var(--cfd-quote) !important;
}

.cfd-empty {
	display: grid;
	justify-items: center;
	padding: 32px 18px;
	color: #667085;
	text-align: center;
	background: #f8fafc;
	border: 1px dashed #d0d5dd;
	border-radius: 14px;
}

.cfd-empty svg {
	width: 38px;
	height: 38px;
	margin-bottom: 9px;
	fill: none;
	stroke: var(--cfd-quote);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cfd-empty strong {
	color: #344054;
	font-size: 14px;
}

.cfd-empty p {
	margin: 4px 0 0 !important;
	font-size: 12px;
}

.cfd-quote-item.is-updating {
	opacity: .5;
	pointer-events: none;
}

.cfd-loading {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: none;
	place-items: center;
	background: rgba(255, 255, 255, .58);
	pointer-events: none;
}

.cfd-loading span {
	width: 32px;
	height: 32px;
	border: 3px solid #d0d5dd;
	border-top-color: var(--cfd-quote);
	border-radius: 50%;
	animation: cfd-spin .7s linear infinite;
}

.cfd-is-loading .cfd-loading {
	display: grid;
}

html.cfd-cart-open {
	overflow: hidden;
}

@keyframes cfd-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
	.cfd-root,
	.cfd-root.cfd-position-left {
		right: max(10px, env(safe-area-inset-right));
		bottom: max(10px, env(safe-area-inset-bottom));
		left: max(10px, env(safe-area-inset-left));
		display: flex;
		justify-content: flex-end;
	}

	.cfd-launcher {
		max-width: 100%;
	}

	.cfd-launcher-button {
		min-height: 54px;
		padding: 8px 11px !important;
	}

	.cfd-panel,
	.cfd-position-left .cfd-panel {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: min(86vh, 720px);
		max-height: min(86dvh, 720px);
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 22px 22px 0 0;
		opacity: 1;
		transform: translateY(105%);
		transform-origin: bottom center;
		transition: transform .27s ease;
	}

	.cfd-root.is-open .cfd-panel {
		transform: translateY(0);
	}

	.cfd-panel::before {
		display: block;
		width: 42px;
		height: 4px;
		margin: 8px auto -4px;
		content: '';
		background: #d0d5dd;
		border-radius: 999px;
	}

	.cfd-panel-header {
		padding: 15px 17px 13px;
	}

	.cfd-panel-header h2 {
		font-size: 19px !important;
	}

	.cfd-tabs {
		padding: 8px 10px;
	}

	.cfd-panel-body {
		padding-bottom: max(4px, env(safe-area-inset-bottom));
	}
}

@media (max-width: 380px) {
	.cfd-launcher-button {
		gap: 5px;
		padding: 8px 9px !important;
		font-size: 10px !important;
	}

	.cfd-launcher-button > span {
		max-width: 67px;
	}

	.cfd-launcher-button svg {
		flex-basis: 19px;
		width: 19px;
		height: 19px;
	}

	.cfd-root .woocommerce-mini-cart-item,
	.cfd-quote-item {
		grid-template-columns: 60px minmax(0, 1fr) 30px;
		gap: 8px;
	}

	.cfd-root .woocommerce-mini-cart-item > a:not(.remove) {
		grid-template-columns: 60px minmax(0, 1fr);
		gap: 8px;
	}

	.cfd-root .woocommerce-mini-cart-item .quantity {
		margin-left: 68px;
	}

	.cfd-root .woocommerce-mini-cart-item img,
	.cfd-item-image img {
		width: 60px !important;
		height: 58px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cfd-root *,
	.cfd-root *::before,
	.cfd-root *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
