.ctzb {
	--ctzb-green: var(--bs-color-primary, #2e4239);
	--ctzb-cream: var(--bs-color-background, #fff9f3);
	--ctzb-accent: var(--bs-color-accent, #c4795f);
	--ctzb-border: var(--bs-color-border, #d7c1ae);
	--ctzb-pad: clamp(16px, 4vw, 26px);
	position: fixed;
	inset: 0 0 0 auto;
	margin: 0;
	border: 0;
	padding: 0;
	width: min(100%, 440px);
	max-width: 100%;
	height: 100vh;
	height: 100dvh;
	max-height: 100%;
	overflow: hidden;
	background: var(--ctzb-cream);
	color: var(--ctzb-green);
	font: 400 14px/1.5 var(--bs-font-body, Montserrat, system-ui, sans-serif);
}
.ctzb[open] { display: flex; flex-direction: column; }
.ctzb::backdrop { background: rgb(22 28 24 / 46%); backdrop-filter: blur(3px); }
html:has(.ctzb[open]) { overflow: hidden; }
.ctzb *, .ctzb *::before, .ctzb *::after { box-sizing: border-box; }
.ctzb .ctzb-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	padding: max(8px, env(safe-area-inset-top)) var(--ctzb-pad) 8px;
	border-bottom: 1px solid var(--ctzb-border);
}
.ctzb .ctzb-head h2 {
	margin: 0;
	color: inherit;
	font: 400 clamp(24px, 5vw, 31px)/1.2 var(--bs-font-heading, "The Seasons", Georgia, serif);
}
.ctzb .ctzb-scroll {
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--ctzb-border) transparent;
	padding: 14px var(--ctzb-pad) max(18px, env(safe-area-inset-bottom));
}
.ctzb .ctzb-status { margin: 0 0 8px; }
.ctzb .ctzb-status:empty, .ctzb .ctzb-meta:empty { display: none; }
.ctzb button.ctzb-plain {
	background: transparent !important;
	color: var(--ctzb-green) !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0;
	min-height: 0;
	font: inherit;
	cursor: pointer;
}
.ctzb button.ctzb-plain::before, .ctzb button.ctzb-plain::after { content: none !important; }
.ctzb button.ctzb-plain:disabled { cursor: default; opacity: .45; }
.ctzb button.ctzb-close { font-size: 26px; width: 44px; height: 44px; line-height: 1; }
.ctzb :is(a,button):focus-visible { outline: 2px solid var(--ctzb-green); outline-offset: 2px; }
.ctzb ul.ctzb-items { list-style: none; margin: 0; padding: 0; }
.ctzb .ctzb-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ctzb-border); }
.ctzb .ctzb-item > img { flex: none; width: clamp(56px, 16vw, 76px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 7px; align-self: start; }
.ctzb .ctzb-item-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ctzb p.ctzb-name { margin: 0; font-weight: 600; color: inherit; }
.ctzb .ctzb-meta { font-size: 12px; margin-top: 4px; }
.ctzb .ctzb-meta :is(dl,dt,dd,p) { display: inline; margin: 0; padding: 0; float: none; }
.ctzb .ctzb-meta dd::after { content: ""; display: block; }
.ctzb .ctzb-item-controls { display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: center; margin-top: 7px; }
.ctzb .ctzb-qty { display: flex; align-items: center; border: 1px solid var(--ctzb-border); border-radius: 24px; }
.ctzb .ctzb-qty button { width: 36px; height: 42px; font-size: 17px; }
.ctzb .ctzb-qty span { min-width: 20px; text-align: center; }
.ctzb button.ctzb-remove { min-height: 44px; font-size: 12px; text-decoration: underline; }
.ctzb .ctzb-price { margin-inline-start: auto; font-weight: 600; }
.ctzb dl.ctzb-summary { margin: 12px 0; padding: 0; }
.ctzb .ctzb-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.ctzb .ctzb-summary :is(dt,dd) { margin: 0; }
.ctzb .ctzb-summary dd { text-align: end; }
.ctzb .ctzb-summary .ctzb-total { font-weight: 600; font-size: 17px; border-top: 1px solid var(--ctzb-border); margin-top: 6px; padding-top: 10px; }
.ctzb a.ctzb-cta {
	display: grid;
	place-items: center;
	min-height: 46px;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--ctzb-accent);
	color: #231610 !important;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
}
.ctzb a.ctzb-cta:hover { filter: brightness(1.07); }
.ctzb button.ctzb-continue { display: block; min-height: 44px; margin-inline: auto !important; }
.ctzb .ctzb-empty p { margin: 6px 0 12px; }
@media (max-width: 640px) { .ctzb { width: 100%; } }

.ctzb a.ctzb-edit-cart { display: none; }
.ctzb[data-page="checkout"] :is(.ctzb-checkout, .ctzb-qty, .ctzb-remove) { display: none; }
.ctzb[data-page="checkout"] a.ctzb-edit-cart { display: grid; }
