/* Subscribe bar: sits above fixed bottom menus when present */
.wcigr-os-prompt {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 2147482600;
	max-width: 520px;
	margin: 0 auto;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	box-sizing: border-box;
	pointer-events: none;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}
.wcigr-os-prompt.wcigr-os-prompt--visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
/* Added by PHP when GST bottom menu is enabled */
.wcigr-os-prompt.wcigr-os-prompt--above-bm {
	bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
/* Track order sheet (z-index 2147483000) must stack above the prompt so taps and content are not "invisible" */
body.wcigr-bm-track-open .wcigr-os-prompt {
	z-index: 2147482500 !important;
}
.wcigr-os-prompt__inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 16px;
	background: linear-gradient(145deg, #0f172a, #1e293b);
	color: #f8fafc;
	box-shadow: 0 18px 48px rgba(2, 6, 23, 0.45);
	border: 1px solid rgba(148, 163, 184, 0.35);
}
.wcigr-os-prompt__title {
	display: block;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 4px;
	line-height: 1.25;
}
.wcigr-os-prompt__body {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #cbd5e1;
	font-weight: 500;
}
.wcigr-os-prompt__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.wcigr-os-prompt__btn {
	appearance: none;
	border: 0;
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	line-height: 1.2;
	-webkit-tap-highlight-color: transparent;
}
.wcigr-os-prompt__btn--primary {
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: #fff;
	box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.wcigr-os-prompt__btn--primary:active {
	transform: scale(0.98);
}
.wcigr-os-prompt__btn--quiet {
	background: rgba(248, 250, 252, 0.12);
	color: #e2e8f0;
	font-weight: 700;
}
.wcigr-os-prompt__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}
.wcigr-os-prompt__feedback {
	padding: 2px 0 4px;
}
.wcigr-os-prompt__feedback-title {
	display: block;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	line-height: 1.25;
}
.wcigr-os-prompt__feedback-body {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 600;
}
.wcigr-os-prompt__feedback--success .wcigr-os-prompt__feedback-title {
	color: #86efac;
}
.wcigr-os-prompt__feedback--success .wcigr-os-prompt__feedback-body {
	color: #dcfce7;
}
.wcigr-os-prompt__feedback--error .wcigr-os-prompt__feedback-title {
	color: #fecaca;
}
.wcigr-os-prompt__feedback--error .wcigr-os-prompt__feedback-body {
	color: #fde68a;
}

/* Android in-app WebView (e.g. com.aptsomart.organic): comfortable taps + clear of fixed app chrome */
.wcigr-os-prompt.wcigr-os-prompt--android-wv .wcigr-os-prompt__btn {
	min-height: 44px;
	padding: 12px 16px;
	-webkit-tap-highlight-color: transparent;
}
body.wcigr-bm-webview .wcigr-os-prompt.wcigr-os-prompt--android-wv:not(.wcigr-os-prompt--above-bm) {
	bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
body.wcigr-bm-webview .wcigr-os-prompt.wcigr-os-prompt--android-wv.wcigr-os-prompt--above-bm {
	bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

/* After "Not now": small control to reopen full prompt (still not subscribed) */
.wcigr-os-prompt--chip-only {
	left: 12px;
	right: auto;
	max-width: none;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	pointer-events: none;
}
.wcigr-os-prompt--chip-only.wcigr-os-prompt--visible {
	pointer-events: auto;
}
.wcigr-os-prompt--chip-only .wcigr-os-prompt__inner {
	display: none;
}
.wcigr-os-prompt__chip {
	appearance: none;
	display: none;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 14px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	color: #f8fafc;
	cursor: pointer;
	border: 1px solid rgba(148, 163, 184, 0.45);
	background: linear-gradient(145deg, #1e293b, #0f172a);
	box-shadow: 0 10px 28px rgba(2, 6, 23, 0.4);
	-webkit-tap-highlight-color: transparent;
}
.wcigr-os-prompt--chip-only .wcigr-os-prompt__chip:not([hidden]) {
	display: inline-flex;
}
.wcigr-os-prompt__chip::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fbbf24;
	box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35);
	flex-shrink: 0;
}
.wcigr-os-prompt__chip:active {
	transform: scale(0.98);
}
.wcigr-os-prompt.wcigr-os-prompt--above-bm.wcigr-os-prompt--chip-only {
	bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
body.wcigr-bm-webview .wcigr-os-prompt.wcigr-os-prompt--android-wv.wcigr-os-prompt--chip-only:not(.wcigr-os-prompt--above-bm) {
	bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
body.wcigr-bm-webview .wcigr-os-prompt.wcigr-os-prompt--android-wv.wcigr-os-prompt--chip-only.wcigr-os-prompt--above-bm {
	bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}
.wcigr-os-prompt.wcigr-os-prompt--android-wv .wcigr-os-prompt__chip {
	min-height: 44px;
	padding: 12px 16px;
}

/* Subscribe opened from Track: no full-width signup card — only status feedback */
.wcigr-os-prompt.wcigr-os-prompt--from-track {
	left: 12px;
	right: 12px;
	max-width: 400px;
	bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	z-index: 2147483100;
}
.wcigr-os-prompt.wcigr-os-prompt--from-track.wcigr-os-prompt--above-bm {
	bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
.wcigr-os-prompt.wcigr-os-prompt--from-track .wcigr-os-prompt__inner {
	padding: 10px 12px;
	border-radius: 14px;
	box-shadow: 0 12px 36px rgba(2, 6, 23, 0.42);
}
.wcigr-os-prompt.wcigr-os-prompt--from-track .wcigr-os-prompt__feedback-title {
	font-size: 14px;
}
.wcigr-os-prompt.wcigr-os-prompt--from-track .wcigr-os-prompt__feedback-body {
	font-size: 12px;
}
