/**
 * Freefactu Modal Styles
 *
 * Common styles for modals used throughout the plugin.
 *
 * @package Freefactu
 * @since 1.3.0
 */

/* Modal overlay */
.freefactu-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

/* Modal container */
.freefactu-modal-overlay .freefactu-modal {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Modal header */
.freefactu-modal-overlay .freefactu-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 25px;
	border-bottom: 1px solid #dcdcde;
	background: #f9f9f9;
}

/* Modal close button */
.freefactu-modal-overlay .freefactu-modal-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	color: #666;
	border-radius: 4px;
	transition: background-color 0.15s, color 0.15s;
}

.freefactu-modal-overlay .freefactu-modal-close:hover {
	background: #e0e0e0;
	color: #1d2327;
}

/* Modal body */
.freefactu-modal-overlay .freefactu-modal-body {
	overflow-y: auto;
	flex: 1;
}

/* Modal footer (base style for all modals) */
.freefactu-modal-footer {
	padding: 15px 25px;
	background: #f6f7f7;
	border-top: 1px solid #dcdcde;
	text-align: right;
	border-radius: 0 0 8px 8px;
}

/* SIF Page Modal Styles */
.freefactu-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.freefactu-modal .freefactu-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	z-index: 1;
}

.freefactu-modal .freefactu-modal-container {
	position: relative;
	z-index: 2;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	animation: freefactuModalIn 0.2s ease-out;
}

@keyframes freefactuModalIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(-10px);
	}

	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.freefactu-modal .freefactu-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #e0e0e0;
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
	border-radius: 12px 12px 0 0;
}

.freefactu-modal .freefactu-modal-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: background-color 0.15s ease;
	color: #646970;
}

.freefactu-modal .freefactu-modal-close:hover {
	background: #f0f0f1;
	color: #1d2327;
}

.freefactu-modal .freefactu-modal-close .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.freefactu-modal .freefactu-modal-body {
	padding: 24px;
	overflow-y: auto;
}

/* ==========================================================================
   WIZARD STEP STYLES
   ========================================================================== */

/* Wizard Steps Container */
.freefactu-wizard-steps {
	display: flex;
	margin-bottom: 30px;
	padding: 0 20px;
}

/* Individual Step */
.freefactu-wizard-step {
	flex: 1;
	text-align: center;
	position: relative;
}

/* Step Number Circle */
.freefactu-wizard-step .step-number {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #dcdcde;
	color: #50575e;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	margin-bottom: 8px;
}

/* Step Label */
.freefactu-wizard-step .step-label {
	font-size: 13px;
	color: #646970;
}

/* Step Connector Line */
.freefactu-wizard-step .step-connector {
	position: absolute;
	top: 18px;
	left: 50%;
	width: 100%;
	height: 2px;
	background: #dcdcde;
	z-index: -1;
}

/* Active Step */
.freefactu-wizard-step.active .step-number {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%) !important;
	color: #fff !important;
}

.freefactu-wizard-step.active .step-label {
	color: #1d2327 !important;
	font-weight: 600;
}

/* Completed Step */
.freefactu-wizard-step.completed .step-number {
	background: linear-gradient(135deg, #46b450 0%, #2e7d32 100%) !important;
	color: #fff !important;
}

.freefactu-wizard-step.completed .step-label {
	color: #46b450 !important;
	font-weight: 600;
}

.freefactu-wizard-step.completed .step-connector {
	background: #46b450 !important;
}

/* ==========================================================================
   NOTICE BOXES
   ========================================================================== */

/* Base Notice */
.freefactu-notice {
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.freefactu-notice-content {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.freefactu-notice-icon {
	font-size: 24px;
	line-height: 1;
	margin-top: 2px;
}

.freefactu-notice-title {
	display: block;
	margin-bottom: 4px;
}

.freefactu-notice-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
}

/* Warning Notice */
.freefactu-notice-warning {
	background: linear-gradient(135deg, #fff8e5 0%, #fff3d6 100%);
	border: 1px solid #ffb900;
	border-left: 4px solid #ffb900;
}

.freefactu-notice-warning .freefactu-notice-title {
	color: #996800;
}

.freefactu-notice-warning .freefactu-notice-text {
	color: #5c4a00;
}

/* Info Notice */
.freefactu-notice-info {
	background: linear-gradient(135deg, #f0f6fc 0%, #e8f4fd 100%);
	border: 1px solid #2271b1;
	border-left: 4px solid #2271b1;
}

.freefactu-notice-info .freefactu-notice-title {
	color: #135e96;
}

.freefactu-notice-info .freefactu-notice-text {
	color: #1e4e79;
}

/* Success Notice */
.freefactu-notice-success {
	background: linear-gradient(135deg, #edfaef 0%, #d4edda 100%);
	border: 1px solid #46b450;
	border-left: 4px solid #46b450;
}

.freefactu-notice-success .freefactu-notice-title {
	color: #1e7e34;
}

.freefactu-notice-success .freefactu-notice-text {
	color: #155724;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

/* Form Section */
.freefactu-form-section {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 20px;
}

/* Form Section Title */
.freefactu-form-section-title {
	margin: 0 0 16px;
	color: #1d2327;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Emoji icons in form section titles */
.freefactu-form-section-title>span:first-child {
	font-size: 20px;
	line-height: 1;
}

/* Form Section Description */
.freefactu-form-section-desc {
	margin: 0 0 16px;
	color: #646970;
	font-size: 13px;
}

/* Form Row */
.freefactu-form-row {
	margin-bottom: 16px;
}

.freefactu-form-row:last-child {
	margin-bottom: 0;
}

/* Two Column Grid */
.freefactu-form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.freefactu-form-grid-2-narrow {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 12px;
}

/* Form Actions Footer */
.freefactu-form-actions {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	justify-content: flex-end;
}

.freefactu-form-actions-between {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
}

/* Full Width Input */
.freefactu-input-full {
	width: 100%;
}

/* Code/Short Input (wider than small-text) */
.freefactu-input-code {
	width: 150px !important;
}

/* Required Field Asterisk */
.freefactu-required {
	color: #d63638;
}

/* Help Icon */
.freefactu-help-icon {
	color: #646970;
	cursor: help;
	font-size: 16px;
	vertical-align: middle;
}

/* Lock Icon */
.freefactu-lock-icon {
	color: #646970;
	font-size: 14px;
}

/* Inline Data Card */
.freefactu-data-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 16px;
}

/* Data Label */
.freefactu-data-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: #646970;
	margin-bottom: 2px;
}

/* Data Value */
.freefactu-data-value {
	font-size: 14px;
	color: #1d2327;
}

/* Data Row with bottom margin */
.freefactu-data-row {
	margin-bottom: 12px;
}

.freefactu-data-row:last-child {
	margin-bottom: 0;
}

/* Code Badge (inline) */
.freefactu-code-badge {
	font-size: 13px;
	background: #f0f0f1;
	padding: 2px 6px;
	border-radius: 3px;
}

/* Form Label */
.freefactu-label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: #1d2327;
	font-size: 13px;
}

/* Form Subsection Title */
.freefactu-subsection-title {
	margin: 0 0 8px;
	color: #50575e;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Icon Colors */
.freefactu-icon-primary {
	color: #2271b1;
}

.freefactu-icon-success {
	color: #46b450;
}

.freefactu-icon-warning {
	color: #ffb900;
}

.freefactu-icon-danger {
	color: #d63638;
}

/* Error State */
.freefactu-error-state {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #d63638;
}

.freefactu-error-title {
	display: block;
	margin-bottom: 4px;
}

.freefactu-error-text {
	margin: 0;
	font-size: 13px;
}

/* Spacing Utilities */
.freefactu-mb-12 {
	margin-bottom: 12px;
}

.freefactu-mb-16 {
	margin-bottom: 16px;
}

.freefactu-mt-10 {
	margin-top: 10px;
}

.freefactu-mt-12 {
	margin-top: 12px;
}

/* Info Link */
.freefactu-info-link {
	font-size: 12px;
	color: #2271b1;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.freefactu-info-link .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Form Card (white box inside section) */
.freefactu-form-card {
	margin-bottom: 16px;
	padding: 16px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

/* Description text under inputs */
.freefactu-field-desc {
	margin-top: 4px;
	color: #646970;
	font-size: 11px;
}

/* Modal Container Width */
.freefactu-modal-container--wide {
	max-width: 900px;
}

.freefactu-modal-container--medium {
	max-width: 800px;
}

/* Modal Title */
.freefactu-modal-title {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.freefactu-modal-title-icon {
	font-size: 24px;
}

/* Table row hover */
.freefactu-sif-section table tbody tr:hover {
	background-color: #f8f9fa !important;
}

/* ==========================================================================
   PROGRESS LIST STYLES (JS Dynamic)
   ========================================================================== */

.freefactu-progress-item {
	padding: 6px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.freefactu-progress-icon {
	font-size: 16px;
	line-height: 1;
}

.freefactu-progress-status {
	margin-left: auto;
	color: #646970;
}

.freefactu-progress-status .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	vertical-align: middle;
}

.freefactu-progress-spinner {
	color: #2271b1;
}

.freefactu-progress-check {
	color: #46b450;
}

/* ==========================================================================
   SIF PAGE STYLES
   Styles migrated from sif-page.php inline styles
   ========================================================================== */

/* SIF Container */
.freefactu-sif-container {
	max-width: 1000px;
}

/* SIF Warning Box */
.freefactu-sif-warning {
	background: linear-gradient(135deg, #fff8e5 0%, #fff3d6 100%);
	border: 1px solid #ffb900;
	border-left: 4px solid #ffb900;
	border-radius: 8px;
	padding: 20px 24px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.freefactu-sif-warning-content {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.freefactu-sif-warning-icon {
	font-size: 32px;
	line-height: 1;
}

.freefactu-sif-warning-title {
	color: #996800;
	font-size: 16px;
	display: block;
	margin-bottom: 6px;
}

.freefactu-sif-warning-text {
	margin: 0;
	color: #5c4a00;
	line-height: 1.6;
}

.freefactu-sif-warning-text code {
	background: #fff;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
}

/* SIF Section Card */
.freefactu-sif-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.freefactu-sif-section--legal {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 16px 20px;
	font-size: 12px;
	color: #646970;
}

.freefactu-sif-section--legal strong {
	color: #50575e;
}

.freefactu-sif-section--legal .freefactu-legal-text {
	margin-left: 12px;
}

/* Section Header */
.freefactu-sif-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f1;
}

.freefactu-sif-section-title {
	margin: 0;
	font-size: 20px;
	color: #1d2327;
	display: flex;
	align-items: center;
	gap: 10px;
}

.freefactu-sif-section-title-icon {
	color: #2271b1;
	font-size: 24px;
}

.freefactu-sif-section-subtitle {
	margin: 6px 0 0 34px;
	color: #646970;
	font-size: 13px;
}

/* Empty State */
.freefactu-sif-empty-state {
	background: #f6f7f7;
	border-radius: 4px;
	padding: 30px;
	text-align: center;
}

.freefactu-sif-empty-icon {
	font-size: 28px;
	margin-bottom: 12px;
}

.freefactu-sif-empty-title {
	margin: 0 0 8px;
	color: #1d2327;
	font-size: 16px;
}

.freefactu-sif-empty-text {
	margin: 0 0 16px;
	color: #646970;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}

/* Button icon alignment in SIF section handled by flexbox on individual buttons */

/* ==========================================================================
   SIF TABLE STYLES
   ========================================================================== */

/* Table Container */
.freefactu-sif-table-container {
	overflow-x: auto;
}

/* Table Styling */
.freefactu-sif-table {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
}

.freefactu-sif-table thead tr {
	background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f1 100%);
}

.freefactu-sif-table th {
	padding: 14px 16px;
	font-weight: 600;
}

.freefactu-sif-table th.col-version {
	width: 80px;
}

.freefactu-sif-table th.col-sif-version {
	width: 100px;
}

.freefactu-sif-table th.col-date {
	width: 160px;
}

.freefactu-sif-table th.col-downloads {
	width: 200px;
	text-align: center;
}

.freefactu-sif-table tbody tr {
	transition: background-color 0.15s ease;
}

.freefactu-sif-table td {
	padding: 14px 16px;
	vertical-align: middle;
}

.freefactu-sif-table td.col-date {
	color: #50575e;
}

.freefactu-sif-table td.col-downloads {
	text-align: center;
}

/* Version Badge (blue pill) */
.freefactu-version-badge {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #fff;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

/* Code Badge */
.freefactu-sif-table code {
	background: #f0f0f1;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
}

/* Certified Checkmark */
.freefactu-certified-check {
	color: #46b450;
	margin-left: 4px;
}

/* Operator Info */
.freefactu-operator-name {
	color: #1d2327;
}

.freefactu-operator-nif {
	color: #646970;
	font-size: 13px;
}

/* Download Buttons Container */
.freefactu-download-buttons {
	display: flex;
	gap: 8px;
	justify-content: center;
}

/* Download Button */
.freefactu-download-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
}

.freefactu-download-btn .dashicons {
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	line-height: 1 !important;
	vertical-align: middle;
	margin: 0;
	padding: 0;
}

.freefactu-download-btn .dashicons-pdf {
	color: #d63638;
}

.freefactu-download-btn .dashicons-archive {
	color: #2271b1;
}

/* ==========================================================================
   WIZARD STEP 2 & 3 STYLES (Review & Confirmation)
   ========================================================================== */

/* Declaration Textarea */
.freefactu-declaration-container {
	margin-bottom: 16px;
}

.freefactu-declaration-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #1d2327;
	font-size: 14px;
}

.freefactu-declaration-format-hint {
	font-weight: normal;
	font-size: 12px;
	color: #646970;
	margin-left: 8px;
}

.freefactu-declaration-textarea {
	width: 100%;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 13px;
	line-height: 1.6;
	padding: 16px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	resize: vertical;
	overflow-y: auto;
}

/* SIF Info Box */
.freefactu-sif-info-box {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
}

.freefactu-sif-info-title {
	margin: 0 0 16px;
	color: #1d2327;
}

.freefactu-sif-list {
	margin: 0;
	padding-left: 24px;
	line-height: 2;
	color: #50575e;
}

/* Confirmation Checkbox Box */
.freefactu-confirmation-box {
	background: #fff;
	border: 2px solid #dcdcde;
	border-radius: 8px;
	padding: 20px;
}

.freefactu-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.freefactu-checkbox-input {
	margin-top: 2px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.freefactu-checkbox-text {
	color: #1d2327;
	line-height: 1.6;
}

/* Progress & Success Sections */
.freefactu-progress-container {
	display: none;
	background: #f8f9fa;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.freefactu-progress-title {
	margin: 0 0 12px;
	color: #1d2327;
}

.freefactu-progress-list {
	margin: 0;
	padding-left: 24px;
	list-style: none;
}

.freefactu-success-container {
	display: none;
	background: linear-gradient(135deg, #edfaef 0%, #d4edda 100%);
	border: 1px solid #46b450;
	border-radius: 8px;
	padding: 24px;
	text-align: center;
}

.freefactu-success-icon {
	font-size: 24px;
	margin-bottom: 12px;
}

.freefactu-success-title {
	margin: 0 0 8px;
	color: #1e7e34;
}

.freefactu-success-text {
	margin: 0 0 16px;
	color: #155724;
}

/* Error Container (mirrors success container with error colors) */
.freefactu-error-container {
	display: none;
	background: linear-gradient(135deg, #fef0f0 0%, #f8d7da 100%);
	border: 1px solid #d63638;
	border-radius: 8px;
	padding: 24px;
	text-align: center;
}

.freefactu-error-container .freefactu-error-icon {
	font-size: 32px;
	margin-bottom: 12px;
}

.freefactu-error-container .freefactu-error-title {
	margin: 0 0 8px;
	color: #721c24;
}

.freefactu-error-container .freefactu-error-text {
	margin: 0 0 16px;
	color: #721c24;
}

/* ==========================================================================
   PRODUCER INFO MODAL STYLES
   ========================================================================== */

.freefactu-modal-header h2 {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.freefactu-modal-body-scroll {
	overflow-y: auto;
	max-height: calc(90vh - 120px);
}

.freefactu-legal-section {
	background: #f6f7f7;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}

.freefactu-legal-section-pag {
	padding: 0 10px;
}

.freefactu-legal-warning {
	background: #fff8e5;
	border: 1px solid #ffb900;
	border-left: 4px solid #ffb900;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 24px;
}

.freefactu-legal-title {
	margin: 0 0 16px;
	color: #1d2327;
	font-size: 15px;
	border-bottom: 1px solid #dcdcde;
	padding-bottom: 10px;
}

.freefactu-legal-title-warning {
	margin: 0 0 12px;
	color: #996800;
	font-size: 16px;
}

.freefactu-legal-text {
	margin: 0 0 16px;
	color: #50575e;
	line-height: 1.6;
	font-size: 13px;
}

.freefactu-legal-text:last-child {
	margin-bottom: 0;
}

.freefactu-legal-text-warning {
	margin: 0;
	color: #5c4a00;
	line-height: 1.7;
	font-size: 14px;
}

.freefactu-legal-list {
	margin: 0 0 16px;
	padding-left: 20px;
	color: #50575e;
	line-height: 1.8;
	font-size: 13px;
}

.freefactu-legal-conclusion {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 10px;
}

.freefactu-legal-conclusion-title {
	margin: 0 0 12px;
	color: #fff;
	font-size: 15px;
}

.freefactu-legal-conclusion-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.7;
	font-size: 14px;
}

/* Utilities */
.freefactu-mt-16 {
	margin-top: 16px;
}

.freefactu-mr-6 {
	margin-right: 6px;
}

.freefactu-fw-600 {
	font-weight: 600;
}

/* Icon Colors */
.freefactu-icon-warning {
	font-size: 24px;
}

.freefactu-icon-warning-color {
	color: #dba617;
	margin-right: 6px;
}

.freefactu-icon-error-color {
	color: #d63638;
	margin-right: 6px;
}

.freefactu-icon-primary {
	color: #d63638;
	/* Based on warning icon use */
	margin-right: 6px;
}

/* Wizard Actions (Buttons) */
.freefactu-wizard-actions {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
}

/* Disabled wizard button styling */
.freefactu-wizard-next[disabled] {
	cursor: not-allowed;
	opacity: 0.6;
}

/* Button Icons in Modal/Wizard */
.freefactu-btn-icon-left {
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0;
}

.freefactu-btn-icon-right {
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0;
}

/* Dashicons inside buttons - ensure vertical centering */
.freefactu-wizard-actions .button,
.freefactu-form-actions .button {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
}

.freefactu-wizard-actions .button .dashicons,
.freefactu-form-actions .button .dashicons {
	font-size: 18px !important;
	width: 18px !important;
	height: 18px !important;
	line-height: 1 !important;
	vertical-align: middle;
	margin: 0;
	padding: 0;
}

/* SIF section header button (Nueva Declaración) */
.freefactu-sif-section-header .button,
#freefactu-new-declaration-btn-empty {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
}

.freefactu-sif-section-header .button .dashicons,
#freefactu-new-declaration-btn-empty .dashicons {
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	line-height: 1 !important;
	vertical-align: middle;
	margin: 0;
	padding: 0;
}

/* Spin animation for loading icons */
.spin,
.dashicons-update.spin {
	animation: freefactu-modal-spin 1s linear infinite;
}

@keyframes freefactu-modal-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* Colored Emoji Wrapper */
.freefactu-emoji-purple {
	color: #9b59b6;
}