/**
 * Estilos para WooCommerce Product Coupons
 */

.wcpc-coupons-section {
	margin: 30px 0;
	padding: 20px 0;
	clear: both;
}

.wcpc-coupons-title {
	font-size: 1.5em;
	margin-bottom: 20px;
	color: #333;
	font-weight: 600;
}

.wcpc-coupons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.wcpc-coupon-card {
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px;
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wcpc-coupon-card:hover {
	border-color: #4CAF50;
	box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
	transform: translateY(-2px);
}

.wcpc-coupon-badge {
	position: absolute;
	top: 0;
	right: 0;
	width: 80px;
	height: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 0 12px 0 80px;
	color: #fff;
	font-weight: bold;
	text-align: center;
	line-height: 1.2;
}

.wcpc-badge-percent {
	background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.wcpc-badge-fixed_cart,
.wcpc-badge-fixed_product {
	background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.wcpc-discount-amount {
	font-size: 1.4em;
	display: block;
}

.wcpc-discount-label {
	font-size: 0.7em;
	opacity: 0.9;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.wcpc-coupon-content {
	margin-top: 10px;
}

.wcpc-coupon-code-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.wcpc-coupon-code {
	background: #f5f5f5;
	padding: 10px 15px;
	border-radius: 6px;
	font-family: 'Courier New', monospace;
	font-size: 1.1em;
	font-weight: bold;
	color: #333;
	flex: 1;
	min-width: 150px;
	text-align: center;
	border: 1px dashed #ccc;
}

.wcpc-copy-button {
	background: #4CAF50;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9em;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.wcpc-copy-button:hover {
	background: #45a049;
	transform: scale(1.05);
}

.wcpc-copy-button:active {
	transform: scale(0.98);
}

.wcpc-copy-button.copied {
	background: #2196F3;
}

.wcpc-copy-button.copied .wcpc-copy-text::after {
	content: " ✓";
}

.wcpc-copy-icon {
	font-size: 1.1em;
}

.wcpc-coupon-description {
	color: #666;
	font-size: 0.9em;
	margin: 10px 0;
	line-height: 1.5;
}

.wcpc-coupon-expiry {
	color: #888;
	font-size: 0.85em;
	margin: 10px 0 0 0;
}

.wcpc-coupon-expiry strong {
	color: #555;
}

/* Toast de notificação */
.wcpc-toast {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: #4CAF50;
	color: #fff;
	padding: 15px 25px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	font-weight: 500;
}

.wcpc-toast.show {
	opacity: 1;
	transform: translateY(0);
}

.wcpc-toast.error {
	background: #f44336;
}

/* Responsividade */
@media (max-width: 768px) {
	.wcpc-coupons-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.wcpc-coupon-card {
		padding: 15px;
	}

	.wcpc-coupon-code-wrapper {
		flex-direction: column;
	}

	.wcpc-coupon-code {
		width: 100%;
		min-width: auto;
	}

	.wcpc-copy-button {
		width: 100%;
		justify-content: center;
	}

	.wcpc-toast {
		bottom: 20px;
		right: 20px;
		left: 20px;
		right: 20px;
	}
}

@media (max-width: 480px) {
	.wcpc-coupons-title {
		font-size: 1.3em;
	}

	.wcpc-coupon-badge {
		width: 60px;
		height: 60px;
	}

	.wcpc-discount-amount {
		font-size: 1.1em;
	}

	.wcpc-discount-label {
		font-size: 0.6em;
	}
}

