/**
 * Wallet Cupom — estilos do widget de front-end.
 */

.wcpm-widget {
	max-width: 380px;
	margin: 16px 0;
	font-family: inherit;
}

/* Blindagem: alguns temas/page builders resetam o atributo [hidden] nativo do
   navegador (ex: "a { display: inline-block !important }"). Forçamos aqui
   para garantir que os elementos realmente fiquem ocultos até o JS liberá-los. */
.wcpm-widget [hidden] {
	display: none !important;
}

.wcpm-widget-inner {
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	text-align: center;
}

.wcpm-coupon-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 16px;
}

.wcpm-coupon-discount {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
}

.wcpm-coupon-code {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 2px;
	color: #444;
	background: #f5f5f5;
	border-radius: 6px;
	padding: 4px 10px;
	display: inline-block;
	margin: 0 auto;
}

.wcpm-coupon-expiry {
	font-size: 12px;
	color: #888;
	margin-top: 4px;
}

.wcpm-generate-btn {
	width: 100%;
	padding: 12px 16px;
	background: #111111;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.wcpm-generate-btn:hover {
	opacity: 0.85;
}

.wcpm-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 0;
	color: #666;
	font-size: 14px;
}

.wcpm-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #ccc;
	border-top-color: #111;
	border-radius: 50%;
	display: inline-block;
	animation: wcpm-spin 0.7s linear infinite;
}

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

.wcpm-result {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.wcpm-wallet-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.wcpm-apple-btn {
	background: #000000;
	color: #ffffff;
}

.wcpm-google-btn {
	background: #ffffff;
	color: #1a1a1a;
	border: 1px solid #d0d0d0;
}

.wcpm-share-link {
	font-size: 13px;
	color: #666;
	text-decoration: underline;
}

.wcpm-error {
	margin-top: 10px;
	color: #b32d2e;
	font-size: 13px;
}

.wcpm-expired {
	border: 1px solid #eecccc;
	background: #fdf3f3;
	border-radius: 10px;
	padding: 16px;
	color: #b32d2e;
	text-align: center;
}
