/* Banner */
.tc-s1-wrap,
.tc-s1-float {
	--tc-radius: 14px;
	--tc-side: 40px;
	--tc-label-from: #2446b0;
	--tc-label-to: #3d84f0;
	--tc-cta-from: #ffdc4a;
	--tc-cta-to: #f2b705;
	--tc-cta-text: #1a1a1a;
	--tc-terms-bg: rgba(14, 20, 42, 0.92);
}

.tc-s1-wrap {
	container-type: inline-size;
	/* Explicit width: with container-type the wrapper can't size from its content and would
	   collapse to 0 inside flex/grid parents of themes (align-items: center etc.). */
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
	align-self: stretch;
	justify-self: stretch;
	flex: 0 0 auto;
	max-width: 960px;
	margin: 24px auto;
	padding: 0;
	clear: both;
}

.tc-s1-wrap--header,
.tc-s1-wrap--footer {
	max-width: 992px; /* 960 + side padding */
	padding: 0 16px;
}

.tc-s1-wrap *,
.tc-s1-wrap *::before,
.tc-s1-wrap *::after {
	box-sizing: border-box;
	font-family: inherit;
}

.tc-s1-banner,
.tc-s1-banner:hover,
.tc-s1-banner:focus,
.tc-s1-banner:visited {
	display: block;
	position: relative;
	color: #fff !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: 0 10px 28px rgba(10, 16, 40, 0.28);
	border-radius: var(--tc-radius);
	overflow: hidden;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.25;
	-webkit-tap-highlight-color: transparent;
}

.tc-s1-banner:focus-visible {
	outline: 3px solid var(--tc-cta-from);
	outline-offset: 3px;
}

/* Shared: background card */
.tc-s1-bn {
	position: relative;
	background-color: #10162c;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.tc-s1-bn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse 50% 80% at 50% 45%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 80%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
	pointer-events: none;
}

.tc-s1-bn > *:not(.tc-s1-bn-fade) {
	position: relative;
	z-index: 2;
}

.tc-s1-bn-fade {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.tc-s1-bn-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
}


.tc-s1-bn-offer {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.6);
	max-width: 820px;
}

.tc-s1-bn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 30px;
	border-radius: 8px;
	background: linear-gradient(180deg, var(--tc-cta-from), var(--tc-cta-to));
	color: var(--tc-cta-text);
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(242, 183, 5, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.tc-s1-banner:hover .tc-s1-bn-cta,
.tc-s1-banner:focus-visible .tc-s1-bn-cta {
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow: 0 10px 24px rgba(242, 183, 5, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.tc-s1-bn-terms {
	padding: 7px 14px;
	background: var(--tc-terms-bg);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.85);
	font-size: 11px;
	line-height: 1.4;
	text-align: center;
}

/* Desktop: vertical side label + content */
.tc-s1-bn--hor {
	display: flex;
	min-height: 250px;
}

.tc-s1-bn-side {
	flex: 0 0 var(--tc-side);
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, var(--tc-label-from), var(--tc-label-to));
	border: 1.5px dashed rgba(255, 255, 255, 0.85);
	border-right: 0;
	border-radius: var(--tc-radius) 0 0 var(--tc-radius);
}

.tc-s1-bn-side span {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}

.tc-s1-bn-main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tc-s1-bn-main .tc-s1-bn-body {
	flex: 1 1 auto;
	padding: 26px 24px;
}

/* Mobile: label strip on top */
.tc-s1-bn--mob {
	display: none;
	flex-direction: column;
}

.tc-s1-bn-label {
	padding: 7px 12px;
	background: linear-gradient(90deg, var(--tc-label-from), var(--tc-label-to));
	border-bottom: 1.5px dashed rgba(255, 255, 255, 0.75);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
}

.tc-s1-bn--mob .tc-s1-bn-body {
	padding: 22px 16px 20px;
	gap: 10px;
}

.tc-s1-bn--mob .tc-s1-bn-offer {
	font-size: 21px;
}

.tc-s1-bn--mob .tc-s1-bn-cta {
	width: 100%;
	max-width: 320px;
	font-size: 17px;
}


.tc-s1-bn--mob .tc-s1-bn-terms {
	font-size: 10px;
}

/* Switch by the banner's own width (sidebar, narrow column) and, as a fallback, by screen width. */
@media (max-width: 600px) {
	.tc-s1-bn--hor { display: none; }
	.tc-s1-bn--mob { display: flex; }
}

@container (max-width: 600px) {
	.tc-s1-bn--hor { display: none; }
	.tc-s1-bn--mob { display: flex; }
}

@container (min-width: 601px) {
	.tc-s1-bn--hor { display: flex; }
	.tc-s1-bn--mob { display: none; }
}

@container (min-width: 601px) and (max-width: 760px) {
	.tc-s1-bn-offer { font-size: 20px; }
}



/* ---------- Polish ---------- */

/* Amounts in the offer */
.tc-s1-hl {
	color: #ffd23f;
	text-shadow: 0 0 18px rgba(255, 196, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.85);
	white-space: nowrap;
}

/* Thin light frame + lift on hover */
.tc-s1-banner {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tc-s1-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	pointer-events: none;
}
.tc-s1-banner:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 38px rgba(10, 16, 40, 0.38);
}
.tc-s1-banner:hover .tc-s1-bn::before {
	opacity: 0.8;
}
.tc-s1-bn::before {
	transition: opacity 0.3s ease;
}

/* CTA: arrow, shine sweep, soft pulse */
.tc-s1-bn-cta {
	position: relative;
	overflow: hidden;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 16px;
	animation: tc-s1-pulse 2.6s ease-in-out infinite;
}
.tc-s1-bn-cta::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
	transform: skewX(-20deg);
	animation: tc-s1-shine 3.2s ease-in-out infinite;
	pointer-events: none;
}
.tc-s1-bn-cta-arrow {
	display: inline-block;
	font-size: 1.15em;
	line-height: 1;
	transition: transform 0.2s ease;
}
.tc-s1-banner:hover .tc-s1-bn-cta-arrow {
	transform: translateX(4px);
}

@keyframes tc-s1-shine {
	0%, 55% { left: -60%; }
	100% { left: 130%; }
}
@keyframes tc-s1-pulse {
	0%, 100% { box-shadow: 0 6px 18px rgba(242, 183, 5, 0.35), 0 0 0 0 rgba(255, 216, 74, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
	50% { box-shadow: 0 6px 18px rgba(242, 183, 5, 0.35), 0 0 0 8px rgba(255, 216, 74, 0), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
}

/* Label: subtle light sweep */
.tc-s1-bn-side,
.tc-s1-bn-label {
	position: relative;
	overflow: hidden;
}
.tc-s1-bn-side::after,
.tc-s1-bn-label::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 40%);
	pointer-events: none;
}

/* Fade-up when the banner scrolls into view (class added by banner.js) */
.tc-s1-wrap.tc-s1-anim {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.tc-s1-wrap.tc-s1-anim.is-visible {
	opacity: 1;
	transform: none;
}

.tc-s1-bn--mob .tc-s1-bn-cta {
	font-size: 15px;
}

/* ---------- Floating banner ---------- */
.tc-s1-float {
	position: fixed;
	left: 50%;
	bottom: 16px;
	z-index: 99990;
	width: calc(100% - 24px);
	max-width: 820px;
	transform: translate(-50%, calc(100% + 40px));
	opacity: 0;
	visibility: hidden;
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0.4s;
	font-family: inherit;
}
.tc-s1-float * {
	box-sizing: border-box;
	font-family: inherit;
}
.tc-s1-float.is-shown {
	transform: translate(-50%, 0);
	opacity: 1;
	visibility: visible;
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, visibility 0s;
}
.tc-s1-float-link,
.tc-s1-float-link:hover,
.tc-s1-float-link:focus,
.tc-s1-float-link:visited {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 72px;
	padding: 10px 56px 10px 20px;
	border-radius: 14px;
	overflow: hidden;
	background-color: #10162c;
	background-size: cover;
	background-position: center;
	color: #fff !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.tc-s1-float-link::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 10, 24, 0.85), rgba(8, 10, 24, 0.55) 50%, rgba(8, 10, 24, 0.85));
	pointer-events: none;
}
.tc-s1-float-link > * {
	position: relative;
}
.tc-s1-float-offer {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.tc-s1-float-cta {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 20px;
	font-size: 14px;
}
.tc-s1-float-close {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 32px;
	height: 32px;
	margin: -16px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 22px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s ease;
}
.tc-s1-float-close:hover,
.tc-s1-float-close:focus-visible {
	background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 600px) {
	.tc-s1-float {
		bottom: 8px;
		width: calc(100% - 16px);
	}
	.tc-s1-float-link,
	.tc-s1-float-link:hover,
	.tc-s1-float-link:focus,
	.tc-s1-float-link:visited {
		flex-wrap: wrap;
		gap: 8px 12px;
		min-height: 0;
		padding: 10px 44px 10px 12px;
	}

	.tc-s1-float-offer {
		flex: 1 1 60%;
		font-size: 13px;
	}
	.tc-s1-float-cta {
		flex: 1 1 100%;
		min-height: 40px;
		padding: 8px 14px;
		font-size: 13px;
	}
	.tc-s1-float-close {
		top: 8px;
		right: 8px;
		width: 28px;
		height: 28px;
		margin: 0;
		font-size: 20px;
		line-height: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-s1-banner,
	.tc-s1-bn-cta,
	.tc-s1-bn-cta-arrow,
	.tc-s1-bn-fade,
	.tc-s1-wrap.tc-s1-anim,
	.tc-s1-float,
	.tc-s1-float.is-shown { transition: none; }
	.tc-s1-bn-cta,
	.tc-s1-bn-cta::after { animation: none; }
	.tc-s1-banner:hover { transform: none; }
	.tc-s1-wrap.tc-s1-anim { opacity: 1; transform: none; }
}
