/**
 * Carrito Parchil — edición de reserva.
 */

.tb-cart-page .entry-header,
.tb-cart-page .page-header {
	display: none;
}

.tb-cart {
	--tb-cart-teal: #469992;
	--tb-cart-teal-dark: #3a827c;
	--tb-cart-text: #1a2744;
	--tb-cart-muted: #5b6475;
	--tb-cart-border: #e5e7eb;
	--tb-cart-bg: #f5f6f8;
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	color: var(--tb-cart-text);
}

.tb-cart--empty {
	text-align: center;
	padding: 64px 16px;
}

.tb-cart__empty-link {
	color: var(--tb-cart-teal);
	font-weight: 600;
}

.tb-cart__header {
	margin: 0 0 22px;
}

.tb-cart__title {
	margin: 0 0 8px;
	font-size: 1.6rem;
	font-weight: 700;
}

.tb-cart__subtitle {
	margin: 0;
	color: var(--tb-cart-muted);
	font-size: 0.95rem;
}

.tb-cart__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
	gap: 28px 32px;
	align-items: start;
}

.tb-cart-item {
	margin: 0 0 18px;
	padding: 16px;
	border: 1px solid var(--tb-cart-border);
	border-radius: 16px;
	background: #fff;
}

.tb-cart-item__head {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	margin-bottom: 14px;
}

.tb-cart-item__thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 10px;
	background: var(--tb-cart-bg);
}

.tb-cart-item__title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.tb-cart-item__line-total {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--tb-cart-teal);
}

.tb-cart-item__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--tb-cart-muted);
	cursor: pointer;
}

.tb-cart-item__remove:hover {
	color: #b42318;
	background: #fde8e8;
}

.tb-cart-editor__field {
	position: relative;
	margin: 0 0 14px;
}

.tb-cart-editor__label {
	display: block;
	margin: 0 0 8px;
	font-size: 0.9rem;
	font-weight: 600;
}

.tb-cart-editor__select,
.tb-cart-item__qty-input {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #cfd5de;
	border-radius: 10px;
	background: #fff;
	font-size: 0.95rem;
}

.tb-cart-editor__date-trigger {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	width: 100% !important;
	min-height: 44px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1px solid rgba(47, 153, 143, 0.25) !important;
	border-radius: 10px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #1a2744 !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	cursor: pointer !important;
	text-align: left !important;
	box-sizing: border-box !important;
}

.tb-cart-editor__date-trigger:hover,
.tb-cart-editor__date-trigger:focus,
.tb-cart-editor__date-trigger.is-open {
	border-color: rgba(47, 153, 143, 0.45) !important;
	background: #fff !important;
	background-image: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: #1a2744 !important;
}

.tb-cart-editor__date-trigger .dashicons {
	color: #2f998f !important;
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.tb-cart-editor__date-caret {
	margin-left: auto !important;
	color: #5b6475 !important;
}

.tb-cart-editor__date-trigger.is-open .tb-cart-editor__date-caret {
	transform: rotate(180deg);
}

.tb-cart-editor__date-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.tb-cart .flatpickr-calendar {
	z-index: 100060 !important;
}

.tb-cart-editor__pax {
	padding: 12px;
	border: 1px solid var(--tb-cart-border);
	border-radius: 12px;
	background: var(--tb-cart-bg);
}

.tb-cart-editor__pax .tb-pax-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.tb-cart-editor__pax .tb-pax-row:last-child {
	margin-bottom: 0;
}

.tb-cart-editor__pax .tb-pax-row-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tb-cart-editor__pax .tb-pax-row-head strong {
	font-size: 0.95rem;
	color: var(--tb-cart-text);
}

.tb-cart-editor__pax .tb-pax-age-hint {
	color: var(--tb-cart-muted);
	font-size: 0.8rem;
}

.tb-cart-editor__pax .tb-stepper {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.tb-cart-editor__pax .tb-stepper input.tb-pax-count {
	width: 48px;
	min-width: 48px;
	min-height: 44px;
	padding: 10px 6px !important;
	margin: 0 !important;
	text-align: center;
	box-sizing: border-box !important;
	border: 1px solid rgba(47, 153, 143, 0.25) !important;
	border-radius: 8px !important;
	color: var(--tb-cart-text) !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	background: #fff !important;
	box-shadow: none !important;
}

.tb-cart-editor__pax .tb-stepper .tb-stepper-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	border: 2px solid rgba(47, 153, 143, 0.55) !important;
	background: #2f998f !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 22px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-shadow: none !important;
}

.tb-cart-editor__pax .tb-stepper .tb-stepper-btn:hover,
.tb-cart-editor__pax .tb-stepper .tb-stepper-btn:focus {
	background: #257a73 !important;
	outline: none;
}

.tb-cart-editor__addon-list {
	display: grid;
	gap: 8px;
}

.tb-cart-editor__addon {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--tb-cart-border);
	border-radius: 10px;
	background: #fff;
	font-size: 0.9rem;
	cursor: pointer;
}

.tb-cart-editor__addon-price {
	margin-left: auto;
	color: var(--tb-cart-muted);
	font-size: 0.85rem;
}

.tb-cart-editor__status {
	margin: 0 0 10px;
	font-size: 0.88rem;
}

.tb-cart-editor__status.is-error {
	color: #b42318;
}

.tb-cart-editor__status.is-success {
	color: var(--tb-cart-teal-dark);
}

.tb-cart-editor__submit,
.tb-cart-item__update-btn {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--tb-cart-teal);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.tb-cart-editor__submit:hover,
.tb-cart-item__update-btn:hover {
	background: var(--tb-cart-teal-dark);
}

.tb-cart-item__simple-qty {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: end;
}

.tb-cart-item__simple-qty label {
	grid-column: 1 / -1;
	font-weight: 600;
	font-size: 0.9rem;
}

.tb-cart-totals {
	padding: 18px;
	border-radius: 16px;
	background: var(--tb-cart-bg);
	border: 1px solid var(--tb-cart-border);
}

.tb-cart-totals__title {
	margin: 0 0 14px;
	font-size: 1.1rem;
}

.tb-cart-totals__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0;
	font-size: 0.95rem;
}

.tb-cart-totals__row--total {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--tb-cart-border);
	font-size: 1.1rem;
	font-weight: 700;
}

.tb-cart__checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 14px;
	min-height: 52px;
	padding: 14px 20px;
	border-radius: 999px;
	background: var(--tb-cart-teal);
	color: #fff !important;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none !important;
}

.tb-cart__checkout-btn:hover {
	background: var(--tb-cart-teal-dark);
}

.tb-cart__aside-note {
	margin: 12px 0 0;
	color: var(--tb-cart-muted);
	font-size: 0.85rem;
	line-height: 1.4;
	text-align: center;
}

.tb-cart__aside {
	position: sticky;
	top: 88px;
}

@media (max-width: 900px) {
	.tb-cart__layout {
		grid-template-columns: 1fr;
	}

	.tb-cart__aside {
		position: static;
		order: 2;
	}

	.tb-cart__items {
		order: 1;
	}

	.tb-cart-item__head {
		grid-template-columns: 56px minmax(0, 1fr) auto;
	}

	.tb-cart-item__thumb {
		width: 56px;
		height: 56px;
	}
}
