/**
 * DCJ Cart Notice — the toast that says a piece has been added.
 *
 * The palette and the fonts are the shop's own (the theme's --theme-palette-color-*
 * and --theme-font-* variables), so the toast reads as part of the site.
 */

.dcj-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999998;
	width: min(420px, calc(100vw - 32px));
	pointer-events: none;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.dcj-toast.is-open {
	pointer-events: auto;
	opacity: 1;
	transform: translateY(0);
}

.dcj-toast__card {
	position: relative;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 18px 44px 18px 18px;
	background: #fff;
	border: 1px solid var(--theme-palette-color-2, #E8D5C4);
	border-top: 3px solid var(--theme-palette-color-3, #D4AF37);
	box-shadow: 0 22px 60px rgba(26, 22, 19, 0.18);
}

.dcj-toast__media {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	overflow: hidden;
	background: var(--theme-palette-color-7, #F8F3EE);
}

.dcj-toast__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dcj-toast__body {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--theme-body-font-family, Montserrat, Sans-Serif);
	color: var(--theme-text-color, #2B2723);
}

.dcj-toast__eyebrow {
	margin: 0 0 2px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--theme-palette-color-5, #734B00);
}

.dcj-toast__name {
	margin: 0 0 4px;
	font-family: var(--theme-heading-font-family, Cormorant Garamond, serif);
	font-size: 20px;
	line-height: 1.25;
	color: var(--theme-headings-color, #1A1613);
}

.dcj-toast__meta {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
}

.dcj-toast__count {
	opacity: 0.65;
}

.dcj-toast__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
}

.dcj-toast__checkout {
	display: inline-block;
	padding: 9px 20px;
	background: var(--theme-palette-color-5, #734B00);
	border: 1px solid var(--theme-palette-color-5, #734B00);
	color: #fff !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dcj-toast__checkout:hover,
.dcj-toast__checkout:focus-visible {
	background: var(--theme-palette-color-3, #D4AF37);
	border-color: var(--theme-palette-color-3, #D4AF37);
	color: var(--theme-palette-color-8, #1A1613) !important;
}

.dcj-toast__cart {
	font-size: 12px;
	font-weight: 500;
	color: var(--theme-palette-color-5, #734B00);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dcj-toast__cart:hover {
	color: var(--theme-palette-color-3, #D4AF37);
}

.dcj-toast__close {
	position: absolute;
	top: 4px;
	right: 6px;
	padding: 2px 8px;
	border: 0;
	background: transparent;
	color: var(--theme-palette-color-5, #734B00);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.dcj-toast__close:hover,
.dcj-toast__close:focus-visible {
	color: var(--theme-palette-color-3, #D4AF37);
}

@media (max-width: 600px) {
	.dcj-toast {
		right: 12px;
		left: 12px;
		bottom: 12px;
		width: auto;
	}

	.dcj-toast__card {
		padding: 14px 40px 14px 14px;
	}

	.dcj-toast__media {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}

	.dcj-toast__name {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcj-toast {
		transition: none;
	}
}
