/* Typography & Reset */
.wc-eic-popup-overlay,
.wc-eic-reminder-badge {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wc-eic-popup-overlay *,
.wc-eic-reminder-badge * {
	box-sizing: border-box;
}

/* Modal Overlay */
.wc-eic-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.6) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
	padding: 20px;
}

.wc-eic-popup-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Modal Card */
.wc-eic-popup-modal {
	background: #ffffff;
	border-radius: 24px;
	padding: 48px 40px 40px;
	width: 100%;
	max-width: 520px;
	position: relative;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	transform: scale(0.9) translateY(20px);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	text-align: center;
	overflow: hidden;
}

.wc-eic-popup-overlay.active .wc-eic-popup-modal {
	transform: scale(1) translateY(0);
}

/* Decorative background elements */
.wc-eic-popup-modal::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -80px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, var(--wc-eic-primary, #ff3366) 0%, transparent 70%);
	opacity: 0.1;
	pointer-events: none;
}

.wc-eic-popup-modal::after {
	content: '';
	position: absolute;
	bottom: -60px;
	left: -60px;
	width: 160px;
	height: 160px;
	background: radial-gradient(circle, var(--wc-eic-primary, #ff3366) 0%, transparent 70%);
	opacity: 0.08;
	pointer-events: none;
}

/* Close button */
.wc-eic-close-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(148, 163, 184, 0.1);
	border: none;
	font-size: 20px;
	color: #64748b;
	cursor: pointer;
	line-height: 1;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	border-radius: 50%;
	width: 40px;
	height: 40px;
}

.wc-eic-close-btn:hover {
	background: rgba(148, 163, 184, 0.15);
	color: #0f172a;
	transform: rotate(90deg);
}

/* Logo and Icon styling */
.wc-eic-logo-container {
	margin-bottom: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.wc-eic-logo {
	max-height: 70px;
	max-width: 200px;
	height: auto;
	width: auto;
	object-fit: contain;
}

.wc-eic-popup-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	background: linear-gradient(135deg, rgba(255, 51, 102, 0.08) 0%, rgba(255, 51, 102, 0.02) 100%);
	color: var(--wc-eic-primary, #ff3366);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(255, 51, 102, 0.15);
	border: 2px solid rgba(255, 51, 102, 0.15);
}

.wc-eic-popup-icon svg {
	width: 32px;
	height: 32px;
	stroke-width: 1.75;
}

/* Typography */
.wc-eic-headline {
	font-size: 32px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 12px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.wc-eic-description {
	font-size: 16px;
	color: #64748b;
	margin: 0 0 32px;
	line-height: 1.6;
	font-weight: 400;
}

/* Timer styles */
.wc-eic-timer-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 36px;
}

.wc-eic-timer-segment {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 12px 18px;
	min-width: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wc-eic-timer-segment span:first-child {
	font-size: 28px;
	font-weight: 800;
	color: var(--wc-eic-primary, #ff3366);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.wc-eic-timer-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: #94a3b8;
	margin-top: 4px;
	letter-spacing: 0.1em;
}

.wc-eic-timer-separator {
	font-size: 32px;
	font-weight: 300;
	color: #cbd5e1;
	line-height: 1;
	padding-bottom: 16px;
}

/* Coupon Box */
.wc-eic-coupon-box {
	display: flex;
	background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
	border: 2px dashed rgba(148, 163, 184, 0.35);
	border-radius: 18px;
	padding: 8px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	transition: all 0.25s ease;
}

.wc-eic-coupon-box:hover {
	border-color: var(--wc-eic-primary, #ff3366);
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(255, 51, 102, 0.08);
	transform: translateY(-2px);
}

.wc-eic-coupon-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: 0.12em;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: center;
}

.wc-eic-copy-btn {
	background: linear-gradient(135deg, var(--wc-eic-primary, #ff3366) 0%, #d92d5a 100%);
	color: #fff;
	border: none;
	border-radius: 14px;
	padding: 14px 24px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 14px rgba(255, 51, 102, 0.35);
}

.wc-eic-copy-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 51, 102, 0.45);
	filter: brightness(1.05);
}

.wc-eic-copy-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(255, 51, 102, 0.35);
}

.wc-eic-copy-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	filter: none;
}

.wc-eic-copy-icon {
	width: 16px;
	height: 16px;
	stroke-width: 2;
}

/* Loader */
.wc-eic-loader {
	width: 24px;
	height: 24px;
	border: 3px solid rgba(15, 23, 42, 0.1);
	border-bottom-color: var(--wc-eic-primary, #ff3366);
	border-radius: 50%;
	display: inline-block;
	box-sizing: border-box;
	animation: wc-eic-rotation 0.75s linear infinite;
}

@keyframes wc-eic-rotation {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Floating Badge */
.wc-eic-reminder-badge {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	z-index: 999998;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	transform: translateY(100px) scale(0.95);
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	max-width: calc(100% - 48px);
}

.wc-eic-reminder-badge.active {
	transform: translateY(0) scale(1);
	opacity: 1;
	visibility: visible;
}

.wc-eic-reminder-badge-content {
	display: flex;
	align-items: center;
	gap: 16px;
}

.wc-eic-badge-text {
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	line-height: 1.4;
}

.wc-eic-badge-text strong {
	color: var(--wc-eic-primary, #ff3366);
	font-weight: 800;
	background: rgba(255, 51, 102, 0.08);
	border: 1px dashed var(--wc-eic-primary, #ff3366);
	padding: 4px 10px;
	border-radius: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 13px;
	letter-spacing: 0.08em;
	margin: 0 6px;
	display: inline-block;
}

.wc-eic-badge-text span {
	font-weight: 700;
	color: var(--wc-eic-primary, #ff3366);
}

.wc-eic-badge-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	border-left: 1px solid #e2e8f0;
	padding-left: 14px;
	margin-left: 4px;
}

.wc-eic-badge-actions button {
	background: rgba(148, 163, 184, 0.1);
	border: none;
	cursor: pointer;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border-radius: 50%;
	transition: all 0.2s ease;
	width: 36px;
	height: 36px;
}

.wc-eic-badge-actions button:hover {
	background: rgba(255, 51, 102, 0.1);
	color: var(--wc-eic-primary, #ff3366);
	transform: translateY(-1px);
}

#wc-eic-badge-reopen svg {
	width: 16px;
	height: 16px;
	stroke-width: 2;
}

#wc-eic-badge-close {
	font-size: 20px;
	line-height: 1;
}

/* Responsive Mobile Styling */
@media (max-width: 640px) {
	.wc-eic-popup-modal {
		padding: 40px 24px 28px;
		border-radius: 20px;
	}

	.wc-eic-popup-icon {
		width: 70px;
		height: 70px;
	}

	.wc-eic-popup-icon svg {
		width: 28px;
		height: 28px;
	}

	.wc-eic-headline {
		font-size: 26px;
	}

	.wc-eic-description {
		font-size: 15px;
	}

	.wc-eic-timer-segment {
		min-width: 70px;
		padding: 10px 14px;
	}

	.wc-eic-timer-segment span:first-child {
		font-size: 24px;
	}

	.wc-eic-coupon-code {
		font-size: 17px;
		letter-spacing: 0.1em;
	}

	.wc-eic-copy-btn {
		padding: 12px 16px;
		font-size: 13px;
	}

	.wc-eic-reminder-badge {
		bottom: 16px;
		left: 16px;
		right: 16px;
		border-radius: 16px;
		padding: 12px 14px;
		max-width: none;
	}

	.wc-eic-reminder-badge-content {
		width: 100%;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 10px;
	}

	.wc-eic-badge-text {
		font-size: 13px;
	}

	.wc-eic-badge-text strong {
		font-size: 12px;
		padding: 3px 8px;
	}

	.wc-eic-badge-actions {
		border-left: none;
		padding-left: 0;
		margin-left: 0;
	}
}

@media (max-width: 400px) {
	.wc-eic-coupon-box {
		flex-direction: column;
		gap: 10px;
	}

	.wc-eic-copy-btn {
		width: 100%;
		justify-content: center;
	}

	.wc-eic-coupon-code {
		padding: 10px 12px;
	}
}
