/**
 * Decorrect WooCommerce — a kosárfiók.
 *
 * Sizes are in px and em, never rem. Automatic.css sets
 * `html { font-size: 62.5% !important }` on these sites, so 1rem is 10px here
 * and 16px on a site without it — a stylesheet that shipped rem would be two
 * different drawers depending on where it landed.
 *
 * Reskinning is overriding the tokens on `.dcw-cart`, not rewriting the rules
 * below.
 */

/*
 * Every colour is an Automatic.css variable first and a literal only as the
 * last resort, so the drawer wears the shop's palette where there is one and
 * still looks finished where there is not.
 *
 * The variables named here are the ones this build of ACSS actually defines —
 * checked in the browser, not assumed. `--action` is **not** one of them, and
 * naming it cost the drawer its match: the checkout button fell through to the
 * literal and painted #17181c while every button on the site was pure black.
 * A token that names a variable the shop has never heard of is a hard-coded
 * colour wearing a costume. Before adding one, resolve it on the site.
 *
 * `--text-color` is what the body is actually painted with here, so it leads
 * for ink, with `--primary` behind it for an ACSS build that omits it. The
 * warm neutrals come from the `--base` family, which is the shop's own warm
 * grey — the literals below were eyeballed towards it before this and land
 * within a shade of it.
 */
.dcw-cart {
	--dcw-ink: var(--text-color, var(--primary, #17181c));
	--dcw-muted: var(--neutral-semi-dark, #77756f);
	--dcw-line: var(--base, #e7e5e1);
	--dcw-line-strong: var(--base-light, #d6d4cf);
	--dcw-panel-bg: var(--body-bg-color, #fff);
	--dcw-hover: var(--base-ultra-light, #f5f3ef);
	--dcw-thumb-bg: var(--base-ultra-light, #f5f3ef);
	--dcw-accent: var(--primary, #17181c);
	--dcw-accent-ink: var(--white, #fff);
	/* Not ACSS --success: 2.9:1 on the saving band. 4.8:1 there, 5.2:1 on white. */
	--dcw-save: #2f7a55;
	--dcw-save-bg: var(--success-ultra-light, rgba(47, 122, 85, 0.08));
	--dcw-danger: var(--danger, #b3261e);
	--dcw-danger-bg: var(--danger-ultra-light, rgba(179, 38, 30, 0.08));
	/* Not an ACSS token: the sibling search bar is 8px and they sit together. */
	--dcw-radius: 8px;
	--dcw-width: 420px;
	/* An overlay is not a palette colour, so this one stays a literal. */
	--dcw-shadow: -18px 0 46px rgba(17, 18, 22, 0.16);
	--dcw-scrim: rgba(17, 18, 22, 0.42);

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: block;
	color: var(--dcw-ink);
	font-size: 15px;
	line-height: 1.45;
}

.dcw-cart[hidden] {
	display: none;
}

.dcw-cart *,
.dcw-cart *::before,
.dcw-cart *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
 * 1. The shell
 * ------------------------------------------------------------------------ */

.dcw-cart__scrim {
	position: absolute;
	inset: 0;
	background: var(--dcw-scrim);
	opacity: 0;
	transition: opacity 0.24s ease;
}

.dcw-cart__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: flex;
	flex-direction: column;
	width: min(var(--dcw-width), 100vw);
	max-width: 100%;
	background: var(--dcw-panel-bg);
	box-shadow: var(--dcw-shadow);
	transform: translateX(100%);
	transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.dcw-cart.is-open .dcw-cart__scrim {
	opacity: 1;
}

.dcw-cart.is-open .dcw-cart__panel {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.dcw-cart__scrim,
	.dcw-cart__panel {
		transition: none;
	}
}

.dcw-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--dcw-line);
}

.dcw-cart__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.dcw-cart__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: var(--dcw-hover);
	border-radius: 11px;
	color: var(--dcw-muted);
	font-size: 12px;
	font-weight: 600;
}

.dcw-cart__count[hidden] {
	display: none;
}

.dcw-cart__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: var(--dcw-muted);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.dcw-cart__close:hover,
.dcw-cart__close:focus-visible {
	background: var(--dcw-hover);
	color: var(--dcw-ink);
}

.dcw-cart__close svg {
	width: 18px;
	height: 18px;
}

.dcw-cart__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.dcw-cart__loading {
	margin: 0;
	padding: 28px 20px;
	color: var(--dcw-muted);
	font-size: 14px;
}

.dcw-cart__foot {
	flex: 0 0 auto;
	padding: 16px 20px 20px;
	border-top: 1px solid var(--dcw-line);
	background: var(--dcw-panel-bg);
}

.dcw-cart__foot[hidden] {
	display: none;
}

/* ---------------------------------------------------------------------------
 * 2. The lines
 * ------------------------------------------------------------------------ */

.dcw-cart__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcw-cart__item {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--dcw-line);
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.dcw-cart__item:hover {
	background: var(--dcw-hover);
}

.dcw-cart__item.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

/*
 * The picture is as tall as its line, the way the checkout's order summary
 * draws it: the box stretches with the grid row, and the photo is cropped to
 * it rather than fitted, since `contain` left a band of empty box above and
 * below every portrait bottle once the line grew past 80px.
 *
 * The stretched height is not one the image can take a percentage of while
 * the row is still being sized, so it would push the row to its own
 * proportions instead. Positioned absolutely, it adds nothing to the row and
 * `inset: 0` is exactly the box. `min-height` keeps a short line at the old
 * size.
 */
.dcw-cart__thumb {
	position: relative;
	display: block;
	width: 64px;
	min-height: 80px;
	overflow: hidden;
	background: var(--dcw-thumb-bg);
	border-radius: 6px;
}

.dcw-cart__thumb img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
}

.dcw-cart__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	/* Room for the delete button, so a long name never runs underneath it. */
	padding-inline-end: 28px;
}

.dcw-cart__name {
	margin: 0;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
}

a.dcw-cart__name:hover {
	text-decoration: underline;
}

/* The shop's labels over a name: Selection, Csomag. Used in the cart lines and
   in the recommendations alike, so it is written once here. */
.dcw-cart__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.dcw-cart__badge {
	display: inline-flex;
	align-items: center;
	min-height: 18px;
	padding: 1px 7px;
	background: var(--dcw-hover);
	border: 1px solid var(--dcw-line-strong);
	border-radius: 999px;
	color: var(--dcw-ink);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}

/* The product card's Selection gold, so the same wine wears the same badge in
   the shop and in the cart: `.product-card__badge--selection` in etch_styles.
   Literal rather than an ACSS variable because ACSS has no gold. */
.dcw-cart__badge--gold {
	background: #fff;
	border-color: #b08d2e;
	color: #8a6a12;
}

.dcw-cart__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
}

.dcw-cart__was {
	color: var(--dcw-muted);
	text-decoration: line-through;
}

/* "Silver:" before the club price. The colour per tier comes from the site
   (--szint-szoveg-aa on .dcw-cart__tier--{role}); without one it is the ink.
   It sits closer to its price than the struck price does. */
.dcw-cart__tier {
	margin-inline-end: -4px;
	color: var(--szint-szoveg-aa, currentColor);
	font-weight: 600;
}

.dcw-cart__now {
	font-weight: 600;
}

.dcw-cart__now del {
	display: none;
}

.dcw-cart__now ins {
	text-decoration: none;
}

/* The site's line under the price (`note`): a deposit, a levy. */
.dcw-cart__note {
	display: block;
	font-size: 12px;
	line-height: 1.3;
	color: var(--dcw-muted);
}

.dcw-cart__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 2px;
}

.dcw-cart__line {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

/* The quantity stepper. */

.dcw-cart__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--dcw-line-strong);
	border-radius: 999px;
}

.dcw-cart__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: var(--dcw-ink);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.dcw-cart__step:hover:not(:disabled) {
	background: var(--dcw-line);
}

.dcw-cart__step:disabled {
	color: var(--dcw-muted);
	cursor: default;
	opacity: 0.45;
}

.dcw-cart__step svg {
	width: 13px;
	height: 13px;
}

/*
 * The number is a text field you can type into, dressed as the label it used
 * to be: no border, no background, an outline only while focused. The doubled
 * class outweighs a theme's or a framework's global `input[type="text"]`.
 */
.dcw-cart__amount.dcw-cart__amount {
	box-sizing: border-box;
	width: 34px;
	min-width: 0;
	height: 28px;
	min-height: 0;
	margin: 0;
	padding: 0 2px;
	border: 0;
	border-radius: 6px;
	background: none;
	box-shadow: none;
	color: var(--dcw-ink);
	font-family: inherit;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	appearance: none;
}

.dcw-cart__amount.dcw-cart__amount:hover {
	background: var(--dcw-line);
}

.dcw-cart__amount.dcw-cart__amount:focus {
	outline: 2px solid var(--dcw-ink);
	outline-offset: -2px;
	background: none;
}

/* Below 16px iOS zooms the page in on a focused field. */
@media (pointer: coarse) {
	.dcw-cart__amount.dcw-cart__amount {
		font-size: 16px;
	}
}

/*
 * The delete button. Hidden until the row is hovered, as asked — but shown for
 * anyone moving through the drawer with a keyboard (`:focus-visible`) and on
 * touch, where there is no hover and an invisible control is simply a missing
 * one.
 */

.dcw-cart__remove {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: var(--dcw-muted);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.dcw-cart__item:hover .dcw-cart__remove,
.dcw-cart__remove:focus-visible {
	opacity: 1;
}

.dcw-cart__remove:hover,
.dcw-cart__remove:focus-visible {
	background: var(--dcw-panel-bg);
	color: var(--dcw-danger);
}

.dcw-cart__remove svg {
	width: 15px;
	height: 15px;
}

@media (hover: none) {
	.dcw-cart__remove {
		opacity: 1;
	}
}

/*
 * A line just taken out: one quiet row in its place, "Név törölve" and a
 * "Visszavonás" button, with a hairline under it running out over the time
 * the script keeps it (`GONE_MS`, handed over as `--dcw-gone-duration`). The
 * countdown pauses under the pointer or focus, the same as the script's timer.
 *
 * Motion, all of it small: the row opens from nothing where the line was and
 * its contents rise into it (`is-new`, first drawing only); it folds shut
 * when its time is up (`is-leaving`); a line brought back glows once
 * (`.dcw-cart__item.is-restored`). The fold is a `max-height`, since the row
 * is one line and the real height cannot be transitioned to `0`.
 */
.dcw-cart__gone {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	max-height: 80px;
	padding: 10px 14px 10px 20px;
	border-bottom: 1px solid var(--dcw-line);
	color: var(--dcw-muted);
	font-size: 13px;
	line-height: 1.4;
	transition: opacity 0.25s ease, max-height 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
}

.dcw-cart__gone.is-new {
	overflow: hidden;
	animation: dcw-gone-open 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.dcw-cart__gone.is-new > * {
	animation: dcw-gone-rise 0.36s cubic-bezier(0.2, 0.7, 0.2, 1) 0.06s both;
}

.dcw-cart__gone::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: -1px;
	width: 100%;
	height: 1px;
	background: var(--dcw-line-strong);
	transform-origin: left center;
	animation: dcw-gone-time var(--dcw-gone-duration, 10s) linear both;
	animation-delay: var(--dcw-gone-elapsed, 0ms);
}

.dcw-cart__gone:hover::after,
.dcw-cart__gone:focus-within::after {
	animation-play-state: paused;
}

.dcw-cart__gone.is-leaving {
	overflow: hidden;
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-bottom-color: transparent;
	opacity: 0;
}

.dcw-cart__item.is-restored {
	animation: dcw-restored 1.4s ease both;
}

.dcw-cart__gone.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.dcw-cart__gone.is-failed {
	color: var(--dcw-danger);
}

.dcw-cart__gone.is-failed::after {
	content: none;
}

.dcw-cart__gone-text {
	display: flex;
	flex: 1;
	min-width: 0;
	white-space: pre;
}

.dcw-cart__gone.is-failed .dcw-cart__gone-text {
	white-space: normal;
}

.dcw-cart__gone-name {
	min-width: 0;
	overflow: hidden;
	color: var(--dcw-ink);
	text-overflow: ellipsis;
}

.dcw-cart__undo {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 10px 0 8px;
	background: none;
	border: 0;
	border-radius: 999px;
	color: var(--dcw-ink);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.dcw-cart__undo:hover,
.dcw-cart__undo:focus-visible {
	background: var(--dcw-hover);
}

.dcw-cart__undo:focus-visible {
	outline: 2px solid var(--dcw-ink);
	outline-offset: 1px;
}

.dcw-cart__undo svg {
	width: 15px;
	height: 15px;
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The arrow leans back a little under the pointer: this is the way back. */
.dcw-cart__undo:hover svg,
.dcw-cart__undo:focus-visible svg {
	transform: rotate(-40deg);
}

@keyframes dcw-gone-open {
	from {
		max-height: 0;
		padding-top: 0;
		padding-bottom: 0;
		opacity: 0;
	}
}

@keyframes dcw-gone-rise {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
}

@keyframes dcw-restored {
	0% {
		background-color: var(--dcw-hover);
		opacity: 0.4;
	}

	25% {
		opacity: 1;
	}

	100% {
		background-color: transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcw-cart__gone,
	.dcw-cart__gone.is-new,
	.dcw-cart__gone.is-new > *,
	.dcw-cart__item.is-restored,
	.dcw-cart__undo svg {
		animation: none;
		transition: opacity 0.2s ease;
	}

	.dcw-cart__undo:hover svg,
	.dcw-cart__undo:focus-visible svg {
		transform: none;
	}
}

@keyframes dcw-gone-time {
	to {
		transform: scaleX(0);
	}
}

/* ---------------------------------------------------------------------------
 * 3. The empty state
 * ------------------------------------------------------------------------ */

.dcw-cart__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 56px 28px 40px;
	text-align: center;
}

.dcw-cart__empty-icon {
	width: 88px;
	height: 88px;
	margin-bottom: 4px;
	color: var(--dcw-line-strong);
	stroke-width: 2.2;
}

.dcw-cart__empty-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.dcw-cart__empty-text {
	max-width: 24em;
	margin: 0;
	color: var(--dcw-muted);
	font-size: 14px;
}

.dcw-cart__empty .dcw-cart__button {
	margin-top: 10px;
	min-width: 220px;
}

/* ---------------------------------------------------------------------------
 * 4. The summary
 * ------------------------------------------------------------------------ */

.dcw-cart__sum {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 600;
}

.dcw-cart__sum-value {
	font-size: 17px;
}

/* Charged on top of the sum (a deposit), so quieter than it. */
.dcw-cart__extra {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
	font-size: 14px;
}

.dcw-cart__extra-detail {
	color: var(--dcw-muted);
	font-size: 13px;
	white-space: nowrap;
}

.dcw-cart__extra-value {
	flex: none;
	font-weight: 600;
}

/* The last charge sat on the checkout button with only its own 4px. */
.dcw-cart__extra + .dcw-cart__actions {
	margin-top: 14px;
}

.dcw-cart__saving {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0 14px;
	padding: 8px 12px;
	background: var(--dcw-save-bg);
	border-radius: 6px;
	color: var(--dcw-save);
	font-size: 13px;
	font-weight: 600;
}

.dcw-cart__saving-label {
	font-weight: 500;
}

.dcw-cart__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dcw-cart__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--dcw-radius);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.dcw-cart__button--primary {
	gap: 9px;
	background: var(--dcw-accent);
	color: var(--dcw-accent-ink);
}

.dcw-cart__button--primary svg {
	flex: none;
	width: 20px;
	height: 20px;
}

.dcw-cart__button--primary:hover,
.dcw-cart__button--primary:focus-visible {
	color: var(--dcw-accent-ink);
	opacity: 0.88;
}

.dcw-cart__button--ghost {
	background: none;
	border-color: var(--dcw-line-strong);
	color: var(--dcw-ink);
}

.dcw-cart__button--ghost:hover,
.dcw-cart__button--ghost:focus-visible {
	background: var(--dcw-hover);
	color: var(--dcw-ink);
}

.dcw-cart__error {
	margin: 0 0 12px;
	padding: 8px 12px;
	background: var(--dcw-danger-bg);
	border-radius: 6px;
	color: var(--dcw-danger);
	font-size: 13px;
}

/* ---------------------------------------------------------------------------
 * 5. The recommendations
 * ------------------------------------------------------------------------ */

/*
 * `display` and `gap` are declared here and are not decoration.
 *
 * Automatic.css ships `:where(section:not(section section)) { display: flex;
 * flex-direction: column; gap: var(--container-gap); padding-inline:
 * var(--gutter) }`, and because `:where()` has no specificity it loses to every
 * rule in this file — but only for the properties this file actually names.
 * Leave `display` out and the shop's own container gap lands between the
 * heading and the list: a 57px hole that appears on an ACSS site and on no
 * other, which is how it was found. Any block this drawer owns says what it is.
 */
.dcw-cart__suggest {
	display: block;
	gap: 0;
	padding: 18px 20px 24px;
	background: var(--dcw-hover);
}

.dcw-cart__suggest-title {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dcw-muted);
}

.dcw-cart__suggest-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcw-cart__suggest-item {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: var(--dcw-panel-bg);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius);
	transition: opacity 0.15s ease;
}

.dcw-cart__suggest-item.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.dcw-cart__suggest-thumb {
	position: relative;
	display: block;
	/* As tall as the card's content, like a cart line's picture (see
	   `.dcw-cart__thumb`); the item centres its other columns. */
	align-self: stretch;
	width: 44px;
	min-height: 54px;
	overflow: hidden;
	background: var(--dcw-thumb-bg);
	border-radius: 4px;
}

.dcw-cart__suggest-thumb img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
}

.dcw-cart__suggest-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dcw-cart__suggest-name {
	color: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.dcw-cart__suggest-name:hover {
	text-decoration: underline;
}

.dcw-cart__suggest-price {
	color: var(--dcw-muted);
	font-size: 12px;
}

/* No fading on top of the muted grey: at 70% it was 3.4:1 (WCAG AA wants 4.5). */
.dcw-cart__suggest-price del {
	margin-inline-end: 4px;
}

.dcw-cart__suggest-price ins {
	text-decoration: none;
	font-weight: 600;
}

.dcw-cart__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 34px;
	padding: 6px 12px;
	background: var(--dcw-accent);
	border: 1px solid var(--dcw-accent);
	border-radius: 999px;
	color: var(--dcw-accent-ink);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.dcw-cart__add:hover,
.dcw-cart__add:focus-visible {
	color: var(--dcw-accent-ink);
	opacity: 0.88;
}

.dcw-cart__add--link {
	background: none;
	border-color: var(--dcw-line-strong);
	color: var(--dcw-ink);
}

.dcw-cart__add--link:hover,
.dcw-cart__add--link:focus-visible {
	color: var(--dcw-ink);
}

.dcw-cart__add svg {
	width: 13px;
	height: 13px;
}

.dcw-cart__add.is-done {
	background: var(--dcw-save);
	border-color: var(--dcw-save);
	color: var(--dcw-accent-ink);
}

/* ---------------------------------------------------------------------------
 * 6. The button that opens it
 * ------------------------------------------------------------------------ */

.dcw-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.dcw-cart-toggle__icon {
	width: 24px;
	height: 24px;
}

.dcw-cart-toggle__count {
	position: absolute;
	top: -6px;
	inset-inline-end: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--dcw-cart-badge, var(--primary, #17181c));
	border-radius: 9px;
	color: var(--dcw-cart-badge-ink, var(--white, #fff));
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.dcw-cart-toggle__count[hidden] {
	display: none;
}

/* The body does not scroll behind an open drawer. */

body.dcw-cart-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * 7. Narrow screens
 * ------------------------------------------------------------------------ */

@media (max-width: 480px) {
	.dcw-cart {
		--dcw-width: 100vw;
	}

	.dcw-cart__item {
		grid-template-columns: 56px 1fr;
		gap: 12px;
		padding: 14px 16px;
	}

	.dcw-cart__thumb {
		width: 56px;
		min-height: 70px;
	}

	.dcw-cart__head,
	.dcw-cart__suggest {
		padding-inline: 16px;
	}

	.dcw-cart__foot {
		padding: 14px 16px 18px;
	}
}
