:root {
	--rlcu-red: #e21d2b;
	--rlcu-red-dark: #b80f1c;
	--rlcu-ink: #111216;
	--rlcu-muted: #6d7078;
	--rlcu-line: #e7e7eb;
}

body.rlcu-modal-open {
	overflow: hidden;
}

.rlcu-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	visibility: hidden;
	opacity: 0;
	transition: opacity .2s ease, visibility .2s ease;
}

.rlcu-modal.is-open {
	visibility: visible;
	opacity: 1;
}

.rlcu-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 8, 11, .78);
	backdrop-filter: blur(4px);
}

.rlcu-modal__dialog {
	position: relative;
	display: flex;
	width: min(860px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	max-height: min(760px, calc(100dvh - 48px));
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
	transform: translateY(18px) scale(.985);
	transition: transform .25s ease;
}

.rlcu-modal.is-open .rlcu-modal__dialog {
	transform: translateY(0) scale(1);
}

.rlcu-modal__dialog::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	z-index: 2;
	height: 5px;
	background: linear-gradient(90deg, var(--rlcu-red-dark), #ff3344, var(--rlcu-red-dark));
}

.rlcu-modal__close {
	position: absolute;
	top: 13px;
	right: 15px;
	z-index: 5;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f2f2f4;
	color: var(--rlcu-ink);
	font: 300 31px/38px Arial, sans-serif;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}

.rlcu-modal__close:hover,
.rlcu-modal__close:focus-visible {
	background: var(--rlcu-red);
	color: #fff;
	transform: rotate(6deg);
	outline: none;
}

.rlcu-modal__body {
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 24px 26px 12px;
	overscroll-behavior: contain;
}

.rlcu-header {
	padding: 0 48px 14px;
	text-align: center;
}

.rlcu-header__eyebrow {
	display: inline-block;
	margin-bottom: 3px;
	color: var(--rlcu-red);
	font: 800 11px/1.2 Arial, sans-serif;
	letter-spacing: .15em;
}

.rlcu-header h2 {
	margin: 0;
	color: var(--rlcu-ink);
	font: 900 32px/1.05 Arial, sans-serif;
	letter-spacing: -.04em;
}

.rlcu-header p {
	margin: 6px 0 0;
	color: var(--rlcu-muted);
	font: 500 14px/1.4 Arial, sans-serif;
}

.rlcu-products {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 11px;
}

.rlcu-card {
	position: relative;
	display: grid;
	grid-template-columns: 144px minmax(0, 1fr);
	min-width: 0;
	min-height: 104px;
	overflow: hidden;
	border: 1px solid var(--rlcu-line);
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 16, 20, .055);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rlcu-card:hover {
	border-color: #cacbd0;
	box-shadow: 0 7px 18px rgba(15, 16, 20, .09);
	transform: translateY(-1px);
}

.rlcu-card.is-added {
	border-color: #29a65a;
	box-shadow: 0 0 0 1px rgba(41, 166, 90, .12);
}

.rlcu-card__image {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 104px;
	overflow: hidden;
	background: #efeff1;
}

.rlcu-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform .3s ease;
}

.rlcu-card:hover .rlcu-card__image img {
	transform: scale(1.025);
}

.rlcu-card__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 120px 110px;
	grid-template-rows: auto auto;
	gap: 4px 11px;
	align-items: center;
	min-width: 0;
	padding: 15px 16px 14px 18px;
}

.rlcu-card h3 {
	display: -webkit-box;
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	overflow: hidden;
	margin: 0;
	color: var(--rlcu-ink);
	font: 800 13px/1.2 Arial, sans-serif;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rlcu-card h3 a {
	color: var(--rlcu-ink);
	text-decoration: none;
}

.rlcu-card h3 a:hover,
.rlcu-card h3 a:focus-visible {
	color: var(--rlcu-red-dark);
	outline: none;
}

.rlcu-card__price {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
	color: var(--rlcu-red);
	font: 900 14px/1.15 Arial, sans-serif;
}

.rlcu-card__price del {
	color: #92949a;
	font-weight: 500;
}

.rlcu-card__form {
	display: grid;
	grid-column: 2 / 4;
	grid-row: 1 / 3;
	grid-template-columns: 120px 110px;
	gap: 9px;
	align-items: end;
}

.rlcu-card__form--single {
	grid-template-columns: 110px;
	justify-content: end;
}

.rlcu-ticket-qty label {
	display: block;
	margin: 0 0 4px;
	color: #686b72;
	font: 800 9px/1.1 Arial, sans-serif;
	letter-spacing: .045em;
	text-transform: uppercase;
}

.rlcu-qty__control {
	display: grid;
	grid-template-columns: 30px 1fr 30px;
	height: 38px;
	overflow: hidden;
	border: 1px solid #d8d8dc;
	border-radius: 7px;
	background: #fff;
}

.rlcu-qty__input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 36px;
	margin: 0;
	padding: 0 2px;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff;
	color: var(--rlcu-ink);
	font: 700 13px/1 Arial, sans-serif;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
	box-shadow: none !important;
}

.rlcu-qty__input::-webkit-inner-spin-button,
.rlcu-qty__input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.rlcu-qty__button {
	width: 30px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #f1f1f3;
	color: var(--rlcu-ink);
	font: 800 18px/1 Arial, sans-serif;
	cursor: pointer;
}

.rlcu-qty__button:hover,
.rlcu-qty__button:focus-visible {
	background: #e4e4e7;
	color: var(--rlcu-red);
	outline: none;
}

.rlcu-card__button {
	height: 38px;
	padding: 0 10px;
	border: 0;
	border-radius: 7px;
	background: linear-gradient(180deg, #f22b3a, var(--rlcu-red-dark));
	color: #fff;
	font: 900 10px/1 Arial, sans-serif;
	letter-spacing: .025em;
	white-space: nowrap;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}

.rlcu-card__button:hover,
.rlcu-card__button:focus-visible {
	filter: brightness(1.08);
	transform: translateY(-1px);
	outline: none;
}

.rlcu-card__button:disabled {
	cursor: default;
	filter: grayscale(.25);
	transform: none;
}

.rlcu-card__message {
	position: absolute;
	right: 13px;
	bottom: 2px;
	z-index: 2;
	max-width: 270px;
	color: #218347;
	font: 700 9px/1.1 Arial, sans-serif;
	text-align: right;
}

.rlcu-card__message.is-error {
	color: #b21522;
}

.rlcu-modal__footer {
	position: relative;
	z-index: 6;
	flex: 0 0 auto;
	padding: 8px 26px max(8px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--rlcu-line);
	background: rgba(255, 255, 255, .98);
	box-shadow: 0 -6px 18px rgba(15, 16, 20, .06);
}

.rlcu-continue {
	display: block;
	width: 100%;
	margin: 0;
	padding: 9px 16px;
	border: 1px solid #d7d8dc;
	border-radius: 8px;
	background: #fff;
	color: #4e5158;
	font: 800 13px/1.2 Arial, sans-serif;
	cursor: pointer;
}

.rlcu-continue:hover,
.rlcu-continue:focus-visible {
	border-color: var(--rlcu-ink);
	color: var(--rlcu-ink);
	outline: none;
}

.rlcu-loader {
	display: flex;
	min-height: 330px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--rlcu-muted);
	font: 600 14px/1.4 Arial, sans-serif;
}

.rlcu-loader span {
	width: 42px;
	height: 42px;
	border: 4px solid #eeeef1;
	border-top-color: var(--rlcu-red);
	border-radius: 50%;
	animation: rlcu-spin .7s linear infinite;
}

@keyframes rlcu-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
	.rlcu-modal {
		align-items: flex-end;
		padding: 10px 10px 0;
	}
	.rlcu-modal__dialog {
		width: 100%;
		max-height: calc(100vh - 10px);
		max-height: calc(100dvh - 10px);
		border-radius: 17px 17px 0 0;
	}
	.rlcu-modal__close {
		top: 10px;
		right: 11px;
		width: 36px;
		height: 36px;
		font-size: 27px;
		line-height: 33px;
	}
	.rlcu-modal__body {
		padding: 18px 11px 7px;
	}
	.rlcu-header {
		padding: 0 38px 10px;
	}
	.rlcu-header__eyebrow {
		font-size: 9px;
	}
	.rlcu-header h2 {
		font-size: 27px;
	}
	.rlcu-header p {
		margin-top: 4px;
		font-size: 12px;
	}
	.rlcu-products {
		gap: 8px;
	}
	.rlcu-card {
		grid-template-columns: 104px minmax(0, 1fr);
		min-height: 90px;
		border-radius: 9px;
	}
	.rlcu-card__image {
		min-height: 90px;
	}
	.rlcu-card__content {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		gap: 2px;
		padding: 9px 10px 9px 11px;
	}
	.rlcu-card h3 {
		grid-column: 1;
		grid-row: 1;
		font-size: 11px;
		line-height: 1.15;
	}
	.rlcu-card__price {
		grid-column: 1;
		grid-row: 2;
		font-size: 12px;
	}
	.rlcu-card__form {
		grid-column: 1;
		grid-row: 3;
		grid-template-columns: 98px 104px;
		gap: 6px;
		justify-content: end;
		margin-top: 2px;
	}
	.rlcu-card__form--single {
		grid-template-columns: 104px;
		justify-content: end;
	}
	.rlcu-ticket-qty label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.rlcu-qty__control {
		grid-template-columns: 27px 1fr 27px;
		height: 32px;
	}
	.rlcu-qty__input {
		height: 30px;
		font-size: 16px;
	}
	.rlcu-qty__button {
		width: 27px;
		height: 30px;
		font-size: 16px;
	}
	.rlcu-card__button {
		height: 32px;
		padding-inline: 6px;
		font-size: 9px;
	}
	.rlcu-card__message {
		right: 8px;
		bottom: 1px;
		max-width: calc(100% - 85px);
		font-size: 8px;
	}
	.rlcu-modal__footer {
		padding: 6px 11px max(6px, env(safe-area-inset-bottom));
	}
	.rlcu-continue {
		min-height: 38px;
		padding-block: 8px;
	}
}

@media (max-width: 380px) {
	.rlcu-modal {
		padding: 0;
	}
	.rlcu-modal__dialog {
		max-height: 100vh;
		max-height: 100dvh;
	}
	.rlcu-modal__body {
		padding-inline: 8px;
	}
	.rlcu-card {
		grid-template-columns: 84px minmax(0, 1fr);
	}
	.rlcu-card__content {
		padding-inline: 7px;
	}
	.rlcu-card__form {
		grid-template-columns: 88px 94px;
	}
	.rlcu-card__form--single {
		grid-template-columns: 94px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rlcu-modal,
	.rlcu-modal__dialog,
	.rlcu-card,
	.rlcu-card__image img,
	.rlcu-card__button {
		transition: none;
	}
	.rlcu-loader span {
		animation-duration: 1.5s;
	}
}
