/* Site-wide coupon side tab (see FF_Coupon_Tab). Everything is namespaced
   under .ff-ct and explicitly resets the properties a theme's generic
   button/heading/link rules commonly leak into, since this renders on
   every page of the site, inside whatever theme is active there. */
.ff-ct {
	--ff-ct-w: min(318px, calc(100vw - 54px));
	position: fixed;
	left: 0;
	top: 56%;
	z-index: 99990;
	direction: ltr;
	pointer-events: none;
	transform: translateX(calc(-1 * var(--ff-ct-w)));
	transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1);
	font-size: 14px;
	line-height: 1.45;
	box-sizing: border-box;
}
/* An explicit system font stack with real bold weights, instead of inheriting
   the theme's body font: a theme font that ships only a regular weight gets
   faux-bolded by the browser (smeared, color-fringed Hebrew), and themes often
   add text-shadow/stroke/letter-spacing on headings that would leak in too. */
.ff-ct,
.ff-ct * {
	font-family: system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", sans-serif;
	font-style: normal;
	font-synthesis: none;
	letter-spacing: normal;
	text-shadow: none;
	-webkit-text-stroke: 0;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.ff-ct:not(.ff-ct-ready) {
	display: none;
}
.ff-ct.ff-ct-open {
	transform: translateX(0);
}
.ff-ct *,
.ff-ct *::before,
.ff-ct *::after {
	box-sizing: border-box;
}
.ff-ct-inner {
	display: flex;
	align-items: center;
	transform: translateY(-50%);
}

/* ---- The tab ---- */
.ff-ct .ff-ct-tab {
	pointer-events: auto;
	direction: rtl;
	flex: 0 0 auto;
	width: 46px;
	margin: 0;
	padding: 14px 0 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	background: linear-gradient(180deg, #2b3245 0%, #1f2430 100%);
	color: #f4d9a0;
	/* A thin gold edge plus a soft glow so the dark tab doesn't disappear into
	   a dark site background. Static on purpose — no pulsing. */
	border: 1px solid rgba(242, 180, 60, 0.85);
	border-left: 0;
	border-radius: 0 14px 14px 0;
	box-shadow: 0 0 9px 1px rgba(242, 180, 60, 0.5), 3px 4px 16px rgba(20, 24, 36, 0.32);
	cursor: pointer;
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ff-ct .ff-ct-tab:hover,
.ff-ct .ff-ct-tab:focus-visible {
	transform: translateX(3px);
	box-shadow: 0 0 13px 2px rgba(242, 180, 60, 0.72), 4px 5px 20px rgba(20, 24, 36, 0.42);
	background: linear-gradient(180deg, #2b3245 0%, #1f2430 100%);
	color: #f4d9a0;
}
.ff-ct .ff-ct-tab:focus-visible {
	outline: 2px solid #f2b43c;
	outline-offset: 2px;
}
.ff-ct .ff-ct-ico {
	display: block;
	width: 20px;
	height: 20px;
	color: #f2b43c;
}
.ff-ct .ff-ct-tab-label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 16.5px;
	font-weight: 700;
	color: #f4d9a0;
	white-space: nowrap;
}
.ff-ct .ff-ct-pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 32px;
	padding: 4px 5px 5px;
	border-radius: 11px;
	background: #f2b43c;
	color: #1f2430;
	font-weight: 700;
	line-height: 1.05;
	text-align: center;
	white-space: nowrap;
}
.ff-ct .ff-ct-pill-top {
	font-size: 10.5px;
}
.ff-ct .ff-ct-pill-main {
	font-size: 14.5px;
}

/* ---- The panel ---- */
.ff-ct .ff-ct-panel {
	pointer-events: auto;
	direction: rtl;
	flex: 0 0 auto;
	width: var(--ff-ct-w);
	max-height: min(66vh, 500px);
	display: flex;
	flex-direction: column;
	background: #fffaf0;
	color: #332b1e;
	border: 1px solid #ece2cc;
	border-left: 0;
	border-radius: 0 12px 12px 0;
	box-shadow: 4px 6px 24px rgba(20, 24, 36, 0.26);
	overflow: hidden;
	text-align: right;
	visibility: hidden;
	transition: visibility 0s linear 0.28s;
}
.ff-ct.ff-ct-open .ff-ct-panel {
	visibility: visible;
	transition-delay: 0s;
}
.ff-ct .ff-ct-head {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px 9px;
	background: #1f2430;
	color: #f4d9a0;
}
.ff-ct .ff-ct-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #f4d9a0;
}
.ff-ct .ff-ct-sub {
	margin-top: 2px;
	font-size: 13.5px;
	font-weight: 600;
	color: #c9b98f;
}
.ff-ct .ff-ct-close {
	flex: 0 0 auto;
	margin: -2px 0 0;
	padding: 0 4px;
	background: none;
	border: 0;
	box-shadow: none;
	color: #f4d9a0;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.ff-ct .ff-ct-close:hover,
.ff-ct .ff-ct-close:focus-visible {
	color: #fff;
	background: none;
}
.ff-ct .ff-ct-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 10px 2px;
	overscroll-behavior: contain;
}
.ff-ct .ff-ct-msg {
	margin: 10px 4px;
	font-size: 14.5px;
	color: #6b6350;
}

/* ---- Coupon rows ---- */
.ff-ct .ff-ct-row {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 0 6px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #ece2cc;
	border-radius: 10px;
}
.ff-ct .ff-ct-val {
	flex: 0 0 auto;
	min-width: 54px;
	padding: 6px 5px;
	border-radius: 9px;
	background: #1f2430;
	color: #f2b43c;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	white-space: nowrap;
}
.ff-ct .ff-ct-val-plain {
	font-size: 13.5px;
}
.ff-ct .ff-ct-info {
	flex: 1 1 auto;
	min-width: 0;
}
.ff-ct .ff-ct-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #332b1e;
	overflow-wrap: anywhere;
}
.ff-ct .ff-ct-name-muted {
	font-weight: 600;
	color: #6b6350;
}
.ff-ct .ff-ct-cond {
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.4;
	color: #5b5342;
	white-space: pre-line;
	overflow-wrap: anywhere;
}
.ff-ct .ff-ct-site {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: #7a5a14;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ff-ct .ff-ct-site:hover,
.ff-ct .ff-ct-site:focus-visible {
	color: #4a3a12;
	text-decoration: underline;
}
.ff-ct .ff-ct-lock {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 5px;
	padding: 3px 10px 3px 9px;
	border-radius: 12px;
	background: #f4ecda;
	color: #7a5a14;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
}
.ff-ct .ff-ct-lock svg {
	display: block;
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
}
.ff-ct .ff-ct-code-row {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 6px;
}
.ff-ct .ff-ct-code {
	flex: 1 1 auto;
	min-width: 0;
	padding: 4px 8px;
	border: 1px dashed #c9a85a;
	border-radius: 7px;
	background: #fffaf0;
	color: #332b1e;
	font-family: Consolas, "Courier New", monospace;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	direction: ltr;
	text-align: left;
	overflow-wrap: anywhere;
	user-select: all;
}
.ff-ct .ff-ct-copy {
	flex: 0 0 auto;
	margin: 0;
	padding: 5px 11px;
	border: 0;
	border-radius: 7px;
	background: #a8791f;
	color: #fff;
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
}
.ff-ct .ff-ct-copy:hover,
.ff-ct .ff-ct-copy:focus-visible {
	background: #8a6215;
	color: #fff;
}
.ff-ct .ff-ct-copy.ff-ct-copied {
	background: #2f7a47;
}

/* ---- Footer: pitch + hide ---- */
.ff-ct .ff-ct-foot {
	flex: 0 0 auto;
	padding: 4px 10px 8px;
}
.ff-ct .ff-ct-cta {
	margin: 4px 0 6px;
	padding: 9px 11px 10px;
	border: 1px solid #e3c987;
	border-radius: 10px;
	background: linear-gradient(180deg, #fff4d6 0%, #fdecc0 100%);
}
.ff-ct .ff-ct-cta-text {
	margin: 0 0 9px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.45;
	color: #4a3a12;
}
.ff-ct .ff-ct-cta-text.ff-ct-cta-strong {
	font-weight: 700;
	color: #1f2430;
}
.ff-ct .ff-ct-cta-btn {
	display: block;
	padding: 9px 10px;
	border-radius: 8px;
	background: #1f2430;
	color: #f4d9a0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s ease;
}
.ff-ct .ff-ct-cta-btn:hover,
.ff-ct .ff-ct-cta-btn:focus-visible {
	background: #2f3850;
	color: #fff;
	text-decoration: none;
}
.ff-ct .ff-ct-cta-login {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	color: #7a5a14;
	text-decoration: underline;
}
.ff-ct .ff-ct-cta-login:hover {
	color: #4a3a12;
}
.ff-ct .ff-ct-hide {
	display: block;
	margin: 0 auto;
	padding: 2px 6px;
	background: none;
	border: 0;
	box-shadow: none;
	color: #8b8470;
	font: inherit;
	font-size: 13px;
	text-transform: none;
	text-decoration: underline;
	cursor: pointer;
}
.ff-ct .ff-ct-hide:hover {
	color: #332b1e;
	background: none;
}

@media (max-width: 600px) {
	.ff-ct {
		top: 62%;
	}
	.ff-ct .ff-ct-tab {
		width: 40px;
		padding: 11px 0 10px;
		gap: 7px;
	}
	.ff-ct .ff-ct-tab-label {
		font-size: 14.5px;
	}
	.ff-ct .ff-ct-pill {
		min-width: 28px;
	}
	.ff-ct .ff-ct-pill-main {
		font-size: 12.5px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ff-ct,
	.ff-ct .ff-ct-tab,
	.ff-ct .ff-ct-panel {
		transition: none;
	}
}
@media print {
	.ff-ct {
		display: none !important;
	}
}
