/**
 * WC Modal Products Styles
 *
 * Modal de reserva (frontend) inspirado en diseño tipo "Reserva tu excursión":
 * cabecera clara, tarjetas por sección, selector de cantidad en rojo, CTA
 * prominente, layout responsive (mobile-first; desktop: tarjeta centrada y
 * dos columnas en vista resumen).
 *
 * @package WC_Modal_Products
 */

/* Container */
.wcmp-container {
	margin: 20px 0;
}

/* Availability Title */
.wcmp-availability-title {
	margin: 0 0 20px 0;
	font-size: 1.8em;
	color: #333;
	font-weight: 600;
}

/* Error Message */
.wcmp-error-message {
	margin: 20px 0;
	padding: 15px;
	background: #ffebee;
	border-left: 4px solid #CC3333;
	border-radius: 4px;
}

.wcmp-linked-free-tour-title {
	color: var(--Primary-01-1, #CC3234);
	text-align: left;
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 40px;
	margin: 0;
	display: none;
}

.wcmp-want-tickets--active .wcmp-linked-free-tour-title {
	display: block;
}

.wcmp-error-message p {
	margin: 0;
	color: #CC3333;
	font-size: 1em;
}

/* Calendar Styles - jQuery UI Datepicker */
.wcmp-calendar-container {
	background: #fff;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 20px;
	position: relative;
	min-height: 300px;
}

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

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

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

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

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

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

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

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

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

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

/* Flatpickr Calendar Styles */
.wcmp-booking-calendar-wrapper {
	display: none;
	opacity: 1 !important;
	visibility: visible !important;
	border: 1px solid #CC3333 !important;
	border-radius: 0.50rem;
	padding: 10px;
}

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

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

/* Estilos para Flatpickr */
.flatpickr-weekdays {
	padding-top: 10px;
}
.span.flatpickr-weekday{
	color: #000000 !important;
}

.flatpickr-calendar {
	font-family: inherit;
	border-radius: 8px;
	box-shadow: none !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: 100%;
	max-width: 100%;
}

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

.wcmp-modal .wcmp-booking-calendar-wrapper .flatpickr-calendar {
	margin-top: 0 !important;
	box-shadow: none !important;
}

.flatpickr-innerContainer{
	justify-content: center;
}
.flatpickr-months{
	position: relative;
}

.flatpickr-day {
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	border-radius: 7px;
	margin: 2px;
}

.wcmp-container .flatpickr-day:hover:not(.disabled):not(.flatpickr-disabled):not(.today),
.wcmp-modal .flatpickr-day:hover:not(.disabled):not(.flatpickr-disabled):not(.today) {
	background-color: #ffffff !important;
	color: #CC3234 !important;
	border: 1px solid #CC3234 !important;
	box-shadow: none;
}

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

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
	visibility: hidden;
	pointer-events: none;
}

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

.wcmp-container .flatpickr-day.wmp-has-events:hover:not(.disabled):not(.flatpickr-disabled):not(.today),
.wcmp-modal .flatpickr-day.wmp-has-events:hover:not(.disabled):not(.flatpickr-disabled):not(.today) {
	background-color: #ffffff !important;
	color: #CC3234 !important;
	border: 1px solid #CC3234 !important;
	box-shadow: none;
}

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

.wcmp-container .flatpickr-day.selected:hover:not(.disabled):not(.flatpickr-disabled):not(.today),
.wcmp-modal .flatpickr-day.selected:hover:not(.disabled):not(.flatpickr-disabled):not(.today) {
	background-color: #ffffff !important;
	color: #CC3234 !important;
	border: 1px solid #CC3234 !important;
}

/* Día actual: fondo transparente, texto rojo, borde rojo */
.wcmp-container .flatpickr-day.today:not(.disabled):not(.flatpickr-disabled):not(.selected),
.wcmp-modal .flatpickr-day.today:not(.disabled):not(.flatpickr-disabled):not(.selected) {
	background-color: transparent !important;
	color: #CC3234 !important;
	border: 1px solid #CC3234 !important;
	font-weight: bold;
}

.wcmp-container .flatpickr-day.today:hover:not(.disabled):not(.flatpickr-disabled):not(.selected),
.wcmp-modal .flatpickr-day.today:hover:not(.disabled):not(.flatpickr-disabled):not(.selected),
.wcmp-container .flatpickr-day.today.wmp-has-events:not(.disabled):not(.flatpickr-disabled):not(.selected),
.wcmp-modal .flatpickr-day.today.wmp-has-events:not(.disabled):not(.flatpickr-disabled):not(.selected),
.wcmp-container .flatpickr-day.today.wmp-has-events:hover:not(.disabled):not(.flatpickr-disabled):not(.selected),
.wcmp-modal .flatpickr-day.today.wmp-has-events:hover:not(.disabled):not(.flatpickr-disabled):not(.selected),
.wcmp-container .flatpickr-day.today.selected:hover:not(.disabled):not(.flatpickr-disabled),
.wcmp-modal .flatpickr-day.today.selected:hover:not(.disabled):not(.flatpickr-disabled) {
	background-color: #ffffff !important;
	color: #CC3234 !important;
	border: 1px solid #CC3234 !important;
	box-shadow: none;
}

/* Time Slots – tarjeta y chips tipo referencia */
.wcmp-time-slots {
	margin-top: 1rem;
	padding: 1rem 1.125rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	animation: wcmp-slide-down 0.3s ease-out;
}

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

.wcmp-time-slots h4 {
	margin: 0 0 0.75rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
}

.wcmp-time-slots-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wcmp-time-slot {
	padding: 0.5rem 1rem;
	min-height: 2.5rem;
	background: #fff;
	border: 2px solid #CC3333;
	border-radius: 0.5rem;
	color: #CC3333;
	cursor: pointer;
	font-size: 0.9375rem;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wcmp-time-slot:hover {
	background: #fef2f2;
	color: #991b1b;
	border-color: #991b1b;
}

.wcmp-time-slot.selected {
	background: #CC3333;
	color: #fff;
	border-color: #CC3333;
}

.wcmp-time-slots-list [type=button]:hover,
.wcmp-time-slots-list [type=submit]:hover,
.wcmp-time-slots-list button:hover,
.wcmp-time-slots-list [type=button]:focus,
.wcmp-time-slots-list [type=submit]:focus,
.wcmp-time-slots-list button:focus {
	background-color: #cc3333;
}

.wcmp-available-qty {
	font-size: 0.75rem;
	font-weight: normal;
	color: #6b7280;
	opacity: 0.95;
}

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

.wcmp-error {
	color: #c62828;
}

.wcmp-no-availability {
	color: #666;
}

/* ==========================================================================
   Modal – Estilo "Reserva tu excursión" (referencia GetYourGuide).
   Mobile-first; tarjeta centrada en desktop, sheet en móvil.
   ========================================================================== */

html.wcmp-modal-open,
body.wcmp-modal-open {
	overflow: hidden !important;
}

.wcmp-modal {
	display: none;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 10000001;
	box-sizing: border-box;
}

.wcmp-modal.wcmp-modal--open {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.wcmp-modal-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(4px);
	z-index: 1;
}

.wcmp-modal-content {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-radius: 0;
	box-shadow: none;
	z-index: 2;
}

/* Loading overlay when finalizing (add to cart) */
.wcmp-modal-loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: inherit;
	z-index: 4;
}

.wcmp-modal-loading__spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #e5e7eb;
	border-top-color: #b91c1c;
	border-radius: 50%;
	animation: wcmp-spin 0.9s linear infinite;
}

.wcmp-modal-loading__text {
	margin: 0;
	font-size: 1rem;
	color: #374151;
	font-weight: 500;
}

.wcmp-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: none !important;
	font-size: 2.25rem !important;
	color: #1C1C1C !important;
	cursor: pointer;
	line-height: 1;
	padding: 0.25rem;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease;
	z-index: 3;
}

.wcmp-modal-close:hover {
	background: #ffffff !important;
	color: #1C1C1C;
}

/* Confirmación de cierre (alerta tipo popover bajo la X) */
.wcmp-close-confirm {
	position: absolute;
	top: calc(1rem + 2.5rem + 0.5rem);
	right: 1rem;
	width: min(360px, calc(100% - 2rem));
	z-index: 5;
}

.wcmp-close-confirm__overlay {
	display: none;
}

.wcmp-close-confirm__dialog {
	position: absolute;
	background: #ffffff;
	border: 1px solid #b91c1c !important;
	padding: 20px;
	border-radius: 7px;
	right: 0;
	top: 30px;
	box-shadow: none;
}

.wcmp-close-confirm__title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.25rem;
	font-weight: 700;
	color: #1C1C1C;
}

.wcmp-close-confirm__desc {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.15rem;
	color: #4b5563;
}

.wcmp-close-confirm__actions {
	margin-top: 0.75rem;
	display: flex;
	gap: 0.5rem;
	justify-content: flex-start;
}

.wcmp-close-confirm__stay,
.wcmp-close-confirm__exit {
	appearance: none;
	border-radius: 10px;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.1rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
}

.wcmp-close-confirm__stay {
	background: #b91c1c !important;
	color: #fff;
}

.wcmp-close-confirm__exit {
	background: #f3f4f6;
	border-color: #e5e7eb;
	color: #111827;
}

.wcmp-close-confirm__stay:hover,
.wcmp-close-confirm__stay:focus {
	background: #991b1b !important;
	color: #fff !important;
}

.wcmp-close-confirm__exit:hover,
.wcmp-close-confirm__exit:focus {
	background: #e5e7eb;
}

.wcmp-close-confirm__stay:focus,
.wcmp-close-confirm__exit:focus {
	outline: 2px solid rgba(185, 28, 28, 0.35);
	outline-offset: 2px;
}

.wcmp-modal-body {
	padding: 1.25rem 1.25rem 1.5rem;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	flex: 1;
	min-height: 0;
}

/* Cabecera tipo "Reserva tu excursión" */
.wcmp-modal-header-bar {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wcmp-modal-main-title {
	font-family: 'Inter', sans-serif;
	margin: 0;
	font-size: 36px;
	line-height: 56px;
	font-weight: 700;
	color: #1C1C1C;
	letter-spacing: -0.02em;
}

.wcmp-modal-main-subtitle {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1C1C1C;
	margin: 0 0 0.75rem 0;
}

/* Tarjeta de experiencia (imagen + texto) */
.wcmp-experience-card {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr);
	gap: 1rem;
	align-items: center;
	border-radius: 0.75rem;
	border: 1px solid #7C7D86;
	background: #fff;
	height: 130px;
}

/* Al pulsar "Lo quiero": 3 columnas */
.wcmp-want-tickets--active .wcmp-experience-card {
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr);
	width: 100%;
}

.wcmp-experience-media {
	margin: 0;
	border-top-left-radius: 0.75rem;
	border-bottom-left-radius: 0.75rem;
	overflow: hidden;
	background: #e5e7eb;
	height: 100%;
}

.wcmp-experience-media img {
	display: block;
	width: 100%;
	height: 130px !important;
	object-fit: cover;
}

.wcmp-experience-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wcmp-experience-kicker {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
}

.wcmp-experience-title {
	font-family: 'Inter', sans-serif;
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #1C1C1C;
	letter-spacing: -0.02em;
}

.wcmp-experience-meta {
	margin: 0;
	font-size: 0.875rem;
	color: #4b5563;
}

.wcmp-product-description {
	margin: 0 0 1.25rem 0;
	font-size: 0.9375rem;
	color: #4b5563;
	line-height: 1.55;
	display: none;
}

.wcmp-product-description.show {
	display: block;
}

/* Descripción bajo el panel de producto: ocultos por defecto (la tarjeta de experiencia ya los incluye). JS puede usar .show() para mostrarlos en vista de producto enlazado. */
.wcmp-modal-main-view .wcmp-product-description {
	display: none;
}

/* Sección "Planea la experiencia" – tarjeta y selectores */
.wcmp-persons-selector,
.wcmp-linked-persons-selector {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Fila tipo tarjeta: selector | descripción | precio (como en maqueta) */
.wcmp-ticket-row {
	display: flex;
	align-items: stretch;
	gap: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wcmp-ticket-row__select {
	flex: 0 0 auto;
	width: 4.25rem;
	min-width: 4.25rem;
	border-radius: 0.75rem 0 0 0.75rem;
	overflow: hidden;
}

.wcmp-ticket-row__select .wcmp-person-select {
	width: 100%;
	min-height: 3.5rem;
	height: 100%;
	padding: 0.5rem 0.375rem 0.5rem 1.5rem;
	border: none;
	border-radius: 0;
	font-size: 1rem;
	font-weight: 600;
	background: #b91c1c;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.35rem center;
	background-size: 0.875rem;
}

.wcmp-ticket-row__select .wcmp-person-select:hover {
	background-color: #991b1b;
}

.wcmp-ticket-row__select .wcmp-person-select:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.wcmp-ticket-row__select .wcmp-person-select option {
	background: #fff;
	color: #111827;
}

.wcmp-ticket-row__info {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.15rem;
	padding: 0.75rem 1rem;
	min-width: 0;
}

.wcmp-ticket-row__title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #111827;
}

.wcmp-ticket-row__sub {
	display: block;
	font-size: 0.8125rem;
	color: #6b7280;
	line-height: 1.35;
}

.wcmp-ticket-row__price {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0.15rem;
	padding: 0.75rem 1rem;
	text-align: right;
}

.wcmp-ticket-row__price .wcmp-ticket-row__qty-unit {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.wcmp-ticket-row__price .wcmp-main-total-price {
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.wcmp-ticket-row__note {
	font-size: 0.75rem;
	color: #6b7280;
	line-height: 1.3;
}

/* Total duplicado en panel relacionado: oculto (se muestra en la fila de ticket) */
.wcmp-plan-related .wcmp-main-total-price {
	display: none !important;
}

/* En flujos de confirmación (panel derecho), sí mostramos el resumen/total encima del botón */
.wcmp-plan-related .wcmp-linked-product-on-ticket-selection .wcmp-main-total-price {
	display: block !important;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: left;
}

.wcmp-plan-related .wcmp-linked-product-on-ticket-selection {
	background: #fff;
	color: #111827;
	border-radius: 0.75rem;
	padding: 1rem;
	box-shadow: 0 10px 25px rgba(17, 24, 39, 0.10);
	border: 1px solid #e5e7eb;
}

.wcmp-plan-related .wcmp-linked-product-on-ticket-selection .wcmp-summary-line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: #111827;
	padding: 0.25rem 0;
}

.wcmp-plan-related .wcmp-linked-product-on-ticket-selection .wcmp-summary-line--total {
	border-top: 1px solid #000000;
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	font-weight: 700;
}

.wcmp-plan-related .wcmp-linked-product-on-ticket-selection .wcmp-btn.wcmp-finalize-main-only {
	border-color: #b91c1c;
	background: #b91c1c;
	color: #fff;
}

.wcmp-plan-related .wcmp-linked-product-on-ticket-selection .wcmp-btn.wcmp-finalize-main-only:hover {
	border-color: #991b1b;
}

/* Compatibilidad con estructura antigua por si algún flujo la usa */
.wcmp-person-field,
.wcmp-person-type-field {
	margin-bottom: 1rem;
}

.wcmp-person-field:last-child,
.wcmp-person-type-field:last-child {
	margin-bottom: 0;
}

.wcmp-person-field label,
.wcmp-person-type-field label {
	display: block;
	margin-bottom: 0.375rem;
	font-weight: 600;
	color: #111827;
	font-size: 0.9375rem;
}

.wcmp-person-type-description {
	display: block;
	font-size: 0.8125rem;
	color: #6b7280;
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

/* Selector de cantidad fuera de .wcmp-ticket-row (fallback) */
.wcmp-person-select {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	border-radius: 0.5rem;
	border: none;
	font-size: 0.9375rem;
	font-weight: 600;
	background: #b91c1c;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, filter 0.15s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1rem;
}

.wcmp-person-select:hover {
	background-color: #991b1b;
}

.wcmp-person-select:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25);
}

.wcmp-person-select option {
	background: #fff;
	color: #111827;
}

/* Layout de \"Planea la experiencia\" */
.wcmp-plan-layout {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 0.5rem;
}

.wcmp-section-heading {
	margin: 0 0 0.75rem 0;
	font-size: 28px;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	color: #1C1C1C;
}

/* Tarjeta de oferta: estilo como imagen 1, manteniendo layout general */
.wcmp-linked-offer-card {
	width: 100%;
	margin-top: 1rem;
}

.wcmp-linked-offer-card .wcmp-cross-sells {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid #D0D0D0;
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wcmp-linked-offer-card .wcmp-offer-kicker {
	font-size: 20px;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	color: #1C1C1C;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 0;
	line-height: 1.3;
}

.wcmp-linked-offer-card .wcmp-offer-kicker--upsell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.wcmp-linked-offer-card .wcmp-upsell-change-selection {
	background: transparent;
	border: 0;
	padding: 0;
	font: inherit;
	color: #555;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	white-space: nowrap;
	border:1px solid #555;
	transition: all 0.3s ease;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: normal;
	background-color: #F9F9F9;
	padding: 8px 24px;
	border-radius: 8px;
}

.wcmp-linked-offer-card .wcmp-upsell-change-selection:hover {
	color: #555;
	background: #fff;
}

.wcmp-linked-offer-card .wcmp-offer-card-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-radius: 0.625rem;
}

.wcmp-linked-offer-card .wcmp-cross-sells-list {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.wcmp-linked-offer-card .wcmp-cross-sell-item {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border-radius: 0;
}

.wcmp-linked-offer-card .wcmp-cross-sell-item.wcmp-upsell-item {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.35rem 0 !important;
}

.wcmp-linked-offer-card .wcmp-upsell-choice {
	margin-top: 0.2rem;
	accent-color: #b91c1c;
}

.wcmp-linked-offer-card .wcmp-upsell-item__content {
	min-width: 0;
}

.wcmp-linked-offer-card .wcmp-upsell-item:has(.wcmp-upsell-choice:checked) .wcmp-cross-sell-name {
	color: #b91c1c;
}

.wcmp-linked-offer-card .wcmp-cross-sell-item .wcmp-cross-sell-name,
.wcmp-linked-offer-card .wcmp-cross-sell-item h5 {
	margin: 0 0 0.25rem 0;
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
}

.wcmp-linked-offer-card .wcmp-cross-sell-description {
	font-size: 0.8125rem !important;
	color: #6b7280 !important;
	margin-top: 0.15rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wcmp-linked-offer-card .wcmp-offer-card-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
}

.wcmp-linked-offer-card .wcmp-cross-sells.wcmp-cross-sells--upsell .wcmp-offer-card-actions {
	display: none;
}

.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-cross-sells-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	border: 1px solid transparent;
	border-radius: 0.75rem;
	background: #F5F5F5;
	padding: 0;
	margin: 0;
	cursor: pointer;
	text-align: left;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card:hover,
.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card:focus-visible,
.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card.is-selected {
	border-color: #cc3234;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(204, 50, 52, .12);
	outline: none;
}

.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	padding: 12px 14px;
}

.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 14px;
}

.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__cta {
	white-space: nowrap;
}

.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__subtitle,
.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__meta {
	color: #4f5b67;
	font-size: 1rem;
	line-height: 1.2;
}

.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__price-info {
	color: #111827;
	font-size: 0.95rem;
	font-weight: normal;
	line-height: 1.2;
}

.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__title {
	color: #1c1c1c;
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.1;
}

.wcmp-linked-offer-card .wcmp-want-tickets {
	white-space: nowrap;
	background: #b91c1c;
	color: #fff;
	border: 1px solid #b91c1c;
	border-radius: 0.50rem;
    padding: 10px 40px;
}

.wcmp-linked-offer-card .wcmp-want-tickets:hover {
	background: #991b1b;
	color: #fff;
	border-color: #991b1b;
}

/* Columna 30%: panel detalle del precio (rojo) */
.wcmp-plan-related .wcmp-linked-product-on-ticket-selection {
	border-radius: 0.75rem;
	border: 1px solid #b91c1c;
	color: #fff;
	padding: 1rem 1.25rem;
}

.wcmp-plan-related .wcmp-main-total-price {
	margin-top: 0.25rem !important;
}

.wcmp-plan-related .wcmp-linked-product-actions-tickets .wcmp-btn {
	width: 100%;
	justify-content: center;
	background: #fff;
	color: #b91c1c;
	border: 1px solid #fff;
}

.wcmp-plan-related .wcmp-linked-product-actions-tickets .wcmp-btn:hover {
	background: #fef2f2;
	color: #991b1b;
}

/* Botón "Continuar sin el tour" en columna derecha, alineado abajo */
.wcmp-plan-related {
	display: flex;
	flex-direction: column;
}

.wcmp-plan-related .wcmp-skip-linked-product {
	margin-top: auto;
	align-self: flex-end;
	white-space: nowrap;
	background: #b91c1c;
	color: #fff;
	border: 1px solid #b91c1c;
	width: 100%;
    margin-top: 76px;
	border-radius: 0.50rem;
}

.wcmp-plan-related .wcmp-skip-linked-product:hover {
	background: #991b1b;
	color: #fff;
	border-color: #991b1b;
}

/* Linked Product – tarjeta */
.wcmp-linked-product {
	margin: 0;
	padding: 1rem 1.125rem;
	background: #f9fafb;
	border-radius: 0.75rem;
	border: 1px solid #e5e7eb;
}

.wcmp-linked-product-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.0625rem;
	font-weight: 600;
	color: #111827;
}

.wcmp-linked-product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

/* Botones – CTA rojo, secundario gris */
.wcmp-btn {
	padding: 0.75rem 1.25rem;
	border: none;
	border-radius: 8px;
	font-size: 0.9375rem;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	min-height: 2.75rem;
	box-sizing: border-box;
}

.wcmp-btn-primary {
	padding: 11px 40px !important;
	background: #b91c1c !important;
	color: #fff !important;
	transform: all 0.3s ease;
	border-radius: 8px !important; 
	font-family: 'Inter', sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 26px;
	letter-spacing: 0.02em;
	
}

.wcmp-btn-primary:hover {
	background: #fff !important;
	color: #b91c1c !important;
}

.wcmp-btn-secondary {
	background: #fff;
	color: #374151;
	border: 1px solid #d1d5db;
}

.wcmp-btn-secondary:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #111827;
}

.wcmp-finalize-reservation {
	margin-top: 1.25rem;
	text-align: center;
	display: none;
}

.wcmp-finalize-btn,
.wcmp-finalize-linked-btn {
	width: 100%;
	padding: 0.875rem 1.25rem;
	font-size: 1rem;
	border-radius: 0.5rem;
}

/* Vista resumen – estilo "Reserva tu excursión" */
.wcmp-checkout-summary-view {
	margin-top: 0;
}

.wcmp-summary-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	align-items: flex-start;
}

.wcmp-summary-section {
	background: #fff;
	border-radius: 0.75rem;
	border: 1px solid #e5e7eb;
	padding: 1rem 1.125rem;
	margin-bottom: 0;
}

.wcmp-summary-heading {
	margin: 0 0 0.75rem 0;
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.01em;
}

.wcmp-summary-experience-body p {
	margin: 0;
	font-size: 0.9375rem;
}

.wcmp-summary-experience-title {
	font-weight: 600;
	color: #111827;
	margin-bottom: 0.25rem;
}

.wcmp-summary-experience-meta {
	font-size: 0.875rem;
	color: #6b7280;
}

.wcmp-summary-contact-fields {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.wcmp-summary-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wcmp-summary-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #374151;
}

.wcmp-summary-required {
	color: #b91c1c;
	margin-left: 2px;
}

.wcmp-summary-input {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid #d1d5db;
	font-size: 0.9375rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wcmp-summary-input:focus {
	outline: none;
	border-color: #b91c1c;
	box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.15);
}

.wcmp-summary-cancellation-body {
	font-size: 0.8125rem;
	color: #6b7280;
	line-height: 1.5;
	max-height: 8rem;
	overflow-y: auto;
}

.wcmp-summary-cart-wrapper {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
}

.wcmp-summary-cart {
	max-height: 16rem;
	overflow-y: auto;
	margin-bottom: 1rem;
}

/* Mini cart items (resumen modal + side cart): bloque tipo tarjeta */
.wcmp-summary-cart .woocommerce-mini-cart-item,
.wcmp-side-cart__content .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
	padding: 0.75rem;
	margin: 0 0 0.625rem 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
}

.wcmp-summary-cart .woocommerce-mini-cart-item:last-child,
.wcmp-side-cart__content .woocommerce-mini-cart-item:last-child {
	margin-bottom: 0;
}

.wcmp-summary-cart .woocommerce-mini-cart-item a.remove,
.wcmp-side-cart__content .woocommerce-mini-cart-item a.remove {
	position: absolute;
	top: 0.4rem;
	right: 0.45rem;
	width: 1.35rem;
	height: 1.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: #fee2e2;
	color: #b91c1c !important;
	font-size: 0.9rem;
	line-height: 1;
	text-decoration: none;
}

.wcmp-summary-cart .woocommerce-mini-cart-item a.remove:hover,
.wcmp-side-cart__content .woocommerce-mini-cart-item a.remove:hover {
	background: #fecaca;
	color: #991b1b !important;
}

.wcmp-summary-cart .woocommerce-mini-cart-item a:not(.remove),
.wcmp-side-cart__content .woocommerce-mini-cart-item a:not(.remove) {
	display: block;
	color: #111827;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.wcmp-summary-cart .woocommerce-mini-cart-item a:not(.remove) img,
.wcmp-side-cart__content .woocommerce-mini-cart-item a:not(.remove) img {
	float: none;
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
	border-radius: 0.6rem;
	border: 1px solid #e5e7eb;
	margin: 0;
}

.wcmp-summary-cart .woocommerce-mini-cart-item .quantity,
.wcmp-side-cart__content .woocommerce-mini-cart-item .quantity {
	grid-column: 2;
	margin-top: 0.2rem;
	display: block;
	color: #6b7280;
	font-size: 0.83rem;
	line-height: 1.35;
}

.wcmp-summary-cart .woocommerce-mini-cart-item .amount,
.wcmp-side-cart__content .woocommerce-mini-cart-item .amount {
	color: #111827;
	font-weight: 700;
}

.wcmp-summary-cart .woocommerce-mini-cart-item .variation,
.wcmp-side-cart__content .woocommerce-mini-cart-item .variation {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.45rem;
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	color: #6b7280;
}

.wcmp-summary-cart .woocommerce-mini-cart-item .variation dt,
.wcmp-side-cart__content .woocommerce-mini-cart-item .variation dt,
.wcmp-summary-cart .woocommerce-mini-cart-item .variation dd,
.wcmp-side-cart__content .woocommerce-mini-cart-item .variation dd {
	margin: 0;
}

.wcmp-summary-cart .woocommerce-mini-cart-item .variation dd p,
.wcmp-side-cart__content .woocommerce-mini-cart-item .variation dd p {
	margin: 0;
	display: inline;
}

@media (min-width: 768px) {
	.wcmp-summary-cart .woocommerce-mini-cart-item,
	.wcmp-side-cart__content .woocommerce-mini-cart-item {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0.75rem;
	}

	.wcmp-summary-cart .woocommerce-mini-cart-item a:not(.remove),
	.wcmp-side-cart__content .woocommerce-mini-cart-item a:not(.remove) {
		display: inline-flex;
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 0.75rem;
		flex: 1 1 auto;
		min-width: 0;
	}

	.wcmp-summary-cart .woocommerce-mini-cart-item .variation,
	.wcmp-side-cart__content .woocommerce-mini-cart-item .variation {
		grid-column: auto;
		flex: 1 1 auto;
		min-width: 0;
		margin-top: 0;
	}

	.wcmp-summary-cart .woocommerce-mini-cart-item .quantity,
	.wcmp-side-cart__content .woocommerce-mini-cart-item .quantity {
		grid-column: auto;
		margin-top: 0;
		margin-right: 1.75rem;
		white-space: nowrap;
		flex: 0 0 auto;
	}
}

.wcmp-summary-cart-placeholder {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
}

.wcmp-summary-terms-note {
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: #6b7280;
	line-height: 1.4;
}

.wcmp-summary-checkout-notices {
	margin: 0 0 0.875rem;
}

.wcmp-summary-checkout-notices .woocommerce-error,
.wcmp-summary-checkout-notices .woocommerce-message,
.wcmp-summary-checkout-notices .woocommerce-info {
	margin: 0;
	font-size: 0.875rem;
}

.wcmp-summary-checkout-notices .woocommerce-message .button.wc-forward,
.wcmp-summary-checkout-notices .woocommerce-message a.wc-forward {
	display: none !important;
}

.wcmp-summary-checkout-form {
	margin-top: 0.75rem;
}

.wcmp-summary-checkout-form .woocommerce form.checkout,
.wcmp-summary-checkout-form form.checkout {
	margin: 0;
}

.wcmp-summary-checkout-form .col2-set {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.wcmp-summary-checkout-form .form-row input.input-text,
.wcmp-summary-checkout-form .form-row textarea,
.wcmp-summary-checkout-form .form-row select {
	min-height: 2.5rem;
	border-radius: 0.5rem;
	border: 1px solid #d1d5db;
	padding: 0.5rem 0.75rem;
}

.wcmp-summary-checkout-form #order_review,
.wcmp-summary-checkout-form #payment {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 0.875rem;
}

.wcmp-summary-checkout-form #place_order {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #fff;
	border-radius: 0.5rem;
	min-height: 2.75rem;
}

.wcmp-summary-checkout-form #place_order:hover {
	background: #991b1b;
	border-color: #991b1b;
	color: #fff;
}

.wcmp-stripe-redirect-notice {
	margin: 0 0 1em;
	padding: 0.85em 1em;
	background: #f7f9fc;
	border: 1px solid #dce3ef;
	border-radius: 4px;
}

.wcmp-stripe-redirect-notice__text {
	margin: 0 0 0.75em;
	font-size: 0.95em;
	line-height: 1.45;
}

.wcmp-stripe-redirect-notice .wcmp-stripe-redirect-btn {
	width: 100%;
	margin: 0;
	background: #b91c1c;
	border-color: #b91c1c;
	color: #fff;
	border-radius: 0.5rem;
	min-height: 2.75rem;
}

.wcmp-stripe-redirect-notice .wcmp-stripe-redirect-btn:hover {
	background: #991b1b;
	border-color: #991b1b;
	color: #fff;
}

.wcmp-summary-checkout-form .payment_method_stripe.wcmp-stripe-redirect-method #wc-stripe-upe-form,
.wcmp-summary-checkout-form .payment_method_stripe.wcmp-stripe-redirect-method .wc-stripe-upe-element {
	display: none !important;
}

.wcmp-summary-main {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wcmp-summary-added-products {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.wcmp-summary-added-products .wcmp-summary-experience-card,
.wcmp-summary-linked-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 0 1rem 0 0;
}

.wcmp-summary-added-products .wcmp-summary-experience-card.wcmp-experience-card,
.wcmp-summary-linked-card.wcmp-experience-card {
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr) auto;
	height: 130px;
	min-height: 130px;
}

.wcmp-summary-added-products .wcmp-summary-experience-card .wcmp-experience-media img,
.wcmp-summary-linked-card .wcmp-experience-media img {
	width: 100%;
	height: 130px !important;
	object-fit: cover;
	border-radius: 0.5rem;
}

.wcmp-summary-linked-card.wcmp-experience-card .wcmp-experience-title {
	line-height: 1.2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.wcmp-summary-linked-card__label {
	font-size: 0.72rem;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 0.25rem;
}

.wcmp-summary-linked-card__title {
	font-family: 'Inter', sans-serif;
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #1C1C1C;
	letter-spacing: -0.02em;
}

.wcmp-summary-linked-card__subtitle {
	margin: 0;
	letter-spacing: 0.08em;
	color: #1C1C1C;
	line-height: auto !important;
	letter-spacing: -0.02em;
	font-size: 16px;
}

.wcmp-summary-linked-card__meta {
	margin: 0;
	font-size: 0.875rem;
	color: #4b5563;
}

.wcmp-summary-linked-card__price {
	display: none;
	align-self: center;
	justify-self: end;
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.35;
	text-align: right;
	padding-right: 0.25rem;
}

.wcmp-summary-added-products .wcmp-experience-summary-inline .wcmp-summary-line {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.35;
}

/* Linked Calendar – imagen: calendario izquierda, horarios derecha, selector y Confirmar debajo */
.wcmp-linked-calendar-wrapper {
	width: 100%;
	margin-top: 1rem;
}

.wcmp-linked-calendar-wrapper .wcmp-calendar-container {
	display: grid;
	grid-template-columns: 0.5fr 1fr;
	gap: 1.25rem;
	align-items: start;
}

.wcmp-linked-calendar-wrapper .wcmp-booking-loading,
.wcmp-linked-calendar-wrapper .wcmp-booking-calendar-wrapper,
.wcmp-linked-calendar-wrapper .wcmp-calendar-container input {
	grid-column: 1;
}

.wcmp-linked-calendar-wrapper .wcmp-time-slots {
	grid-column: 2;
	min-height: 2rem;
}

.wcmp-linked-calendar-wrapper .wcmp-linked-persons-selector {
	margin-top: 1rem;
	width: 100%;
}

.wcmp-upsell-availability-warning {
	margin: 0 0 0.75rem 0;
	padding: 0.75rem 1rem;
	border: 1px solid #cc3234;
	border-radius: 0.75rem;
	background: #fff5f5;
	color: #cc3234;
	font-weight: 600;
}

@media (max-width: 767px) {
	.wcmp-linked-calendar-wrapper .wcmp-calendar-container {
		grid-template-columns: 1fr;
	}
	.wcmp-linked-calendar-wrapper .wcmp-time-slots {
		grid-column: 1;
	}
}

.wcmp-linked-calendar {
	margin: 20px 0;
}

.wcmp-offer-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

/* Cross-sells - Oculto por defecto, se muestra cuando hay tickets seleccionados */
.wcmp-cross-sells {
	margin-bottom: 15px;
	padding: 10px;
	background: #f5f5f5;
	border-radius: 4px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 10px;
	display: none;
}

.wcmp-cross-sells.show {
	display: flex !important;
}

/* Linked Product Persons Info */
.wcmp-linked-persons-info {
	margin-top: 10px;
	padding: 10px;
	background: #e3f2fd;
	border-radius: 4px;
	color: #1976d2;
	font-size: 0.9em;
}

.wcmp-linked-persons-warning {
	margin-top: 10px;
	padding: 10px;
	background: #ffebee;
	border-radius: 4px;
	color: #c62828;
	font-size: 0.9em;
	font-weight: 500;
}

/* Responsive – modal centrado en desktop */
@media (min-width: 768px) {
	.wcmp-modal {
		align-items: center;
		justify-content: center;
		padding: 2rem 1rem;
	}

	.wcmp-modal-content {
		width: 100%;
		max-width: 46rem;
		max-height: 90vh;
		border-radius: 1rem;
		box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	}

	.wcmp-modal-body {
		padding: 1.5rem 1.75rem 1.75rem;
	}

	/* wcmp-product-title eliminado: no hay estilos extra */

	.wcmp-plan-layout {
		flex-direction: row;
		align-items: flex-start;
		gap: 1rem;
	}

	.wcmp-plan-main {
		flex: 0 0 70%;
		width: 70%;
		min-width: 0;
		margin-top: 30px;
	}

	.wcmp-plan-related {
		flex: 0 0 30%;
		width: 30%;
		min-width: 0;
	}

	.wcmp-summary-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}

	.wcmp-linked-product-actions {
		flex-direction: row;
	}
}

@media (max-width: 767px) {
	.wcmp-btn {
		width: 100%;
	}

	.wcmp-linked-offer-card .wcmp-offer-card-row {
		flex-direction: column;
		justify-content: flex-start !important;
		
	}

	.wcmp-linked-offer-card .wcmp-offer-kicker--upsell {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0.25rem;
	}
	.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-cross-sells-list {
		width: 100%;
	}

	.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__actions {
		padding-top: 0;
		justify-content: flex-start;
		display: none;
	}

	.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__title {
		font-size: 1.1rem;
	}

	.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__subtitle,
	.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__meta,
	.wcmp-linked-offer-card .wcmp-cross-sells--upsell .wcmp-upsell-card__price-info {
		font-size: 0.875rem;
	}

	.wcmp-linked-product-actions {
		flex-direction: column;
	}

	.wcmp-linked-product-actions .wcmp-btn {
		width: 100%;
	}

	.wcmp-ticket-row__info,
	.wcmp-ticket-row__price {
		padding: 0.5rem 0.75rem;
	}

	.wcmp-ticket-row__select {
		width: 3.75rem;
		min-width: 3.75rem;
	}

	.wcmp-ticket-row__note {
		display: none;
	}

	.wcmp-summary-checkout-form #payment ul.payment_methods {
		padding: 0;
	}

	.wcmp-summary-checkout-form #payment ul.payment_methods li {
		margin-bottom: 0.625rem;
	}

	.wcmp-summary-checkout-form .woocommerce-checkout-review-order-table {
		font-size: 0.875rem;
	}

	.wcmp-summary-linked-card.wcmp-experience-card {
		grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr) auto;
	}

	/* En mobile igualamos visualmente ambas tarjetas del resumen */
	.wcmp-summary-linked-card__label {
		display: none;
	}

	.wcmp-summary-linked-card__price {
		grid-column: auto;
		justify-self: end;
		margin-top: 0;
		font-size: 1rem;
		white-space: normal;
		text-align: right;
	}
}

@media (min-width: 1024px) {
	.wcmp-modal-content {
		max-width: 70rem;
	}

	.wcmp-summary-layout {
		gap: 2rem;
	}

	.wcmp-summary-section {
		padding: 1.25rem 1.375rem;
	}
}

@media (max-width: 480px) {
	.wcmp-experience-summary-inline {
		display: none !important;
	}

	.wcmp-time-slot {
		padding: 0.625rem 1rem;
		font-size: 0.875rem;
		min-height: 2.75rem;
	}

	.flatpickr-calendar {
		font-size: 0.875rem;
	}

	.wcmp-modal-body {
		padding: 1rem 1.125rem 1.25rem;
	}
}

/* ==========================================================================
   Open cart button (visible when cart has items)
   ========================================================================== */

.wcmp-open-cart-btn {
	display: none;
	align-items: center;
	gap: 0.5rem;
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 999998;
	padding: 0.75rem 1.25rem;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcmp-open-cart-btn:hover {
	background: #222;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.wcmp-open-cart-btn--has-items {
	display: inline-flex;
}

.wcmp-open-cart-btn__icon {
	font-size: 1.25rem;
	line-height: 1;
}

.wcmp-open-cart-btn__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.35rem;
	background: #fff;
	color: #333;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
}

/* ==========================================================================
   Side cart panel (drawer)
   ========================================================================== */

.wcmp-side-cart {
	position: fixed;
	inset: 0;
	z-index: 999999;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.25s ease, opacity 0.25s ease;
}

.wcmp-side-cart.is-open {
	visibility: visible;
	opacity: 1;
}

.wcmp-side-cart__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	cursor: pointer;
}

.wcmp-side-cart__drawer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 380px;
	background: #fff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

.wcmp-side-cart.is-open .wcmp-side-cart__drawer {
	transform: translateX(0);
}

.wcmp-side-cart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.wcmp-side-cart__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #333;
}

.wcmp-side-cart__close {
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0.25rem;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: color 0.2s, background 0.2s;
}

.wcmp-side-cart__close:hover {
	color: #333;
	background: #f0f0f0;
}

.wcmp-side-cart__content {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.25rem;
	min-height: 0;
}

.wcmp-side-cart__content .woocommerce-mini-cart__empty-message {
	margin: 0;
	color: #666;
}

.wcmp-side-cart__content .cart_list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcmp-side-cart__content .woocommerce-mini-cart-item {
	padding: 0.75rem;
	border-bottom: 0;
}

.wcmp-side-cart__content .woocommerce-mini-cart__total {
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	font-weight: 600;
}

.wcmp-side-cart__footer {
	padding: 1rem 1.25rem;
	border-top: 1px solid #eee;
	flex-shrink: 0;
}

.wcmp-side-cart__footer .wcmp-side-cart__view-cart {
	display: block;
	text-align: center;
	text-decoration: none;
}
