/* Block: Floating Button */
.lr-floating-button {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	background-color: #0073aa;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	z-index: 770;
	transition:
		transform 0.3s ease,
		background-color 0.3s ease;
	/* Reset button styles */
	border: none;
	padding: 0;
	margin: 0;
	line-height: 1;
}

.lr-floating-button:focus-visible {
	outline: 3px solid #ffc107;
	outline-offset: 2px;
}

.lr-floating-button:hover {
	transform: scale(1.1);
}

.lr-floating-button__icon {
	font-size: 30px !important;
	width: 30px !important;
	height: 30px !important;
	flex-shrink: 0;
}

.lr-floating-button__img {
	max-width: 30px;
	height: auto;
	display: block;
	flex-shrink: 0;
}

.lr-floating-button__text {
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

/* Screen Reader Text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Block: Modal */
.lr-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 790;
	transition: opacity 0.3s ease;
}

/* Forzar SweetAlert2 por encima de nuestro modal */
.swal2-container {
	z-index: 800 !important;
}

.lr-modal-overlay--hidden {
	display: none;
	opacity: 0;
	pointer-events: none;
}

.lr-modal {
	background: #fff;
	width: 90%;
	max-width: 500px;
	padding: 30px;
	border-radius: 12px;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	max-height: 90vh;
	overflow-y: auto;
	transition:
		background-color 0.3s,
		color 0.3s;
}

.lr-modal--dark {
	background: #1e1e1e;
	color: #f1f1f1;
}

.lr-modal--dark .lr-modal__title {
	color: #fff;
}
.lr-modal--dark .lr-modal__description {
	color: #bbb;
}
.lr-modal--dark .lr-form__label {
	color: #ddd;
}
.lr-modal--dark .lr-form__input,
.lr-modal--dark .lr-form__textarea {
	background: #2d2d2d;
	border-color: #444;
	color: #fff;
}
.lr-modal--dark .lr-modal__close {
	color: #fff;
}

.lr-modal__close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	line-height: 1;
}

.lr-modal__title {
	margin-top: 0;
	margin-bottom: 10px;
	color: #333;
	font-size: 24px;
}

.lr-modal__description {
	margin-bottom: 20px;
	color: #666;
}

/* Block: Form */
.lr-form__row {
	display: flex;
	gap: 15px;
}

.lr-form__group {
	margin-bottom: 15px;
	flex: 1;
}

.lr-form__label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #444;
}

.lr-required-asterisk {
	color: #d63638;
	margin-left: 2px;
}

.lr-form__label--checkbox {
	display: flex;
	align-items: flex-start;
	font-weight: normal;
	font-size: 13px;
	cursor: pointer;
	gap: 10px;
}

.lr-form__label--checkbox input {
	margin-top: 3px;
}

.lr-form__label--checkbox a {
	color: var(--lr-submit-btn-color);
	text-decoration: underline;
}

.lr-form__input,
.lr-form__textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

/* Block: Rating Stars (0.5 Precision) */
.lr-rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	height: 35px;
	margin-bottom: 10px;
}

.lr-rating__input {
	display: none;
}

.lr-rating__label {
	font-family: Dashicons;
	font-size: 32px;
	color: #ddd;
	cursor: pointer;
	margin: 0;
	padding: 0;
	line-height: 1;
	position: relative;
	transition: color 0.2s;
}

.lr-rating__label:before {
	content: "\f155"; /* star-filled */
}

/* Media Estrella (Mitad Izquierda) */
.lr-rating__label--half {
	width: 16px; /* Exactamente la mitad de 32px */
	overflow: hidden;
	margin-right: -16px; /* Tira de la estrella completa hacia abajo */
	z-index: 2;
}

/* Lógica de Iluminación */
.lr-rating__input:checked ~ .lr-rating__label,
.lr-rating__label:hover,
.lr-rating__label:hover ~ .lr-rating__label {
	color: #ffc107;
}

/* Block: Button */
.lr-btn {
	border: none;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
}

.lr-btn--submit {
	color: #fff;
	width: 100%;
}

.lr-btn--submit:disabled {
	background-color: #ccc !important;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Utility: Scroll Lock */
.lr-no-scroll {
	overflow: hidden !important;
}

@media (max-width: 480px) {
	.lr-form__row {
		flex-direction: column;
		gap: 0;
	}
}
