/**
 * Standalone styling for the HW coupon popup.
 *
 * Derived from the referral plugin's original popup CSS but with neutral class names
 * and no theme-variable dependencies, so the popup is fully self-contained.
 */

.hw-coupon-popup {
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s, opacity 0.3s ease;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: calc(100% - 100px);
	z-index: 2147483000;
	display: flex;
	align-items: center;
	width: 100%;
	padding: 1.5rem 1rem 1.25rem;
	background-color: #fff;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hw-coupon-popup__icon {
	flex: 0 0 auto;
	margin: 0 0.75rem;
	font-size: 32px;
	line-height: 1;
}

.hw-coupon-popup__body {
	flex: 1 1 auto;
	margin: 0 1rem;
}

.hw-coupon-popup__body p {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
}

.hw-coupon-popup__close {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	color: #888;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.hw-coupon-popup__close:hover {
	color: #5f6fff;
}

@media screen and (min-width: 450px) {
	.hw-coupon-popup__body p {
		font-size: 1rem;
	}

	.hw-coupon-popup__icon {
		font-size: 40px;
	}
}

@media screen and (min-width: 600px) {
	.hw-coupon-popup {
		top: auto;
		bottom: 2rem;
		width: 480px;
		margin: 0 auto;
		border-radius: 20px;
	}
}
