/* ============================================================
   OBV Cart – Diseño Turistik
   ============================================================ */

:root {
	--obv-red:        #d32f2f;
	--obv-red-dark:   #b71c1c;
	--obv-red-light:  #ffebee;
	--obv-gray-50:    #fafafa;
	--obv-gray-100:   #f5f5f5;
	--obv-gray-200:   #e0e0e0;
	--obv-gray-500:   #9e9e9e;
	--obv-gray-700:   #616161;
	--obv-gray-900:   #212121;
	--obv-radius:     8px;
	--obv-shadow:     0 1px 4px rgba(0, 0, 0, .08);
}

/* ── Contenedor principal ─────────────────────────────────── */

.obv-cart-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
	font-family: inherit;
}

/* ── Barra de info de reserva ─────────────────────────────── */

.obv-cart-infobar {
	padding: 14px 20px 0;
	margin-bottom: 24px;
	background: #fff;
	border: 1px solid var(--obv-gray-200);
	border-radius: var(--obv-radius);
	box-shadow: var(--obv-shadow);
	overflow: hidden;
}

.obv-cart-infobar--hidden {
	display: none;
}

.obv-cart-infobar__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 14px;
}

.obv-cart-reservation {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.obv-cart-reservation__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--obv-gray-500);
}

.obv-cart-reservation__id {
	font-size: 15px;
	font-weight: 700;
	color: var(--obv-gray-900);
	letter-spacing: .01em;
}

.obv-cart-timer {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--obv-gray-700);
}

.obv-cart-timer__icon {
	color: var(--obv-gray-500);
	flex-shrink: 0;
}

.obv-cart-timer__countdown {
	font-size: 15px;
	font-weight: 700;
	color: var(--obv-gray-900);
	min-width: 48px;
	text-align: right;
}

.obv-cart-timer--urgent .obv-cart-timer__countdown {
	color: var(--obv-red);
}

/* ── Barra de progreso del tiempo ─────────────────────────── */

.obv-cart-timer-progress {
	height: 5px;
	background: var(--obv-gray-200);
	margin: 0 -20px;
}

.obv-cart-timer-progress__bar {
	height: 100%;
	width: 100%;
	background: #4caf50;
	transition: width 1s linear, background .5s ease;
}

.obv-cart-timer--urgent .obv-cart-timer-progress__bar {
	background: var(--obv-red);
}

/* ── Layout dos columnas ──────────────────────────────────── */

.obv-cart-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
	align-items: start;
}

@media (max-width: 900px) {
	.obv-cart-layout {
		grid-template-columns: 1fr;
	}
}

/* ── Tabla de ítems ───────────────────────────────────────── */

.obv-cart-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--obv-gray-200);
	border-radius: var(--obv-radius);
	overflow: hidden;
	box-shadow: var(--obv-shadow);
}

.obv-cart-table thead th {
	padding: 14px 20px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--obv-gray-700);
	background: var(--obv-gray-50);
	border-bottom: 1px solid var(--obv-gray-200);
	text-align: left;
}

.obv-cart-table thead th.obv-col-price {
	text-align: right;
}

.obv-cart-table tbody tr {
	border-bottom: 1px solid var(--obv-gray-200);
}

.obv-cart-table tbody tr:last-child {
	border-bottom: 0;
}

.obv-cart-table td {
	padding: 18px 20px;
	vertical-align: middle;
}

.obv-col-price {
	text-align: right;
	white-space: nowrap;
	vertical-align: top !important;
	padding-top: 22px !important;
}

/* ── Ítem del carrito ─────────────────────────────────────── */

.obv-cart-item__inner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.obv-cart-item__thumb {
	flex-shrink: 0;
	width: 76px;
	height: 76px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--obv-gray-100);
}

.obv-cart-item__thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.obv-cart-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.obv-cart-item__details {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.obv-cart-item__name {
	font-size: 15px;
	font-weight: 600;
	color: var(--obv-red);
	text-decoration: none;
	line-height: 1.3;
}

.obv-cart-item__name:hover {
	color: var(--obv-red-dark);
	text-decoration: underline;
}

.obv-cart-item__meta {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--obv-gray-700);
	line-height: 1.4;
}

.obv-meta-icon {
	flex-shrink: 0;
	color: var(--obv-gray-500);
}

/* ── Stepper de pasajeros ─────────────────────────────────── */

.obv-pax-stepper {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--obv-gray-700);
	margin-top: 4px;
}

.obv-pax-label {
	flex-shrink: 0;
	min-width: 44px;
}

.obv-pax-controls {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid var(--obv-gray-300, #d8d8d8);
	border-radius: 6px;
	overflow: hidden;
}

.obv-pax-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: var(--obv-gray-100, #f5f5f5);
	border: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: var(--obv-gray-700, #444);
	transition: background 0.15s, color 0.15s;
	padding: 0;
	flex-shrink: 0;
}

.obv-pax-btn:hover:not(:disabled) {
	background: var(--obv-red, #d32f2f);
	color: #fff;
}

.obv-pax-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.obv-pax-btn.obv-pax-loading {
	opacity: 0.5;
	cursor: wait;
	pointer-events: none;
}

.obv-pax-num {
	display: inline-block;
	min-width: 24px;
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	border-left: 1px solid var(--obv-gray-300, #d8d8d8);
	border-right: 1px solid var(--obv-gray-300, #d8d8d8);
	line-height: 26px;
	color: var(--obv-gray-900, #1a1a1a);
}

/* ── Precio e ítem ────────────────────────────────────────── */

.obv-cart-item__price {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--obv-gray-900);
	margin-bottom: 10px;
}

/* ── Botón Eliminar ───────────────────────────────────────── */
/* Sobreescribe los estilos de WC para .remove (usan !important) */

.obv-cart-table a.remove.obv-cart-remove,
.obv-cart-table a.remove.obv-cart-remove:visited {
	display: inline-block !important;
	width: auto !important;
	height: auto !important;
	padding: 5px 14px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	color: var(--obv-gray-700) !important;
	background: transparent !important;
	border: 1px solid var(--obv-gray-200) !important;
	border-radius: 20px !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: border-color .15s, color .15s, background .15s;
	text-indent: 0 !important;
	float: none !important;
}

.obv-cart-table a.remove.obv-cart-remove:hover {
	border-color: var(--obv-red) !important;
	color: var(--obv-red) !important;
	background: var(--obv-red-light) !important;
}

/* ── Sidebar de totales ───────────────────────────────────── */

.obv-cart-totals {
	background: #fff;
	border: 1px solid var(--obv-gray-200);
	border-radius: var(--obv-radius);
	padding: 24px;
	box-shadow: var(--obv-shadow);
	position: sticky;
	top: 80px;
}

.obv-cart-totals__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--obv-gray-900);
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--obv-gray-200);
}

.obv-cart-totals__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font-size: 14px;
	color: var(--obv-gray-700);
	border-bottom: 1px solid var(--obv-gray-100);
}

.obv-cart-totals__row:last-of-type {
	border-bottom: 0;
}

.obv-cart-totals__row--total {
	padding-top: 14px;
	font-size: 16px;
	color: var(--obv-gray-900);
	border-top: 2px solid var(--obv-gray-200);
	margin-top: 4px;
}

.obv-cart-totals__row--discount .obv-discount-amount {
	color: var(--obv-red);
	font-weight: 600;
}

.obv-remove-coupon {
	display: inline-block;
	margin-left: 6px;
	font-size: 11px;
	color: var(--obv-gray-500);
	text-decoration: none;
	vertical-align: middle;
}

.obv-remove-coupon:hover {
	color: var(--obv-red);
}

/* ── Campo de cupón ───────────────────────────────────────── */

.obv-cart-coupon {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--obv-gray-200);
}

.obv-cart-coupon__label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--obv-gray-700);
	margin-bottom: 8px;
}

.obv-cart-coupon__form {
	display: flex;
	gap: 8px;
}

.obv-cart-coupon__input {
	flex: 1;
	min-width: 0;
	height: 38px;
	padding: 0 12px;
	font-size: 13px;
	border: 1px solid var(--obv-gray-200);
	border-radius: 6px;
	outline: none;
	transition: border-color .15s;
}

.obv-cart-coupon__input:focus {
	border-color: var(--obv-gray-500);
}

.obv-cart-coupon__btn {
	height: 38px;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--obv-gray-700) !important;
	background: transparent !important;
	border: 1px solid var(--obv-gray-200) !important;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .15s, color .15s;
}

.obv-cart-coupon__btn:hover {
	border-color: var(--obv-gray-500) !important;
	color: var(--obv-gray-900) !important;
}

/* ── Botón Finalizar Compra ───────────────────────────────── */

.obv-cart-checkout-btn {
	display: block;
	width: 100%;
	margin-top: 18px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .03em;
	text-align: center;
	color: #fff !important;
	background: var(--obv-red) !important;
	border: 2px solid var(--obv-red) !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	box-sizing: border-box;
}

.obv-cart-checkout-btn:hover {
	background: var(--obv-red-dark) !important;
	border-color: var(--obv-red-dark) !important;
	color: #fff !important;
}

/* ── Notices de WC ────────────────────────────────────────── */

.woocommerce-notices-wrapper {
	margin-bottom: 16px;
}

/* ── Carrito vacío ────────────────────────────────────────── */

.woocommerce-cart-empty {
	text-align: center;
	padding: 48px 0;
	color: var(--obv-gray-500);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 600px) {
	.obv-cart-infobar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.obv-cart-item__inner {
		flex-wrap: wrap;
	}

	.obv-col-price {
		text-align: left !important;
		padding-top: 0 !important;
	}

	.obv-cart-table thead th.obv-col-price {
		text-align: left;
	}

	.obv-cart-coupon__form {
		flex-direction: column;
	}
}
