/* The Butcher Grill — cookie notice */
.bgcn-banner[hidden], .bgcn-modal[hidden], .bgcn-float[hidden] { display: none !important; }

.bgcn-banner, .bgcn-modal__panel {
	box-sizing: border-box;
	background: var(--bgcn-bg, #262422);
	color: var(--bgcn-text, #e1d8c8);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}
.bgcn-banner *, .bgcn-modal * { box-sizing: border-box; }

/* Banner: box in the bottom-left corner */
.bgcn-banner {
	position: fixed;
	z-index: 99998;
	left: 20px;
	bottom: 20px;
	width: min(440px, calc(100% - 40px));
	padding: 24px;
	border: 2px solid rgba(225, 216, 200, .55);
	box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
	animation: bgcn-in .3s ease-out;
}
/* Banner: full-width bar */
.bgcn-banner--bar {
	left: 0;
	right: 0;
	bottom: 0;
	width: auto;
	border-width: 1px 0 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 32px;
	align-items: center;
	padding: 20px max(24px, calc((100% - 1240px) / 2));
}
.bgcn-banner--bar .bgcn-actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; }

.bgcn-title { margin: 0 0 8px; font-size: 19px; font-weight: 700; line-height: 1.25; color: inherit; }
.bgcn-text { margin: 0 0 10px; color: inherit; }
.bgcn-links { margin: 0 0 4px; }
.bgcn-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-right: 16px; }
.bgcn-links a:hover { color: var(--bgcn-btn, #be1b1b); }

.bgcn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bgcn-btn {
	flex: 1 1 auto;
	min-height: 46px;
	margin: 0;
	padding: 10px 16px;
	border: 2px solid var(--bgcn-btn, #be1b1b);
	border-radius: 0;
	background: var(--bgcn-btn, #be1b1b);
	color: var(--bgcn-btn-text, #f6f2ea);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: filter .15s ease, background-color .15s ease, color .15s ease;
}
.bgcn-btn:hover { filter: brightness(.9); }
.bgcn-btn--ghost { background: transparent; color: var(--bgcn-text, #e1d8c8); border-color: rgba(225, 216, 200, .6); }
.bgcn-btn--ghost:hover { filter: none; background: var(--bgcn-text, #e1d8c8); color: var(--bgcn-bg, #262422); border-color: var(--bgcn-text, #e1d8c8); }
.bgcn-btn:focus-visible, .bgcn-links a:focus-visible, .bgcn-close:focus-visible, .bgcn-float:focus-visible, .bgcn-switch input:focus-visible + .bgcn-switch__track {
	outline: 3px solid var(--bgcn-text, #e1d8c8);
	outline-offset: 2px;
}

/* Preferences dialog */
.bgcn-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 16px; }
.bgcn-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 19, 18, .75); }
.bgcn-modal__panel {
	position: relative;
	width: min(620px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px;
	border: 2px solid rgba(225, 216, 200, .55);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
	animation: bgcn-in .25s ease-out;
}
.bgcn-modal__panel:focus { outline: none; }
.bgcn-modal__panel .bgcn-title { font-size: 22px; padding-right: 40px; }
.bgcn-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.bgcn-cats { list-style: none; margin: 16px 0; padding: 0; }
.bgcn-cat { margin: 0; padding: 14px 0; border-top: 1px solid rgba(225, 216, 200, .18); }
.bgcn-cat:last-child { border-bottom: 1px solid rgba(225, 216, 200, .18); }
.bgcn-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bgcn-cat__title { font-weight: 700; color: inherit; cursor: pointer; }
.bgcn-cat__desc { margin: 4px 0 0; font-size: 14px; opacity: .8; }
.bgcn-always { font-size: 13px; font-weight: 700; opacity: .75; white-space: nowrap; }

/* Switch */
.bgcn-switch { position: relative; display: inline-flex; flex: none; width: 46px; height: 26px; }
.bgcn-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.bgcn-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 13px;
	background: rgba(225, 216, 200, .25);
	transition: background-color .2s ease;
}
.bgcn-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s ease;
}
.bgcn-switch input:checked + .bgcn-switch__track { background: var(--bgcn-btn, #be1b1b); }
.bgcn-switch input:checked + .bgcn-switch__track::after { transform: translateX(20px); }

/* Floating button to reopen the preferences */
.bgcn-float {
	position: fixed;
	z-index: 99990;
	left: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid rgba(225, 216, 200, .55);
	border-radius: 50%;
	background: var(--bgcn-bg, #262422);
	color: var(--bgcn-text, #e1d8c8);
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.bgcn-float:hover { background: var(--bgcn-btn, #be1b1b); color: var(--bgcn-btn-text, #f6f2ea); }

.bgcn-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.bgcn-locked { overflow: hidden; }

@keyframes bgcn-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
	.bgcn-banner { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 18px; }
	.bgcn-banner--bar { left: 0; right: 0; bottom: 0; display: block; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
	.bgcn-banner--bar .bgcn-actions { margin-top: 14px; }
	.bgcn-modal__panel { padding: 24px 18px; }
	/* stay above the site's fixed mobile quick bar */
	.bgcn-float { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
	.bgcn-banner, .bgcn-modal__panel { animation: none; }
}

/* Theme and Elementor Site Settings style every <label> (form label colour/size).
   These rules keep the notice readable whatever the site's form styles are. */
.bgcn-banner .bgcn-title, .bgcn-banner .bgcn-text, .bgcn-banner .bgcn-links a,
.bgcn-modal .bgcn-title, .bgcn-modal .bgcn-text, .bgcn-modal .bgcn-links a,
.bgcn-modal .bgcn-cat__title, .bgcn-modal .bgcn-cat__desc, .bgcn-modal .bgcn-always, .bgcn-modal .bgcn-close {
	color: var(--bgcn-text, #e1d8c8) !important;
}
.bgcn-modal label.bgcn-cat__title {
	display: inline;
	margin: 0 !important;
	padding: 0 !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	opacity: 1 !important;
}

/* Elementor Site Settings style every <button> (red background, padding, Anton font).
   These rules give the notice's own buttons back their intended look. */
.bgcn-banner button, .bgcn-modal button, button.bgcn-float {
	box-shadow: none !important;
	text-shadow: none !important;
	border-radius: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	font-family: inherit !important;
	transform: none;
}
.bgcn-banner .bgcn-btn, .bgcn-modal .bgcn-btn {
	min-height: 46px !important;
	padding: 10px 16px !important;
	border: 2px solid var(--bgcn-btn, #be1b1b) !important;
	background: var(--bgcn-btn, #be1b1b) !important;
	color: var(--bgcn-btn-text, #f6f2ea) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}
.bgcn-banner .bgcn-btn--ghost, .bgcn-modal .bgcn-btn--ghost {
	background: transparent !important;
	color: var(--bgcn-text, #e1d8c8) !important;
	border-color: rgba(225, 216, 200, .6) !important;
}
.bgcn-banner .bgcn-btn--ghost:hover, .bgcn-modal .bgcn-btn--ghost:hover {
	background: var(--bgcn-text, #e1d8c8) !important;
	color: var(--bgcn-bg, #262422) !important;
	border-color: var(--bgcn-text, #e1d8c8) !important;
}
.bgcn-modal .bgcn-close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	display: grid !important;
	place-items: center !important;
	width: 40px !important;
	height: 40px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--bgcn-text, #e1d8c8) !important;
	font-size: 30px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
}
.bgcn-modal .bgcn-close:hover { background: rgba(225, 216, 200, .12) !important; }
button.bgcn-float {
	display: grid !important;
	place-items: center !important;
	width: 46px !important;
	height: 46px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid rgba(225, 216, 200, .55) !important;
	border-radius: 50% !important;
	background: var(--bgcn-bg, #262422) !important;
	color: var(--bgcn-text, #e1d8c8) !important;
	line-height: 0 !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35) !important;
}
button.bgcn-float:hover {
	background: var(--bgcn-btn, #be1b1b) !important;
	color: var(--bgcn-btn-text, #f6f2ea) !important;
	border-color: var(--bgcn-btn, #be1b1b) !important;
}
button.bgcn-float svg { width: 22px !important; height: 22px !important; display: block; }
