/* Revelacao PDF Download v2.0.0 */

.rpd-download-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px 0;
}

.rpd-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	text-decoration: none !important;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
	letter-spacing: 0.3px;
	flex: 1 1 180px;
	max-width: 260px;
	justify-content: center;
}

.rpd-btn:disabled {
	opacity: 0.65;
	cursor: default;
}

.rpd-btn-pdf {
	background: #c0392b;
	box-shadow: 0 2px 8px rgba(192,57,43,0.35);
}

.rpd-btn-pdf:hover:not(:disabled) {
	background: #a93226;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(192,57,43,0.45);
}

.rpd-btn-pdf:active:not(:disabled) {
	transform: translateY(0);
}

.rpd-btn-copiar {
	background: #16294d;
	box-shadow: 0 2px 8px rgba(22,41,77,0.35);
}

.rpd-btn-copiar:hover:not(:disabled) {
	background: #1d3a66;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(22,41,77,0.45);
}

.rpd-btn-copiar:active:not(:disabled) {
	transform: translateY(0);
}

.rpd-btn-copiar.rpd-copiado {
	background: #1a7a3a;
}

.rpd-btn-copiar.rpd-erro {
	background: #8b1a1a;
}

.rpd-btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 520px) {
	.rpd-download-wrap {
		flex-direction: column;
		gap: 8px;
	}
	.rpd-btn {
		flex: 1 1 100%;
		max-width: 100%;
		padding: 13px 22px;
		font-size: 15px;
	}
}

.rpd-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.65);
	z-index: 99998;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(2px);
}

.rpd-overlay.rpd-open {
	display: flex;
	animation: rpd-fade-in 0.2s ease;
}

@keyframes rpd-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.rpd-popup {
	background: #fff;
	border-radius: 12px;
	padding: 40px 36px 36px;
	max-width: 440px;
	width: 100%;
	text-align: center;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	animation: rpd-slide-up 0.25s ease;
}

@keyframes rpd-slide-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rpd-popup-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.rpd-popup-close:hover {
	color: #333;
	background: #f0f0f0;
}

.rpd-popup-icon {
	font-size: 48px;
	margin-bottom: 16px;
	line-height: 1;
}

.rpd-popup h3 {
	font-size: 22px;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.rpd-popup p {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 20px 0;
}

.rpd-popup-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 28px;
	background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	text-decoration: none !important;
	border-radius: 8px;
	transition: opacity 0.2s, transform 0.15s;
	box-shadow: 0 4px 15px rgba(192,57,43,0.4);
	margin-bottom: 18px;
}

.rpd-popup-cta:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.rpd-popup-divider {
	border: none;
	border-top: 1px solid #eee;
	margin: 0 0 16px 0;
}

.rpd-popup-login {
	font-size: 13px;
	color: #777;
	margin: 0 !important;
}

.rpd-popup-login a {
	color: #c0392b;
	font-weight: 600;
	text-decoration: none;
}

.rpd-popup-login a:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.rpd-popup {
		padding: 32px 22px 28px;
	}
	.rpd-popup h3 {
		font-size: 19px;
	}
}
