.ims-av {
	--ims-av-columns: 3;
	--ims-av-gap: 12px;
	--ims-av-page-bg: #f4f4f4;
	--ims-av-ticket-cutout-bg: var(--ims-av-page-bg, #f4f4f4);
	--ims-av-ticket-notch-height: 50px;
	--ims-av-ticket-notch-depth: 20px;
	--ims-av-ticket-notch-offset: 0px;
	--ims-av-ticket-notch-radius: 50%;
	--ims-av-ticket-edge-color: #e4e6e8;
	--ims-av-ticket-divider-inset: 34px;
	--ims-av-card-height: 191px;
	width: 100%;
	min-width: 0;
	color: #20252b;
	background: #f4f4f4;
}

.ims-av,
.ims-av *,
.ims-av *::before,
.ims-av *::after {
	box-sizing: border-box;
}

.ims-av svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ims-av__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 16px;
}

.ims-av__title {
	margin: 0;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
}

.ims-av__save-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--ims-av-save-button-width, 120px);
	width: 430px;
	max-width: 100%;
	min-height: var(--ims-av-save-height, 54px);
	padding: 4px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 0;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .02);
}


.ims-av__input,
.ims-av__save {
	display: flex;
	min-width: 0;
	height: calc(var(--ims-av-save-height, 54px) - 8px);
	align-items: center;
	border: 0;
	border-radius: 0;
	outline: 0;
}

.ims-av__input {
	width: 100%;
	padding: 0 18px;
	color: #9b9b9b;
	font-size: 16px;
	line-height: 1.2;
	background: #fff;
}

.ims-av__input {
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
}

/* Force the inner voucher-code input to stay borderless inside the outer frame. */
.elementor-widget-ims-account-vouchers .ims-av .ims-av__save-form .ims-av__input {
	border: 0 !important;
	border-width: 0 !important;
	border-style: none !important;
	box-shadow: none !important;
	outline: 0;
}

.ims-av__input::placeholder {
	color: #a3a3a3;
	opacity: 1;
}

.ims-av__save {
	justify-content: center;
	width: 100%;
	padding: 0 20px;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	background-color: #20252b;
	background-image: none;
	border: 0;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.ims-av__save:hover,
.ims-av__save:focus-visible {
	color: #fff;
	background-color: #343a40;
}

.ims-av__save:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ims-av__input {
	width: 100%;
	padding: 0 12px;
	background: #fff;
}

.ims-av__save {
	padding: 0 18px;
	color: #fff;
	cursor: pointer;
	background: #20252b;
	border-color: #20252b;
}

.ims-av__message {
	margin: 0 0 12px;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.4;
	background: #fff;
	border: 1px solid #e5e5e5;
}

.ims-av__message.is-error {
	color: #a52631;
	background: #fff1f2;
	border-color: #f2cbd0;
}

.ims-av__message.is-success {
	color: #246440;
	background: #edf8f2;
	border-color: #cde9da;
}

.ims-av__grid {
	display: grid;
	grid-template-columns: repeat(var(--ims-av-columns, 3), minmax(0, 1fr));
	grid-auto-rows: var(--ims-av-card-height, 191px);
	align-items: stretch;
	gap: var(--ims-av-gap, 12px);
	min-width: 0;
}

/* ------------------------------------------------------------
 * Ticket card
 * ------------------------------------------------------------ */
.ims-av-card {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	isolation: isolate;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e4e6e8;
	border-radius: 12px;
}

.ims-av-card__body {
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	flex: 1 1 auto;
	padding: 18px 20px 14px;
}

.ims-av-card__top {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.ims-av-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	color: #fff;
	font-size: 19px;
	line-height: 1;
	background: #20252b;
	border-radius: 8px;
}

.ims-av-card__copy {
	display: flex;
	min-width: 0;
	max-width: 100%;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	padding-top: 2px;
}

.ims-av-card__title {
	display: -webkit-box;
	overflow: hidden;
	color: #20252b;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ims-av-card__subtitle {
	color: #34383d;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
}

.ims-av-card__offer {
	display: -webkit-box;
	min-height: 1.45em;
	overflow: hidden;
	margin-top: 10px;
	color: #3f4448;
	font-size: 12px;
	line-height: 1.45;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ims-av-card__expiry {
	margin-top: 3px;
	color: #999da1;
	font-size: 11px;
	line-height: 1.35;
}

.ims-av-card__footer {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	gap: 12px;
	margin-top: auto;
	padding: 14px 20px;
	border-top: 0;
}

/*
 * Smooth ticket cut-outs.
 * Real border arcs replace the previous shadow ring.
 */
.ims-av-card__footer::before,
.ims-av-card__footer::after {
	position: absolute;
	top: calc((var(--ims-av-ticket-notch-height, 50px) / -2) + var(--ims-av-ticket-notch-offset, 0px));
	z-index: 3;
	width: calc(var(--ims-av-ticket-notch-depth, 20px) * 2);
	height: var(--ims-av-ticket-notch-height, 50px);
	content: "";
	background: var(--ims-av-ticket-cutout-bg, var(--ims-av-page-bg, #f4f4f4));
	border: 1px solid var(--ims-av-ticket-edge-color, #e4e6e8);
	border-radius: var(--ims-av-ticket-notch-radius, 50%);
	box-shadow: none;
	pointer-events: none;
}

.ims-av-card__footer::before {
	left: calc((var(--ims-av-ticket-notch-depth, 20px) + 2px) * -1);
	clip-path: inset(0 0 0 50%);
}

.ims-av-card__footer::after {
	right: calc((var(--ims-av-ticket-notch-depth, 20px) + 2px) * -1);
	clip-path: inset(0 50% 0 0);
}

.ims-av-card__separator {
	position: absolute;
	top: 0;
	left: var(--ims-av-ticket-divider-inset, 34px);
	right: var(--ims-av-ticket-divider-inset, 34px);
	z-index: 2;
	height: 0;
	border-top: 1px dashed #d7dadd;
	pointer-events: none;
}

.ims-av-card__code {
	min-width: 0;
	color: #20252b;
	font-size: 11px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.ims-av-card__use {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 34px;
	padding: 5px 14px;
	color: #fff;
	white-space: nowrap;
	cursor: pointer;
	background: #20252b;
	border: 1px solid #20252b;
	border-radius: 7px;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ims-av-card__use:hover {
	color: #fff;
	background: #343a40;
	border-color: #343a40;
}

.ims-av-card__use-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
}

.ims-av-card__remove {
	position: absolute;
	top: -8px;
	right: -4px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	color: #6f7479;
	font: inherit;
	font-size: 11px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	user-select: none;
	background-color: #fff;
	background-image: none;
	border: 1px solid #e4e6e8;
	border-radius: 50%;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.ims-av-card__remove:hover,
.ims-av-card__remove:focus-visible {
	color: #20252b;
	background-color: #f5f5f5;
	border-color: #d5d8db;
	outline: none;
}

.ims-av-card__remove[aria-disabled="true"] {
	opacity: .55;
	pointer-events: none;
}

.ims-av-card__remove svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ims-av__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.ims-av__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: #34383d;
	text-decoration: none;
	background: #fff;
	border: 1px solid #ececec;
}

.ims-av__page.is-current {
	color: #fff;
	background: #20252b;
	border-color: #20252b;
}

.ims-av__page.dots {
	pointer-events: none;
}

.ims-av__empty {
	padding: 24px;
	color: #777b80;
	text-align: center;
	background: #fff;
	border: 1px solid #ececec;
}


@media (max-width: 1024px) {
	.ims-av {
		--ims-av-columns: 2;
	}
}

@media (max-width: 480px) {
	.ims-av__save-form {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ims-av__save {
		width: 100%;
	}

	.ims-av-card__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.ims-av-card__use {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ims-av-card__use {
		transition: none;
	}
}


/* =========================================================
 * 1.4.4 ticket background image override
 * ========================================================= */
.ims-av-card {
	position: relative;
	overflow: hidden;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	isolation: isolate;
}

.ims-av-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: url("../images/ticket-bg.png");
	background-position: center center;
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.ims-av-card__body,
.ims-av-card__footer,
.ims-av-card__separator,
.ims-av-card__header,
.ims-av-card__meta,
.ims-av-card__code-row,
.ims-av-card__actions {
	position: relative;
	z-index: 1;
}

.ims-av-card__separator {
	position: absolute !important;
	top: 0;
	left: 34px;
	right: 34px;
	z-index: 3 !important;
	display: block;
	width: auto;
	height: 0 !important;
	margin: 0 !important;
	opacity: 1 !important;
	background: transparent !important;
	border: 0;
	border-top: 1px dashed #d7dadd;
	pointer-events: none;
}

.ims-av-card__footer {
	position: relative;
	padding-top: 18px;
}

.ims-av-card__separator::before,
.ims-av-card__separator::after,
.ims-av-card__footer::before,
.ims-av-card__footer::after,
.ims-av-ticket__notch,
.ims-av-ticket__notch::before,
.ims-av-ticket__notch::after,
.ims-av-card__outline,
.ims-av-card__outline-path {
	display: none !important;
}

.ims-av-card__use,
.ims-av-card__remove,
.ims-av-card__save,
.ims-av-form button,
.ims-av-card button,
.ims-av-card input[type="button"],
.ims-av-card input[type="submit"] {
	position: relative;
	z-index: 2;
}

/* =========================================================
 * Responsive hardening 1.4.5
 * ========================================================= */
.ims-av,
.ims-av__header,
.ims-av__save-form,
.ims-av__grid,
.ims-av-card,
.ims-av-card__body,
.ims-av-card__top,
.ims-av-card__copy,
.ims-av-card__footer,
.ims-av-card__code {
	min-width: 0;
}

.ims-av__title,
.ims-av-card__title,
.ims-av-card__subtitle,
.ims-av-card__offer,
.ims-av-card__expiry,
.ims-av-card__code,
.ims-av__message {
	overflow-wrap: anywhere;
	word-break: normal;
}

.ims-av-card__use {
	max-width: 100%;
}

@media (max-width: 1024px) {
	.ims-av {
		--ims-av-columns: 2;
	}

	.ims-av__header {
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
	}

	.ims-av__save-form {
		width: 100%;
	}

	.ims-av__grid {
		grid-auto-rows: auto;
	}

	.ims-av-card {
		height: auto;
		min-height: 205px;
	}

	.ims-av-card__body {
		overflow: visible;
	}
}

@media (max-width: 767px) {
	.ims-av {
		--ims-av-columns: 1;
	}

	.ims-av__title {
		font-size: clamp(24px, 7vw, 30px);
	}

	.ims-av__save-form {
		grid-template-columns: minmax(0, 1fr) minmax(96px, 34%);
		min-height: 50px;
	}

	.ims-av__input {
		padding-inline: 12px;
		font-size: 14px;
	}

	.ims-av__save {
		padding-inline: 12px;
		font-size: 14px;
		white-space: normal;
	}

	.ims-av-card {
		min-height: 220px;
	}

	.ims-av-card__body {
		padding: 16px 17px 13px;
	}

	.ims-av-card__footer {
		padding: 15px 17px 16px;
	}

	.ims-av-card__top {
		gap: 12px;
	}

	.ims-av-card__icon {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
	}

	.ims-av-card__use {
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 520px) {
	.ims-av__save-form {
		display: flex;
		flex-direction: column;
		gap: 8px;
		padding: 6px;
	}

	.ims-av__input,
	.ims-av__save {
		width: 100%;
		height: 44px;
		min-height: 44px;
	}

	.ims-av-card__footer {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
	}

	.ims-av-card__use {
		width: 100%;
	}

	.ims-av-card__separator {
		left: 28px;
		right: 28px;
	}

	.ims-av__pagination {
		gap: 6px;
	}

	.ims-av__page {
		width: 34px;
		height: 34px;
	}
}
