/* Estilos para el calendario personalizado de booking */
.wmp-modal-product-wrapper{
	grid-template-columns: auto !important;
}

.woocommerce-notices-wrapper{
	display: none !important;
}
.wmp-custom-booking-wrapper {
	display: flex !important;
	flex-direction: column;
	gap: 20px;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
}

.wmp-booking-product-image {
	margin-bottom: 20px;
}

.wmp-booking-product-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.wmp-booking-product-info {
	flex: 1;
}

.wmp-booking-product-title {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 10px;
}

.wmp-booking-product-price {
	font-size: 20px;
	font-weight: bold;
	color: #e60064;
	margin-bottom: 15px;
}

.wmp-booking-product-description {
	margin-bottom: 20px;
	line-height: 1.6;
}

.wmp-custom-booking-form {
	margin-top: 20px;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.wmp-booking-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.wmp-booking-resource-field,
.wmp-booking-date-field,
.wmp-booking-time-field,
.wmp-booking-persons-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.wmp-booking-date-field {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.wmp-booking-resource-field label,
.wmp-booking-date-field label,
.wmp-booking-time-field label,
.wmp-booking-persons-field label {
	font-weight: 600;
	margin-bottom: 5px;
}

.wmp-booking-resource-select,
.wmp-booking-time-select,
.wmp-booking-persons-input {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	width: 100%;
}

.wmp-booking-date-input {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	width: 100%;
	cursor: pointer;
	background-color: #fff;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin-bottom: 10px;
}

/* Ocultar el input pero mantener el calendario visible */
.wmp-booking-date-input.flatpickr-input {
	display: none !important;
}

.wmp-booking-date-input:focus {
	outline: none;
	border-color: #e60064;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wmp-booking-cost {
	margin-top: 15px;
	padding: 15px;
	background-color: #f0f0f0;
	border-radius: 4px;
	font-size: 18px;
}

.wmp-booking-cost-amount {
	font-weight: bold;
	color: e60064;
	margin-left: 10px;
}

.wmp-price-loading {
	font-style: italic;
	color: #666;
	font-size: 14px;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.wmp-booking-actions {
	margin-top: 20px;
}

.wmp-booking-add-to-cart {
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	background-color: #e60064;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
	transition: background-color 0.3s;
}

.wmp-booking-add-to-cart:hover:not(:disabled) {
	background-color: #e60064;
}

.wmp-booking-add-to-cart:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.wmp-booking-message {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
	font-weight: 500;
}

.wmp-booking-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.wmp-booking-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Estilos para el calendario con eventos */
.wmp-booking-calendar-container {
	margin-top: 20px;
	width: 310px;
}

.wmp-booking-calendar-container h3 {
	margin-bottom: 15px;
	font-size: 18px;
}

.wmp-booking-loading {
	text-align: center;
	padding: 40px 20px;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.wmp-booking-loading .spinner {
	float: none;
	margin: 0 auto 15px;
	width: 50px;
	height: 50px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #e60064;
	border-radius: 50%;
	animation: wmp-spin 1s linear infinite;
}

@keyframes wmp-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.wmp-booking-loading p {
	margin: 0;
	color: #666;
	font-size: 14px;
	animation: wmp-pulse 1.5s ease-in-out infinite;
}

@keyframes wmp-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Animación alternativa con puntos */
.wmp-booking-loading::after {
	content: '';
	display: inline-block;
	margin-top: 10px;
}

.wmp-booking-loading .loading-dots {
	display: inline-flex;
	gap: 5px;
	margin-top: 10px;
}

.wmp-booking-loading .loading-dot {
	width: 8px;
	height: 8px;
	background-color: #e60064;
	border-radius: 50%;
	animation: wmp-bounce 1.4s ease-in-out infinite both;
}

.wmp-booking-loading .loading-dot:nth-child(1) {
	animation-delay: -0.32s;
}

.wmp-booking-loading .loading-dot:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes wmp-bounce {
	0%, 80%, 100% {
		transform: scale(0);
		opacity: 0.5;
	}
	40% {
		transform: scale(1);
		opacity: 1;
	}
}

.wmp-booking-calendar-wrapper {
	margin-top: 15px;
	display: none;
	opacity: 1 !important;
	visibility: visible !important;
}

.wmp-booking-date-input {
	display: none !important;
}

/* Estilos para Flatpickr */
.flatpickr-calendar {
	font-family: inherit;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	margin-top: 15px;
	width: 100%;
	max-width: 100%;
}

.flatpickr-calendar.inline {
	position: static !important;
	display: block !important;
}

.flatpickr-day {
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
}

.flatpickr-day:hover:not(.disabled):not(.flatpickr-disabled) {
	background-color: #e3f2fd;
}

.flatpickr-day.disabled,
.flatpickr-day.flatpickr-disabled {
	color: #ccc !important;
	cursor: not-allowed;
	background-color: #f5f5f5 !important;
}


.flatpickr-day.nextMonthDay.disabled,
.flatpickr-day.nextMonthDay.flatpickr-disabled {
	opacity: 0.5;
}

/* Días con eventos disponibles - mostrar punto indicador */
.flatpickr-day.wmp-has-events {
	background-color: #ffffff;
	color: #e60064;
	border-color: #e60064 !important;
	font-weight: 500;
}

.flatpickr-day.wmp-has-events:hover {
	background-color: #c8e6c9;
}

.wmp-event-dot {
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: 6px;
	height: 6px;
	background-color: #4caf50;
	border-radius: 50%;
	pointer-events: none;
}

.flatpickr-day.selected {
	background-color: #e60064 !important;
	color: #ffffff !important;
	border-color: #e60064 !important;
	font-weight: bold;
}

.flatpickr-day.selected .wmp-event-dot {
	background-color: #fff;
}

.flatpickr-day.selected:hover {
	background-color: #ffffff !important;
	color: #e60064 !important;
}

.flatpickr-day.today {
	border-color: #e60064;
	font-weight: bold;
}

/* Contenedor de horas disponibles */
.wmp-booking-times-container {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
	animation: wmp-slide-down 0.3s ease-out;
}

@keyframes wmp-slide-down {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wmp-booking-times-container h4 {
	margin-bottom: 15px;
	font-size: 16px;
}

.wmp-times-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wmp-time-slot {
	padding: 10px 15px;
	border: 2px solid #e60064;
	background-color: #fff;
	color: #e60064;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
}

.wmp-time-slot:hover {
	background-color: #e60064;
	color: #fff;
}

.wmp-time-slot.selected {
	background-color: #e60064;
	color: #fff;
	border-color: #e60064;
}

.wmp-available-qty {
	font-size: 12px;
	font-weight: normal;
	opacity: 0.8;
}

.wmp-no-availability,
.wmp-error {
	padding: 20px;
	text-align: center;
	color: #666;
	font-style: italic;
}

.wmp-error {
	color: #c62828;
}

/* Responsive */
@media (min-width: 768px) {
	.wmp-custom-booking-wrapper {
		flex-direction: row;
	}

	.wmp-booking-product-image {
		flex: 0 0 300px;
		margin-bottom: 0;
	}

	.wmp-booking-product-info {
		flex: 1;
		padding-left: 20px;
	}
}

/* Estilos para add-ons */
.wmp-booking-addons-wrapper {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.wmp-booking-addons-wrapper h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #333;
}

.wmp-booking-addons-wrapper .product-addon {
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
	transition: all 0.3s ease;
}

.wmp-booking-addons-wrapper .product-addon.wmp-addon-error {
	border-color: #c62828;
	background: #ffebee;
	animation: shake 0.5s;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-10px); }
	75% { transform: translateX(10px); }
}

.wmp-booking-addons-wrapper .product-addon-required .addon-name::after {
	content: ' *';
	color: #c62828;
	font-weight: bold;
}

.wmp-booking-addons-wrapper .addon-name {
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
}

.wmp-booking-addons-wrapper .addon-description {
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
	line-height: 1.5;
}

/* Asegurar que los campos de add-ons sean visibles */
.wmp-booking-addons-wrapper input[type="text"],
.wmp-booking-addons-wrapper input[type="email"],
.wmp-booking-addons-wrapper input[type="number"],
.wmp-booking-addons-wrapper textarea,
.wmp-booking-addons-wrapper select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.wmp-booking-addons-wrapper input[type="checkbox"],
.wmp-booking-addons-wrapper input[type="radio"] {
	margin-right: 8px;
}

.wmp-booking-addons-wrapper label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #555;
}

/* Total de add-ons */
#product-addons-total {
	margin-top: 20px;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 4px;
	font-weight: 600;
}

.flatpickr-months{
	position: relative;
}
