
/* ==========================================================================
   TanieKupowanie - Newsletter Banner & First Purchase Discount (-30%)
   Google Stitch Pastel Blue Theme
   ========================================================================== */

.tk-newsletter-section {
	width: 100%;
	padding: 1.5rem 1rem 2.5rem 1rem;
	box-sizing: border-box;
}

.tk-newsletter-container {
	max-width: 1200px;
	margin: 0 auto;
}

.tk-newsletter-card {
	background: #eef7fc;
	border: 1.5px solid #d4e8f5;
	border-radius: 28px;
	padding: 2.25rem 2.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	box-shadow: 0 8px 30px rgba(180, 215, 235, 0.18);
	position: relative;
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tk-newsletter-card:hover {
	box-shadow: 0 12px 36px rgba(180, 215, 235, 0.28);
	border-color: #c4e0f2;
}

/* 1. Mascot */
.tk-newsletter-mascot {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tk-newsletter-mascot img {
	width: 90px;
	height: auto;
	max-height: 95px;
	object-fit: contain;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.04));
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tk-newsletter-card:hover .tk-newsletter-mascot img {
	transform: scale(1.06) rotate(-3deg);
}

/* 2. Middle Content */
.tk-newsletter-content {
	flex: 1;
	min-width: 0;
	padding-right: 1rem;
}

.tk-newsletter-tagline-row {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.5rem;
}

.tk-newsletter-badge-super {
	background: #ff5959;
	color: #ffffff;
	font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.685rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.25rem 0.65rem;
	border-radius: 9999px;
	box-shadow: 0 2px 6px rgba(255, 89, 89, 0.35);
}

.tk-newsletter-tag-sub {
	color: #f87158;
	font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
}

.tk-newsletter-heading {
	font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 1.65rem;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 0.45rem 0;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.tk-newsletter-desc {
	font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.885rem;
	line-height: 1.48;
	color: #64748b;
	margin: 0 0 0.95rem 0;
	max-width: 600px;
}

.tk-newsletter-benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.tk-benefit-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #ffffff;
	border: 1px solid #d4e8f5;
	border-radius: 9999px;
	padding: 0.3rem 0.85rem;
	font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.775rem;
	font-weight: 700;
	color: #334155;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* 3. Form Column */
.tk-newsletter-form-col {
	flex-shrink: 0;
	width: 100%;
	max-width: 440px;
}

.tk-newsletter-form {
	position: relative;
}

.tk-newsletter-input-pill {
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 1.5px solid #d0e4f2;
	border-radius: 9999px;
	padding: 0.35rem 0.35rem 0.35rem 1.35rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tk-newsletter-input-pill:focus-within {
	border-color: #f87158;
	box-shadow: 0 0 0 4px rgba(248, 113, 88, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tk-newsletter-input {
	flex: 1;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.925rem;
	font-weight: 600;
	color: #1e293b;
	padding: 0.45rem 0.5rem 0.45rem 0;
	min-width: 0;
}

.tk-newsletter-input::placeholder {
	color: #94a3b8;
	font-weight: 500;
}

.tk-newsletter-btn {
	background: linear-gradient(135deg, #f87158 0%, #ff5c5c 100%);
	color: #ffffff !important;
	border: none;
	border-radius: 9999px;
	padding: 0.85rem 1.5rem;
	font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.885rem;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(248, 113, 88, 0.38);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tk-newsletter-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(248, 113, 88, 0.48);
	filter: brightness(1.03);
}

.tk-newsletter-btn:active {
	transform: translateY(0);
}

.tk-newsletter-btn.is-loading .tk-btn-text {
	opacity: 0.4;
}

.tk-newsletter-btn.is-loading .tk-btn-spinner {
	display: inline-block;
}

.tk-btn-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: tk-spin 0.6s linear infinite;
	margin-left: 0.5rem;
}

@keyframes tk-spin {
	to { transform: rotate(360deg); }
}

/* Feedback message */
.tk-newsletter-feedback {
	margin-top: 0.75rem;
	padding: 0.65rem 1rem;
	border-radius: 12px;
	font-family: 'Quicksand', sans-serif;
	font-size: 0.825rem;
	font-weight: 700;
	line-height: 1.4;
}

.tk-newsletter-feedback.is-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.tk-newsletter-feedback.is-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.tk-coupon-copy-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #ffffff;
	border: 1px dashed #10b981;
	border-radius: 6px;
	padding: 0.15rem 0.5rem;
	margin-top: 0.35rem;
	font-family: monospace;
	font-size: 0.9rem;
	cursor: pointer;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 991px) {
	.tk-newsletter-card {
		flex-direction: column;
		text-align: center;
		padding: 2rem 1.5rem;
		gap: 1.5rem;
	}

	.tk-newsletter-content {
		padding-right: 0;
	}

	.tk-newsletter-tagline-row,
	.tk-newsletter-benefits {
		justify-content: center;
	}

	.tk-newsletter-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.tk-newsletter-form-col {
		max-width: 500px;
	}
}

@media (max-width: 540px) {
	.tk-newsletter-input-pill {
		flex-direction: column;
		border-radius: 20px;
		padding: 0.65rem;
		gap: 0.5rem;
	}

	.tk-newsletter-input {
		width: 100%;
		text-align: center;
		padding: 0.5rem;
	}

	.tk-newsletter-btn {
		width: 100%;
		border-radius: 14px;
	}

	.tk-newsletter-heading {
		font-size: 1.35rem;
	}
}
