:root {
	--cacao-restock-ink: #34231c;
	--cacao-restock-muted: #725f55;
	--cacao-restock-caramel: #a96835;
	--cacao-restock-caramel-dark: #7e4723;
	--cacao-restock-cream: #fff9f1;
	--cacao-restock-line: rgba(93, 54, 32, .16);
}

.cacao-restock-entry { box-sizing: border-box; color: var(--cacao-restock-ink); }

.cacao-restock-entry--detail {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	margin: 0 0 24px;
	padding: 20px 22px;
	border: 1px solid var(--cacao-restock-line);
	border-radius: 18px;
	background: radial-gradient(circle at 92% 18%, rgba(205, 151, 96, .2), transparent 34%), linear-gradient(135deg, #fffdf9 0%, var(--cacao-restock-cream) 100%);
	box-shadow: 0 12px 34px rgba(67, 39, 24, .09);
}

.cacao-restock-entry__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #f2dfc9;
	color: var(--cacao-restock-caramel-dark);
}

.cacao-restock-entry__icon svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.cacao-restock-entry__copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.cacao-restock-entry__copy strong { font-size: 18px; line-height: 1.25; }
.cacao-restock-entry__copy > span:not(.cacao-restock-entry__eyebrow):not(.cacao-restock-date) { color: var(--cacao-restock-muted); font-size: 14px; line-height: 1.45; }

.cacao-restock-entry__eyebrow {
	color: var(--cacao-restock-caramel-dark);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cacao-restock-date {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: 5px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #efe4d7;
	color: #634630;
	font-size: 12px;
	font-weight: 650;
}

.cacao-restock-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 18px;
	border: 1px solid var(--cacao-restock-caramel-dark);
	border-radius: 999px;
	background: var(--cacao-restock-caramel-dark);
	box-shadow: 0 7px 18px rgba(97, 53, 27, .18);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: none;
	transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cacao-restock-button:hover,
.cacao-restock-button:focus-visible {
	border-color: var(--cacao-restock-caramel);
	background: var(--cacao-restock-caramel);
	box-shadow: 0 9px 24px rgba(97, 53, 27, .24);
	color: #fff;
	transform: translateY(-1px);
}

.cacao-restock-button:focus-visible,
.cacao-restock-close:focus-visible,
.cacao-restock-card button:focus-visible,
.cacao-restock-card input:focus-visible,
.cacao-restock-consent input:focus-visible { outline: 3px solid rgba(169, 104, 53, .3); outline-offset: 2px; }

.cacao-restock-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.cacao-restock-product--waiting { opacity: 1 !important; }
.cacao-restock-product--waiting > .uk-position-relative img,
.cacao-restock-product--waiting > .uk-overflow-hidden img { filter: saturate(.72); }

.cacao-restock-entry--compact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid var(--cacao-restock-line);
	border-radius: 13px;
	background: linear-gradient(135deg, #fffaf4, #f8eee3);
}

.cacao-restock-entry--compact .cacao-restock-entry__copy { gap: 1px; }
.cacao-restock-entry--compact .cacao-restock-entry__copy strong { font-size: 13px; }
.cacao-restock-entry--compact .cacao-restock-date { margin-top: 2px; padding: 0; background: transparent; font-size: 11px; }
.cacao-restock-entry--compact .cacao-restock-button { min-height: 36px; flex: 0 0 auto; padding: 0 13px; font-size: 12px; }
tr.cacao-restock-product--waiting .cacao-restock-entry--compact { min-width: 235px; margin: 8px 0 0; }

.cacao-restock-modal[hidden] { display: none; }
.cacao-restock-modal { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 20px; }
.cacao-restock-backdrop { position: absolute; inset: 0; background: rgba(30, 19, 14, .7); backdrop-filter: blur(5px); }

.cacao-restock-dialog {
	position: relative;
	width: min(820px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	box-sizing: border-box;
	padding: 32px;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 22px;
	background: #fffdf9;
	box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
	color: var(--cacao-restock-ink);
}

.cacao-restock-dialog__heading { padding-right: 44px; }
.cacao-restock-dialog__eyebrow { display: block; margin-bottom: 5px; color: var(--cacao-restock-caramel-dark); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.cacao-restock-dialog h2 { margin: 0; color: var(--cacao-restock-ink); font-size: clamp(25px, 4vw, 34px); line-height: 1.14; }
.cacao-restock-product-name { margin: 14px 0 8px; padding: 10px 13px; border-radius: 11px; background: #f5ece2; color: #593d2e; font-weight: 650; }
.cacao-restock-dialog__lead { margin: 0; color: var(--cacao-restock-muted); }

.cacao-restock-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--cacao-restock-line);
	border-radius: 50%;
	background: #fff;
	color: var(--cacao-restock-ink);
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.cacao-restock-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 20px 0;
	padding: 13px 14px;
	border-radius: 11px;
	background: #f7f2ec;
	font-size: 13px;
	line-height: 1.45;
}

.cacao-restock-consent input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--cacao-restock-caramel-dark); }
.cacao-restock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.cacao-restock-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 17px;
	border: 1px solid var(--cacao-restock-line);
	border-radius: 15px;
	background: #fff;
	transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.cacao-restock-card.is-active { border-color: #4a8a64; background: #f2faf5; }
.cacao-restock-card.is-unavailable { opacity: .55; }
.cacao-restock-card__title { display: flex; align-items: center; gap: 9px; }
.cacao-restock-card__icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #efe2d5; color: var(--cacao-restock-caramel-dark); font-size: 12px; font-weight: 800; }
.cacao-restock-card h3 { margin: 0; font-size: 17px; }
.cacao-restock-status { min-height: 38px; margin: 10px 0; color: var(--cacao-restock-muted); font-size: 12px; line-height: 1.4; }
.cacao-restock-card button,
.cacao-restock-card input { box-sizing: border-box; width: 100%; min-height: 40px; border-radius: 9px; }
.cacao-restock-card button { margin-top: auto; border: 1px solid var(--cacao-restock-caramel-dark); background: #fff; color: var(--cacao-restock-caramel-dark); font-weight: 700; cursor: pointer; }
.cacao-restock-card button:hover { background: var(--cacao-restock-caramel-dark); color: #fff; }
.cacao-restock-card button:disabled,
.cacao-restock-card input:disabled { cursor: not-allowed; }
.cacao-restock-card input { padding: 0 10px; border: 1px solid #d9ccc2; background: #fff; color: var(--cacao-restock-ink); }
.cacao-restock-card form { display: grid; gap: 7px; margin-top: auto; }
.cacao-restock-message { min-height: 1.5em; margin: 16px 0 0; color: #34684a; font-weight: 600; }
.cacao-restock-message.is-error { color: #a51d23; }
.cacao-restock-lock { overflow: hidden; }

@media (max-width: 760px) {
	.cacao-restock-entry--detail { grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 17px; }
	.cacao-restock-entry--detail .cacao-restock-button { grid-column: 1 / -1; width: 100%; }
	.cacao-restock-entry__icon { width: 44px; height: 44px; }
	.cacao-restock-grid { grid-template-columns: 1fr; }
	.cacao-restock-dialog { padding: 25px 17px 20px; border-radius: 18px; }
}

@media (max-width: 440px) {
	.cacao-restock-entry--compact { align-items: stretch; flex-direction: column; }
	.cacao-restock-entry--compact .cacao-restock-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.cacao-restock-button,
	.cacao-restock-card { transition: none; }
}
