/**
 * WP Push Master - Public CSS
 */

/* Widget flotante */
#wpm-subscription-widget {
	position: fixed;
	bottom: 20px;
	right: 20px;
	max-width: 380px;
	z-index: 999999;
	animation: wpmSlideIn 0.4s ease-out;
}

@keyframes wpmSlideIn {
	from {
		transform: translateY(100px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.wpm-widget-inner {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	padding: 24px;
	position: relative;
}

.wpm-widget-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	transition: all 0.2s;
}

.wpm-widget-close:hover {
	background: #f0f0f0;
	color: #333;
}

.wpm-widget-icon {
	font-size: 48px;
	text-align: center;
	margin-bottom: 16px;
}

.wpm-widget-content {
	text-align: center;
	margin-bottom: 20px;
}

.wpm-widget-title {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.wpm-widget-message {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

.wpm-widget-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Botones */
.wpm-btn-primary,
.wpm-subscribe-btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: #0073aa;
	color: #fff !important;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: all 0.2s;
	line-height: 1;
}

.wpm-btn-primary:hover,
.wpm-subscribe-btn:hover {
	background: #005a87;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.wpm-btn-text,
.wpm-widget-dismiss {
	display: block;
	width: 100%;
	padding: 10px;
	background: transparent;
	color: #666;
	border: none;
	cursor: pointer;
	font-size: 14px;
	text-decoration: none;
	text-align: center;
	transition: color 0.2s;
}

.wpm-btn-text:hover,
.wpm-widget-dismiss:hover {
	color: #333;
}

.wpm-unsubscribe-btn {
	background: #d63638;
	color: #fff !important;
	padding: 10px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
}

.wpm-unsubscribe-btn:hover {
	background: #b32d2e;
}

.wpm-widget-subscribed {
	text-align: center;
}

.wpm-success-message {
	font-size: 16px;
	color: #46b450;
	margin: 0 0 16px 0;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
	#wpm-subscription-widget {
		right: 10px;
		left: 10px;
		max-width: none;
		bottom: 10px;
	}

	.wpm-widget-inner {
		padding: 20px;
	}

	.wpm-widget-icon {
		font-size: 40px;
	}

	.wpm-widget-title {
		font-size: 18px;
	}
}

/* Segmentos */
.wpm-segment-selector {
	margin: 20px 0;
	text-align: left;
	max-height: 200px;
	overflow-y: auto;
}

.wpm-segment-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px 0;
	color: #333;
}

.wpm-segment-checkbox {
	display: flex;
	align-items: flex-start;
	margin: 0 0 10px 0;
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
	border: 1px solid #e0e0e0;
}

.wpm-segment-checkbox:hover {
	background: #f8f9fa;
	border-color: #0073aa;
}

.wpm-segment-checkbox-input {
	margin: 2px 10px 0 0;
	cursor: pointer;
	flex-shrink: 0;
}

.wpm-segment-label {
	flex: 1;
	font-size: 14px;
	color: #333;
	line-height: 1.4;
}

.wpm-segment-label small {
	display: block;
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

/* Utilidades */
.wpm-widget-hidden {
	display: none !important;
}
