.ccp-quick-cart, .ccp-delivery {
	--ccp-cart-ink: #1e3b54;
	--ccp-cart-blue: #446484;
	--ccp-cart-paper: #fbf8f2;
	--ccp-cart-line: #dfd6cc;
	--ccp-cart-link: #95432d;
	color: var(--ccp-cart-ink);
	font: 400 .875rem/1.5 Poppins, sans-serif;
}

.ccp-quick-cart {
	box-sizing: border-box;
	position: fixed;
	inset: 0 0 0 auto;
	width: min(100%, 28rem);
	max-width: none;
	height: 100%;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--ccp-cart-paper);
	box-shadow: -12px 0 34px rgb(23 41 59 / .16);
}

.ccp-quick-cart[open] { display: flex; flex-direction: column; }
.ccp-quick-cart::backdrop { background: rgb(21 34 47 / .53); }
.ccp-quick-cart [hidden], .ccp-cart-count[hidden] { display: none; }
.ccp-quick-cart .ccp-quick-cart-foot a[hidden], a.ccp-cart-fab[hidden] { display: none; }
body:has(.ccp-quick-cart[open]) { overflow: hidden; }

.ccp-quick-cart-head, .ccp-quick-cart-content, .ccp-quick-cart-foot {
	padding-inline: clamp(16px, 5vw, 24px);
}

.ccp-quick-cart-head {
	display: flex;
	min-height: 72px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--ccp-cart-line);
}

.ccp-quick-cart .ccp-quick-cart-head h2 {
	margin: 0;
	color: var(--ccp-cart-ink);
	font: 400 1.8rem/1.1 Marcellus, Georgia, serif;
}

.ccp-quick-cart-content {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding-block: 18px;
}

.ccp-cart-status { margin: 0 0 12px; }
.ccp-cart-status:empty { display: none; }
.ccp-cart-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ccp-cart-items:empty { display: none; }
.ccp-cart-items[aria-busy="true"] { opacity: .7; }

.ccp-cart-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--ccp-cart-line);
	border-radius: 10px;
	background: #fff;
}

.ccp-cart-image { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 6px; object-fit: cover; background: #efe7db; }
.ccp-cart-details { min-width: 0; flex: 1 1 auto; }
.ccp-quick-cart .ccp-cart-product { color: var(--ccp-cart-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ccp-cart-format { margin: 2px 0 0; color: #435b70; font-size: .75rem; }
.ccp-cart-line-total { flex: 0 0 auto; white-space: nowrap; }
.ccp-cart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 4px; }
.ccp-cart-quantity { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }

.ccp-quick-cart button:is(.ccp-cart-control,.ccp-cart-close) {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ccp-cart-ink);
	font: 500 1.22rem/1 Poppins, sans-serif;
	cursor: pointer;
}

.ccp-quick-cart button:is(.ccp-cart-control,.ccp-cart-close):is(:hover,:focus-visible) { background: #f0e9df; color: var(--ccp-cart-ink); }
.ccp-quick-cart button.ccp-cart-control:disabled { opacity: .44; cursor: default; }
.ccp-quick-cart :is(button,a):focus-visible { outline: 2px solid var(--ccp-cart-link); outline-offset: 2px; }

.ccp-delivery {
	padding: 14px;
	border: 1px solid var(--ccp-cart-line);
	border-radius: 10px;
	background: #f6f1e8;
}

.ccp-quick-cart .ccp-delivery { margin-top: 16px; }
.ccp-delivery-full { margin: 10px 0 16px; }
.ccp-delivery .ccp-delivery-next { margin: 0 0 8px; font-size: .875rem; font-weight: 600; }
.ccp-delivery .ccp-delivery-reference { margin: 0; color: #475b6d; font-size: .75rem; }
.ccp-delivery progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 10px; accent-color: var(--ccp-cart-blue); background: #ded8ce; }
.ccp-delivery progress[hidden], .ccp-delivery .ccp-delivery-reference[hidden] { display: none; }
.ccp-delivery progress::-webkit-progress-bar { border-radius: 10px; background: #ded8ce; }
.ccp-delivery progress::-webkit-progress-value { border-radius: 10px; background: var(--ccp-cart-blue); }
.ccp-delivery progress::-moz-progress-bar { border-radius: 10px; background: var(--ccp-cart-blue); }
.ccp-delivery .ccp-delivery-steps { position: relative; min-height: 2.25rem; margin: 8px 0 0; padding: 0; list-style: none; }
.ccp-delivery-steps li { position: absolute; inset-block-start: 0; color: #475b6d; font-size: .75rem; text-align: center; }
.ccp-delivery-steps li:first-child { left: 20%; transform: translateX(-50%); }
.ccp-delivery-steps li:nth-child(2) { left: 60%; transform: translateX(-50%); }
.ccp-delivery-steps li:last-child { right: 0; text-align: right; }
.ccp-delivery-steps :is(strong,span) { display: block; }
.ccp-delivery-steps .is-reached strong { color: var(--ccp-cart-ink); }

.ccp-quick-cart-foot {
	display: grid;
	gap: 8px;
	padding-top: 14px;
	padding-bottom: max(14px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--ccp-cart-line);
	background: #fff;
}

.ccp-cart-total { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-weight: 500; }
.ccp-cart-total strong { font-size: 1.1rem; }
.ccp-cart-discount { margin: 2px 0; color: #435b70; font-size: .78rem; }
.ccp-quick-cart .ccp-quick-cart-foot a { display: grid; place-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ccp-cart-blue); border-radius: 6px; color: var(--ccp-cart-ink); font-weight: 500; text-decoration: none; }
.ccp-quick-cart .ccp-quick-cart-foot :is(.ccp-cart-payment,.ccp-cart-shop) { color: #fff; background: var(--ccp-cart-blue); }
.ccp-quick-cart .ccp-quick-cart-foot a:hover { background: var(--ccp-cart-ink); color: #fff; }
.ccp-cart-trigger { position: relative; }
.ccp-cart-count { position: absolute; z-index: 1; inset: -.4rem -.48rem auto auto; min-width: 1.15rem; min-height: 1.15rem; padding: 0 .22rem; border-radius: 2rem; background: #1e3b54; color: #fff; font: 600 .65rem/1.15rem Poppins, sans-serif; text-align: center; pointer-events: none; }
.cc-mobile-bar .ccp-cart-count { inset: 3px auto auto calc(50% + 6px); }
a.ccp-cart-fab { position: fixed; z-index: 20; inset: auto 24px 24px auto; padding: 11px 20px; border-radius: 6px; background: #446484; color: #fff; font: 500 .875rem/1.5 Poppins, sans-serif; text-decoration: none; }
a.ccp-cart-fab:hover { background: #1e3b54; color: #fff; }
a.ccp-cart-fab:focus-visible { outline: 2px solid #95432d; outline-offset: 3px; }
@media (max-width: 860px) { a.ccp-cart-fab { display: none; } }
