/* Custom WooCommerce cart — ticket-focused interface. */
.otc-cart__ticket--invalid { outline: 2px solid var(--color-danger); outline-offset: 3px; }
.otc-cart__attendee-error,
[data-editor-error] { color: var(--color-danger); font: 500 14px/1.5 var(--font-body); overflow-wrap: anywhere; }
.otc-cart__editor { margin-top: 12px; }
.otc-cart__editor summary { color: var(--blue-700); font: 600 14px/1.5 var(--font-body); cursor: pointer; width: fit-content; }
.otc-cart__editor summary:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 4px; }
.otc-cart__editor form { margin-top: 16px; }
.otc-cart-editor { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); overflow-y: auto; }
.otc-cart-editor::backdrop { background: rgb(0 0 0 / 55%); }
.otc-cart-editor header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.otc-cart-editor h2 { margin: 0; font: var(--font-heading-weight) 36px/1.1 var(--font-heading); }
.otc-cart-editor [data-editor-close] {     flex: 0 0 23px;
    width: fit-content;
    height: fit-content;
    padding: 0;
    border: 0;
    background: #fff;
    border-radius: 50%;
    font-size: 28px; }
.otc-cart-editor form > p:first-child { overflow-wrap: anywhere; }
.woocommerce .otc-cart-editor .entradas-button,
.woocommerce .otc-cart__editor .entradas-button { width: 100%; font: 600 16px/1.4 var(--font-body); text-transform: none; }
.otc-cart-editor :focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }

body.woocommerce-cart,
body.woocommerce-cart #page,
body.woocommerce-cart #content,
body.woocommerce-cart .site-content,
body.woocommerce-cart .content-area,
body.woocommerce-cart .site-main,
body.woocommerce-cart .inside-article {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

body.woocommerce-cart {
	overflow-x: clip;
	background: var(--Background);
}

body.woocommerce-cart .site.grid-container {
	max-width: none;
	padding: 0;
}

.woocommerce-cart .woocommerce {
	margin: 0 !important;
}

.woocommerce-cart .woocommerce-notices-wrapper {
	width: min(calc(100% - 32px), var(--container-site));
	margin: 20px auto 0 !important;
}

.otc-cart {
	/* The cart owns its own 1280px content rail; keep 16px gutters at every width. */
	width: min(calc(100% - 32px), var(--container-site));
	margin-inline: auto;
	padding-top: clamp(42px, 6vw, 86px);
	padding-bottom: clamp(64px, 9vw, 128px);
}

.admin-bar .otc-cart {
	padding-top: 40px;
}

.admin-bar.woocommerce-cart .site-content {
	padding-top: 32px;
}

.otc-cart__heading {
	width: min(100%, 640px);
	padding-bottom: 12px;
	border-bottom: 3px solid var(--blue-dark-100);
}

.otc-cart__title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	color: var(--blue-500);
}

.otc-cart__title-icon,
.otc-cart__empty-state-icon {
	display: grid;
	place-items: center;
}

.otc-cart__title-icon img,
.otc-cart__empty-state-icon svg {
	display: block;
	width: 48px;
	height: 48px;
}

.otc-cart__title-wrap h1,
.otc-cart__summary h2,
.otc-cart__empty-state h1 {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: var(--font-heading-weight);
	font-synthesis: none;
	line-height: 1;
	text-transform: uppercase;
}

.otc-cart__title-wrap h1 {
	font-size: clamp(34px, 4vw, 48px);
	color: var(--blue-500);
}

.otc-cart__layout {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-top: 34px;
}

.otc-cart__tickets-column {
	width: min(100%, 640px);
	min-width: 0;
	flex: 0 1 640px;
}

.otc-cart__toolbar {
	display: flex;
	min-height: 36px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.otc-cart__count,
.otc-cart__empty-form {
	margin: 0;
}

.otc-cart__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--blue-dark-400);
	font-size: 22px;
	font-weight: 600;
}

.otc-cart__count>img {
	display: block;
	flex: 0 0 28px;
}

.otc-cart__empty-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 0;
	border: 0;
	background: transparent !important;
	color: var(--blue-dark-400) !important;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.otc-cart__remove {
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--blue-dark-300);
	color: #fff;
	font-family: Arial, sans-serif;
	font-weight: 700;
	line-height: 1;
}

.otc-cart__empty-button img {
	display: block;
	flex: 0 0 30px;
}

.otc-cart__ticket-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #d9d9d9;
}

.otc-cart__ticket {
	position: relative;
	display: flex;
	min-width: 0;
	padding: 20px 10px;
	border-bottom: 2px solid #d9d9d9;
	border-left: 4px solid var(--otc-ticket-color, #1ab1e7);
	align-items: flex-start;
	gap: 10px;
}

.otc-cart__remove-form {
	margin: 0;
	flex: 0 0 26px;
}

.otc-cart__remove {
	width: 26px;
	height: 26px;
	padding: 0;
	font-size: 0;
	cursor: pointer;
	background: transparent;
	transition: background var(--transition-fast), transform var(--transition-fast);
}

.otc-cart__remove::before {
	width: 26px;
	height: 26px;
	background: url("../imagenes/cart/close.svg") center / contain no-repeat;
	content: '';
}

.otc-cart__remove:hover,
.otc-cart__empty-button:hover img {
	transform: scale(1.08);
}

.otc-cart__image {
	display: grid;
	width: 129px;
	height: 119px;
	border-radius: 20px;
	overflow: hidden;
	background: #e2e2e2;
	place-items: center;
	flex: 0 0 129px;
}

.otc-cart__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.otc-cart__ticket-content {
	display: flex;
	min-width: 0;
	min-height: 119px;
	justify-content: center;
	flex: 1 1 auto;
	flex-direction: column;
}

.otc-cart__event-line {
	display: flex;
	min-width: 0;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.otc-cart__meta,
.otc-cart__sector,
.otc-cart__attendee,
.otc-cart__date {
	margin: 0;
}

.otc-cart__meta {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 6px;
	color: var(--blue-dark-300);
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: var(--font-heading-weight);
	font-synthesis: none;
	line-height: 1;
	text-transform: uppercase;
}

.otc-cart__meta>span {
	width: 16px;
	height: 16px;
	background: url("../imagenes/cart/basketball.svg") center / contain no-repeat;
	flex: 0 0 16px;
}

.otc-cart__ticket h2 {
	margin: 7px 0 0;
	color: var(--blue-dark-500);
	font-family: var(--font-heading);
	font-size: 28px;
	font-weight: var(--font-heading-weight);
	font-synthesis: none;
	line-height: 1;
	text-transform: uppercase;
}

.otc-cart__sector {
	color: var(--blue-dark-500);
	font-size: 20px;
	line-height: 1.2;
}

.otc-cart__attendee {
	margin-top: 6px;
	color: var(--blue-dark-400);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.otc-cart__date {
	margin-top: 7px;
	color: #878787;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
}

.otc-cart__price {
	width: fit-content;
	align-self: flex-start;
	padding-top: 4px;
	color: var(--blue-500);
	font-family: var(--font-heading);
	font-size: 30px;
	font-weight: var(--font-heading-weight);
	font-synthesis: none;
	line-height: 1;
	white-space: nowrap;
	text-align: right;
	flex: 0 0 auto;
}

.otc-cart__price .woocommerce-Price-amount,
.otc-cart__summary .woocommerce-Price-amount {
	color: inherit;
}

.otc-cart__summary {
	width: min(100%, 493px);
	margin-top: 35px;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: -3px 11px 23.1px rgb(0 0 0 / 17%);
	flex: 0 1 493px;
}

.otc-cart__summary h2 {
	padding: 11px 26px;
	background: var(--blue-dark-300);
	color: #fff;
	font-size: 30px;
}

.otc-cart__summary-content {
	display: flex;
	padding: 14px 44px 22px;
	flex-direction: column;
	gap: 12px;
}

.otc-cart__summary-row {
	display: flex;
	min-height: 48px;
	align-items: center;
	justify-content: space-between;
	color: #000;
	font-size: 20px;
}

.otc-cart__summary-row strong {
	color: var(--blue-dark-500);
	font-family: var(--font-heading);
	font-size: 32px;
	font-weight: var(--font-heading-weight);
	font-synthesis: none;
}

.otc-cart__summary-row--total {
	padding-top: 12px;
	border-top: 2px solid #d9d9d9;
	font-weight: 700;
}

.otc-cart__summary-row--total strong {
	color: var(--blue-500);
	font-size: 36px;
}

.otc-cart__checkout,
.otc-cart__continue {
	display: flex;
	height: 54px;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.otc-cart__availability {
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
}

.otc-cart__checkout:disabled,
.otc-cart__checkout:disabled:hover {
	width: 100%;
	background: var(--color-surface-soft);
	color: var(--color-text-muted);
	cursor: not-allowed;
	box-shadow: none;
}

.otc-cart__checkout {
	margin-top: 4px;
	font-size: 18px;
	font-weight: 600;
}

.otc-cart__continue {
	border: 2px solid var(--blue-dark-400);
	border-radius: 14px;
	color: var(--blue-dark-400);
	font-size: 18px;
	font-weight: 500;
	gap: 8px;
	transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.otc-cart__continue img {
	display: block;
	flex: 0 0 22px;
}

.otc-cart__continue:hover {
	border-color: var(--blue-500);
	background: #e6f5fb;
	color: var(--blue-700);
}

.otc-cart--empty {
	display: grid;
	min-height: max(480px, 65vh);
	place-items: center;
}

.otc-cart__empty-state {
	display: flex;
	width: min(100%, 560px);
	margin: 0 auto;
	padding: clamp(24px, 5vw, 48px);
	text-align: center;
	align-items: center;
	flex-direction: column;
	gap: 16px;
}

.otc-cart__empty-state-icon {
	display: grid;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--blue-50);
	color: var(--blue-500);
	place-items: center;
}

.otc-cart__empty-state h1 {
	color: var(--blue-dark-500);
	font-size: clamp(40px, 6vw, 58px);
}

.otc-cart__empty-state p {
	margin: 0;
	color: var(--blue-dark-400);
	font: 400 16px/1.5 var(--font-body);
}

.otc-cart__empty-cta {
	display: inline-flex;
	min-width: 190px;
	margin-top: 12px;
	padding: 0 28px;
	font: 700 16px/1 var(--font-body);
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.otc-cart__empty-cta:focus-visible {
	outline: 3px solid var(--blue-900);
	outline-offset: 3px;
}

@media (max-width: 1100px) {
	.otc-cart__layout {
		align-items: stretch;
		flex-direction: column;
		gap: 52px;
	}

	.otc-cart__tickets-column,
	.otc-cart__summary {
		width: 100%;
		max-width: none;
		flex: 0;
	}

	.otc-cart__summary {
		margin-top: 0;
		flex-basis: auto;
	}

	.otc-cart__summary-content {
		padding-inline: 28px;
	}
}

@media (max-width: 800px) {
	.otc-cart {
		padding-top: 34px;
		padding-bottom: 64px;
	}

	.admin-bar .otc-cart {
		padding: 40px 0 80px;
	}

	.admin-bar.woocommerce-cart .site-content {
		padding-top: 46px;
	}

	.otc-cart__heading {
		padding-bottom: 10px;
	}

	.otc-cart__title-wrap {
		gap: 12px;
	}

	.otc-cart__title-icon {
		width: 30px;
		height: 30px;
		overflow: hidden;
	}

	.otc-cart__title-icon img {
		width: 30px;
        height: 30px;
	}

	.otc-cart__title-wrap h1 {
		font-size: 32px;
	}

	.otc-cart__layout {
		padding-top: 20px;
	}

	.otc-cart__toolbar {
		margin-bottom: 12px;
	}

	.otc-cart__count {
		font-size: 18px;
	}

	.otc-cart__count>img {
		transform: scale(.78);
		transform-origin: center;
	}

	.otc-cart__ticket-list {
		margin-inline: -16px;
	}

	.otc-cart__ticket {
		min-height: 132px;
		padding: 16px 16px 16px 40px;
		gap: 12px;
	}

	.otc-cart__remove-form {
		position: absolute;
		top: 20px;
		left: 14px;
	}

	.otc-cart__remove {
		width: 20px;
		height: 20px;
	}

	.otc-cart__remove::before {
		width: 20px;
		height: 20px;
	}

	.otc-cart__image {
		width: 112px;
		height: 112px;
		border-radius: 16px;
		flex-basis: 112px;
	}

	.otc-cart__ticket-content {
		min-height: 85px;
		padding-bottom: 20px;
	}

	.otc-cart__meta {
		font-size: 12px;
		gap: 4px;
	}

	.otc-cart__meta>span {
		width: 12px;
		height: 12px;
		flex-basis: 12px;
	}

	.otc-cart__ticket h2 {
		margin: 4px 0 1px;
		font-size: 18px;
	}

	.otc-cart__event-line {
		display: block;
	}

	.otc-cart__sector {
		font-size: 12px;
	}

	.otc-cart__attendee {
		margin-top: 3px;
		font-size: 11px;
	}

	.otc-cart__date {
		margin-top: 3px;
		font-size: 12px;
	}

	.otc-cart__price {
		position: absolute;
		bottom: 13px;
		left: 166px;
		padding: 0;
		font-size: 20px;
	}

	.otc-cart__summary h2 {
		padding: 12px 16px;
		font-size: 24px;
	}

	.otc-cart__summary-content {
		padding: 14px 12px 12px;
		gap: 12px;
	}

	.otc-cart__summary-row {
		min-height: 36px;
		font-size: 18px;
	}

	.otc-cart__summary-row strong {
		font-size: 28px;
	}

	.otc-cart__summary-row--total strong {
		font-size: 32px;
	}

	.otc-cart__checkout,
	.otc-cart__continue {
		min-height: 40px;
		font-size: 16px;
		height: 48px;
	}

	.otc-cart__empty-state {
		padding: 32px 16px;
	}
}

@media (max-width: 380px) {
	.otc-cart__empty-button {
		font-size: 14px;
	}

	.otc-cart__ticket {
		gap: 9px;
	}

	.otc-cart__image {
		width: 76px;
		height: 80px;
		flex-basis: 76px;
	}

	.otc-cart__price {
		left: 125px;
		font-size: 18px;
	}
}
