/* CC Restock Alerts — storefront. Accent comes from --cc-rs-accent (plugin settings). */
:root {
	--cc-rs-accent: #0ea692;
	--cc-rs-accent-soft: #e7f6f4; /* overwritten from the accent setting */
	--cc-rs-accent-line: #bce6e0;
	--cc-rs-ring: rgba(14, 166, 146, .2);
	--cc-rs-ink: #111;
	--cc-rs-muted: #5f6664;
	--cc-rs-line: #e2e6e5;
	--cc-rs-radius: 10px;
}

/* ------------------------------------------------------------------ */
/* Shop grid button                                                     */
/* ------------------------------------------------------------------ */

body .cc-rs-btn {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: inherit;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
body .cc-rs-btn:focus-visible { outline: 2px solid var(--cc-rs-accent); outline-offset: 3px; border-radius: 4px; }
.cc-rs-btn__label {
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
}
.cc-rs-btn .cc-rs-bell { width: 1.05em; height: 1.05em; }
.cc-rs-btn.is-working { opacity: .55; pointer-events: none; }

/* Pill: outlined "Notify me" → tinted "On the list". Tapping the pill when subscribed opens "manage" (unsubscribe).
   The :not(#cc-rs) gives ID-level weight so page-builder widget rules (".elementor-279 … .cart button") can't flatten it. */
body .cc-rs-btn:not(#cc-rs) {
	height: auto;
	min-height: 32px;
	padding: 5px 11px 5px 9px;
	border: 1px solid var(--cc-rs-accent);
	border-radius: 999px;
	background: #fff;
	color: var(--cc-rs-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
body .cc-rs-btn:not(#cc-rs):hover,
body .cc-rs-btn:not(#cc-rs):focus { border-color: var(--cc-rs-accent); background: #fff; color: var(--cc-rs-accent); text-decoration: none; }
@media (hover: hover) {
	body .cc-rs-btn:not(#cc-rs):not(.is-subscribed):hover { background: var(--cc-rs-accent); color: #fff; }
}
body .cc-rs-btn.is-subscribed:not(#cc-rs),
body .cc-rs-btn.is-subscribed:not(#cc-rs):focus { border-color: var(--cc-rs-accent-line); background: var(--cc-rs-accent-soft); color: var(--cc-rs-accent); }
body .cc-rs-btn.is-subscribed:not(#cc-rs):hover { border-color: var(--cc-rs-accent); background: var(--cc-rs-accent-soft); color: var(--cc-rs-accent); }
body .cc-rs-btn.is-error:not(#cc-rs) { border-color: #c62828; color: #c62828; }
@media (max-width: 767px) {
	body .cc-rs-btn:not(#cc-rs) { min-height: 30px; padding: 4px 10px 4px 9px; font-size: 12px; }
}
.cc-rs-btn.is-subscribed .cc-rs-bell__body { fill: currentColor; }
.cc-rs-btn.is-subscribed.is-fresh .cc-rs-bell,
.cc-rs-panel.is-fresh .cc-rs-panel__tick { animation: cc-rs-ring .6s ease; }

.cc-rs-bell { flex: 0 0 auto; display: block; transform-origin: 50% 10%; }
@media (hover: hover) { .cc-rs-btn:not(.is-subscribed):hover .cc-rs-bell { animation: cc-rs-ring .6s ease; } }
@keyframes cc-rs-ring {
	0% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-12deg); }
	60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } 100% { transform: rotate(0); }
}

/* Elementor loop card: price and button share a no-wrap row. Let the button drop under the price when the card is narrow. */
.e-con:has(> .elementor-widget-woocommerce-product-add-to-cart .cc-rs-btn),
.e-con-inner:has(> .elementor-widget-woocommerce-product-add-to-cart .cc-rs-btn) { flex-wrap: wrap; row-gap: 8px; column-gap: 12px; }
.elementor-widget-woocommerce-product-add-to-cart:has(.cc-rs-btn) { min-width: 0; max-width: 100%; }
.e-loop-add-to-cart-form:has(.cc-rs-btn) { align-items: center; }

/* Classic WooCommerce loops: sit where the button would. */
ul.products li.product .cc-rs-btn { margin-top: .5em; }

/* ------------------------------------------------------------------ */
/* Product page panel                                                   */
/* ------------------------------------------------------------------ */

.cc-rs-panel {
	container-type: inline-size;
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	margin: 6px 0 20px;
	padding: 18px 20px 20px;
	border: 1px solid var(--cc-rs-line);
	border-radius: 14px;
	background: #fff;
	color: var(--cc-rs-ink);
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
	transition: background-color .2s ease, border-color .2s ease;
}
.cc-rs-panel * { box-sizing: border-box; }
.cc-rs-panel.is-subscribed { background: var(--cc-rs-accent-soft); border-color: var(--cc-rs-accent-line); }

body .cc-rs-panel p.cc-rs-panel__status:not(#cc-rs) {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px;
	padding: 4px 11px 4px 9px;
	border-radius: 999px;
	background: #fdf0ef;
	color: #b42318 !important;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.4;
	text-transform: uppercase;
}
.cc-rs-panel__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cc-rs-panel.is-subscribed p.cc-rs-panel__status:not(#cc-rs) { background: #fff; }

.cc-rs-panel__sub { margin: 0 0 14px; color: var(--cc-rs-ink); font-size: 16px; font-weight: 500; }

.cc-rs-panel__on { display: none; }
.cc-rs-panel.is-subscribed .cc-rs-panel__on { display: block; }
.cc-rs-panel.is-subscribed .cc-rs-panel__off { display: none; }

.cc-rs-panel__form { display: flex; gap: 8px; margin: 0; }
body .cc-rs-panel input.cc-rs-panel__input:not(#cc-rs) {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #cfd5d4;
	border-radius: var(--cc-rs-radius);
	background: #fff;
	color: var(--cc-rs-ink);
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming on focus */
	box-shadow: none;
}
body .cc-rs-panel input.cc-rs-panel__input:not(#cc-rs):focus {
	outline: none;
	border-color: var(--cc-rs-accent);
	box-shadow: 0 0 0 3px var(--cc-rs-ring);
}
body .cc-rs-panel input.cc-rs-panel__input:not(#cc-rs).is-invalid { border-color: #c62828; }

body .cc-rs-panel button.cc-rs-panel__btn:not(#cc-rs) {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: var(--cc-rs-radius);
	background: var(--cc-rs-accent);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter .15s ease, transform .05s ease;
}
body .cc-rs-panel button.cc-rs-panel__btn:not(#cc-rs):hover,
body .cc-rs-panel button.cc-rs-panel__btn:not(#cc-rs):focus { background: var(--cc-rs-accent); color: #fff; filter: brightness(.93); }
body .cc-rs-panel button.cc-rs-panel__btn:not(#cc-rs):active { transform: translateY(1px); }
body .cc-rs-panel button.cc-rs-panel__btn:not(#cc-rs):focus-visible { outline: 2px solid var(--cc-rs-accent); outline-offset: 2px; }
body .cc-rs-panel button.cc-rs-panel__btn:not(#cc-rs):disabled { opacity: .6; cursor: default; }
.cc-rs-panel__btn .cc-rs-bell { width: 18px; height: 18px; }

.cc-rs-panel__fine { margin: 10px 0 0; color: #7a807f; font-size: 12px; line-height: 1.45; }
.cc-rs-panel__msg { margin: 10px 0 0; font-size: 14px; }
.cc-rs-panel__msg:empty { display: none; }
.cc-rs-panel__msg.is-error { color: #c62828; }
.cc-rs-panel__msg.is-success { color: var(--cc-rs-accent); }

.cc-rs-panel__confirm { display: flex; align-items: flex-start; gap: 12px; }
.cc-rs-panel__tick {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--cc-rs-accent);
	color: #fff;
}
.cc-rs-panel__tick .cc-rs-check { width: 16px; height: 16px; }
.cc-rs-panel__title { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.cc-rs-panel__detail { display: block; margin-top: 2px; color: var(--cc-rs-muted); font-size: 14px; word-break: break-word; }
.cc-rs-panel__detail small { display: block; margin-top: 4px; }

body .cc-rs-panel button.cc-rs-panel__unsub:not(#cc-rs) {
	display: inline-block;
	margin: 12px 0 0 42px;
	padding: 4px 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--cc-rs-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: underline;
	text-underline-offset: .2em;
	cursor: pointer;
}
body .cc-rs-panel button.cc-rs-panel__unsub:not(#cc-rs):hover,
body .cc-rs-panel button.cc-rs-panel__unsub:not(#cc-rs):focus { background: none; color: var(--cc-rs-ink); }
body .cc-rs-panel button.cc-rs-panel__unsub:not(#cc-rs):disabled { opacity: .5; cursor: default; }
.cc-rs-panel__unsub[hidden] { display: none !important; }

@container (max-width: 440px) {
	.cc-rs-panel__form { flex-direction: column; }
	body .cc-rs-panel button.cc-rs-panel__btn:not(#cc-rs) { width: 100%; }
}
@media (max-width: 600px) {
	.cc-rs-panel { max-width: none; padding: 16px; }
	body .cc-rs-panel button.cc-rs-panel__btn:not(#cc-rs) { width: 100%; }
	.cc-rs-panel__form { flex-direction: column; }
}

/* ------------------------------------------------------------------ */
/* Popover (shop grid) — anchored card on desktop, bottom sheet on phones */
/* ------------------------------------------------------------------ */

.cc-rs-pop {
	position: absolute;
	z-index: 99999;
	top: 0;
	left: 0;
	box-sizing: border-box;
	width: 320px;
	max-width: calc(100vw - 32px);
	padding: 18px 18px 16px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06);
	color: var(--cc-rs-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	animation: cc-rs-pop-in .16s ease;
}
.cc-rs-pop * { box-sizing: border-box; }
.cc-rs-pop:focus { outline: none; }
.cc-rs-pop__row .cc-rs-pop__title { margin: 0; }
.cc-rs-pop::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 22px;
	width: 12px;
	height: 12px;
	background: #fff;
	box-shadow: -1px -1px 0 rgba(0,0,0,.06);
	transform: rotate(45deg);
}
.cc-rs-pop.is-right::before { left: auto; right: 22px; }
@keyframes cc-rs-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

body .cc-rs-pop button.cc-rs-pop__close:not(#cc-rs) {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #8a908f;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
body .cc-rs-pop button.cc-rs-pop__close:not(#cc-rs):hover { background: #f1f3f3; color: var(--cc-rs-ink); }
.cc-rs-pop__product { margin: 0 36px 2px 0; color: var(--cc-rs-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cc-rs-pop__title { margin: 0 36px 12px 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.cc-rs-pop__form { display: flex; gap: 8px; margin: 0; }
body .cc-rs-pop input.cc-rs-pop__input:not(#cc-rs) {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #cfd5d4;
	border-radius: var(--cc-rs-radius);
	background: #fff;
	color: var(--cc-rs-ink);
	font: inherit;
	font-size: 16px;
	box-shadow: none;
}
body .cc-rs-pop input.cc-rs-pop__input:not(#cc-rs):focus { outline: none; border-color: var(--cc-rs-accent); box-shadow: 0 0 0 3px var(--cc-rs-ring); }
body .cc-rs-pop button.cc-rs-pop__submit:not(#cc-rs),
body .cc-rs-pop button.cc-rs-pop__unsub:not(#cc-rs) {
	flex: 0 0 auto;
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: var(--cc-rs-radius);
	background: var(--cc-rs-accent);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
}
body .cc-rs-pop button.cc-rs-pop__submit:not(#cc-rs):hover { background: var(--cc-rs-accent); color: #fff; filter: brightness(.93); }
body .cc-rs-pop button.cc-rs-pop__submit:not(#cc-rs):disabled,
body .cc-rs-pop button.cc-rs-pop__unsub:not(#cc-rs):disabled { opacity: .6; cursor: default; }
body .cc-rs-pop button.cc-rs-pop__unsub:not(#cc-rs) { width: 100%; margin-top: 14px; border: 1px solid #d5dad9; background: #fff; color: var(--cc-rs-ink); }
body .cc-rs-pop button.cc-rs-pop__unsub:not(#cc-rs):hover { border-color: #b9c0bf; background: #f6f7f7; color: var(--cc-rs-ink); }
.cc-rs-pop__row { display: flex; align-items: flex-start; gap: 10px; }
.cc-rs-pop__row .cc-rs-panel__tick { width: 26px; height: 26px; }
.cc-rs-pop__row .cc-rs-check { width: 14px; height: 14px; }
.cc-rs-pop__detail { margin: 2px 0 0; color: var(--cc-rs-muted); font-size: 13.5px; word-break: break-word; }
.cc-rs-pop__consent { margin-top: 10px; color: #7a807f; font-size: 11.5px; }
.cc-rs-pop__msg { margin-top: 10px; font-size: 13.5px; }
.cc-rs-pop__msg:empty { display: none; }
.cc-rs-pop__msg.is-error { color: #c62828; }
.cc-rs-pop__msg.is-success { color: var(--cc-rs-accent); font-weight: 600; }
.cc-rs-pop__link { display: inline-block; margin-top: 10px; color: var(--cc-rs-muted); font-size: 13px; text-decoration: underline; text-underline-offset: .2em; }
.cc-rs-pop__link:hover { color: var(--cc-rs-ink); }
.cc-rs-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.cc-rs-scrim { display: none; }

@media (max-width: 600px) {
	.cc-rs-scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99998;
		background: rgba(10, 12, 12, .42);
		animation: cc-rs-fade .18s ease;
	}
	.cc-rs-pop {
		position: fixed;
		top: auto !important;
		right: 0 !important;
		bottom: 0;
		left: 0 !important;
		width: 100%;
		max-width: none;
		padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
		border-radius: 18px 18px 0 0;
		font-size: 15px;
		animation: cc-rs-sheet-in .22s cubic-bezier(.2,.8,.2,1);
	}
	.cc-rs-pop::before {
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 2px;
		background: #d7dcdb;
		box-shadow: none;
		transform: none;
	}
	.cc-rs-pop.is-right::before { left: 50%; right: auto; }
	.cc-rs-pop__title { font-size: 18px; }
	.cc-rs-pop__form { flex-direction: column; }
	body .cc-rs-pop input.cc-rs-pop__input:not(#cc-rs),
	body .cc-rs-pop button.cc-rs-pop__submit:not(#cc-rs),
	body .cc-rs-pop button.cc-rs-pop__unsub:not(#cc-rs) { height: 48px; width: 100%; font-size: 16px; }
	.cc-rs-pop__consent { font-size: 12px; }
}
@keyframes cc-rs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-rs-sheet-in { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.cc-rs-pop, .cc-rs-scrim, .cc-rs-bell, .cc-rs-panel__tick { animation: none !important; }
}

/* ------------------------------------------------------------------ */
/* My Account → Restock alerts                                          */
/* ------------------------------------------------------------------ */

.cc-rs-account__intro { margin: 0 0 16px; color: var(--cc-rs-muted); }
.cc-rs-account__list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--cc-rs-line); border-radius: 14px; overflow: hidden; }
.cc-rs-account__item { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--cc-rs-line); }
.cc-rs-account__item:first-child { border-top: 0; }
.cc-rs-account__item.is-done { background: #fafbfb; }
.cc-rs-account__img { flex: 0 0 56px; }
.cc-rs-account__img img { display: block; width: 56px; height: 56px; margin: 0 !important; object-fit: cover; border-radius: 8px; }
.cc-rs-account__info { flex: 1 1 auto; min-width: 0; }
.cc-rs-account__name { display: block; color: var(--cc-rs-ink); font-weight: 600; text-decoration: none; }
.cc-rs-account__state { display: block; margin-top: 2px; color: var(--cc-rs-muted); font-size: 13px; }
.cc-rs-account__state.is-sent { color: var(--cc-rs-accent); }
.cc-rs-account__act form { margin: 0; }
body .cc-rs-account button.cc-rs-account__remove:not(#cc-rs) {
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #d5dad9;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--cc-rs-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}
body .cc-rs-account button.cc-rs-account__remove:not(#cc-rs):hover { border-color: #b9c0bf; background: #f6f7f7; color: var(--cc-rs-ink); }
.cc-rs-account__shop { display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--cc-rs-accent); color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.cc-rs-account__empty { padding: 32px 20px; border: 1px dashed var(--cc-rs-line); border-radius: 14px; text-align: center; color: var(--cc-rs-muted); }
.cc-rs-account__empty .cc-rs-bell { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--cc-rs-accent); }
.cc-rs-account__empty p { margin: 0 0 6px; }
.cc-rs-account__empty .cc-rs-account__shop { margin-top: 10px; }
@media (max-width: 480px) {
	.cc-rs-account__item { flex-wrap: wrap; }
	.cc-rs-account__act { flex: 1 0 100%; padding-left: 70px; }
}
