/**
 * Cotizaciones PDF - front-end styles.
 */

.cpdf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 24px 0;
}

.cpdf-button {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.2;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cpdf-button--primary {
	background-color: #1a5fb4;
	border-color: #1a5fb4;
	color: #ffffff;
}

.cpdf-button--primary:hover,
.cpdf-button--primary:focus {
	background-color: #144a8c;
	border-color: #144a8c;
	color: #ffffff;
}

.cpdf-button--secondary {
	background-color: #ffffff;
	border-color: #1a5fb4;
	color: #1a5fb4;
}

.cpdf-button--secondary:hover,
.cpdf-button--secondary:focus {
	background-color: #f0f5fc;
	color: #144a8c;
}

.cpdf-button--ghost {
	background-color: transparent;
	border-color: #c3c4c7;
	color: #3c434a;
}

.cpdf-button--ghost:hover,
.cpdf-button--ghost:focus {
	background-color: #f6f7f7;
	color: #1d2327;
}

.cpdf-button[disabled],
.cpdf-button[aria-disabled="true"] {
	opacity: 0.65;
	cursor: not-allowed;
}

.cpdf-button.is-loading {
	cursor: progress;
}

.cpdf-spinner {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
	vertical-align: -0.15em;
	animation: cpdf-spin 0.8s linear infinite;
}

@keyframes cpdf-spin {
	to { transform: rotate(360deg); }
}

@media ( prefers-reduced-motion: reduce ) {
	.cpdf-spinner { animation: none; }
}

.cpdf-actions__message {
	flex-basis: 100%;
	margin: 0;
	font-size: 14px;
}

.cpdf-actions__message:empty {
	display: none;
}

.cpdf-actions__message--error {
	color: #b32d2e;
}

/* ------------------------------------------------------------------ Modal */

body.cpdf-modal-open {
	overflow: hidden;
}

.cpdf-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.cpdf-modal.is-open {
	display: block;
}

.cpdf-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.cpdf-modal__dialog {
	position: relative;
	max-width: 460px;
	margin: 7px auto;
	padding: 7px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
	max-height: 92vh;
	overflow-y: auto;
}

.cpdf-modal__close {
	position: absolute;
	top: 7px;
	right: 7px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #646970;
	cursor: pointer;
}

.cpdf-modal__close:hover,
.cpdf-modal__close:focus {
	color: #1d2327;
}

.cpdf-modal__title,
.cpdf-modal__description,
.cpdf-modal__actions,
.cpdf-modal__message,
.cpdf-field {
	margin: 7px;
}

.cpdf-modal__title {
	font-size: 20px;
	line-height: 1.3;
}

.cpdf-modal__description {
	color: #50575e;
	font-size: 14px;
}

.cpdf-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 600;
}

.cpdf-input {
	width: 100%;
	padding: 7px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.cpdf-input:focus {
	border-color: #1a5fb4;
	outline: 2px solid rgba(26, 95, 180, 0.25);
	outline-offset: 1px;
}

.cpdf-honeypot {
	display: none !important;
}

.cpdf-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.cpdf-modal__message {
	font-size: 14px;
	min-height: 1px;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.cpdf-modal__message--info {
	color: #50575e;
}

.cpdf-modal__message--success {
	color: #1c7c33;
}

.cpdf-field__help {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: #50575e;
}

.cpdf-modal__message--error {
	color: #b32d2e;
}

@media ( max-width: 520px ) {
	.cpdf-modal__dialog {
		margin: 7px;
		padding: 7px;
	}

	.cpdf-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cpdf-button {
		text-align: center;
	}
}

@media print {
	.cpdf-actions,
	.cpdf-modal,
	.no-print {
		display: none !important;
	}
}
