.evx-ticket-occurrence-picker {
	position: relative;
	max-width: 100%;
}
button[type=button].evx-ticket-occurrence-picker__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    min-height: 40px;
    padding: 10px 20px;
    border: 1px solid var(--evx-border);
    border-radius: 5px;
    background: var(--evx-surface);
    cursor: pointer;
    margin-top: 10px;
	color: var(--evx-primary);
}

.evx-ticket-occurrence-picker__date {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.evx-ticket-occurrence-picker__icon {
	flex: 0 0 auto;
	font-size: 17px;
	line-height: 1;
}

.evx-ticket-occurrence-picker__popover {
	/* position: absolute; */
	position: sticky;
	top: calc(100% + 10px);
	z-index: 1000;
	width: min(350px, calc(100vw - 30px));
}

.evx-ticket-occurrence-picker__popover[hidden] {
	display: none !important;
}

.evx-ticket-occurrence-picker__popover .evx-occurrence-calendar {
	margin: 0;
	padding: 15px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
	background:var(--evx-surface);
}

.evx-ticket-occurrence-picker__popover .evx-occurrence-calendar__heading {
	gap: 10px;
	margin-bottom: 10px;
}

.evx-ticket-occurrence-picker__popover .evx-occurrence-calendar__title {
	font-size: 12px;
}

.evx-ticket-occurrence-picker__popover .evx-occurrence-calendar__description {
	font-size: 12px;
	color: var(--evx-text-muted);
}

.evx-ticket-occurrence-picker__popover .evx-occurrence-calendar__table {
	min-width: 0;
	border-spacing: 3px;
}

.evx-ticket-occurrence-picker--open .evx-ticket-occurrence-picker__icon {
	transform: rotate(-8deg);
}

.evx-ticket-occurrence-picker__icon {
	transition: transform 160ms ease;
}


.evx-ticket-occurrence-picker__popover {
	isolation: isolate;
}

button[type=button].evx-ticket-occurrence-picker__close {
    position: absolute;
    right: 0px;
	top: 0px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding-bottom: 5px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--evx-primary);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
	box-shadow: none;
}

.evx-ticket-occurrence-picker__close:hover,
.evx-ticket-occurrence-picker__close:focus-visible {
	border-color: #2563eb;
	background: #eff6ff;
	color: #1d4ed8;
	outline: none;
}

.evx-ticket-occurrence-picker__popover .evx-occurrence-calendar__heading > div:first-child {
	padding-right: 10px;
}

.evx-ticket-occurrence-picker__popover .evx-occurrence-calendar__viewport {
	overscroll-behavior: contain;
}

@media (max-width: 768px) {
	.evx-ticket-occurrence-picker__popover {
		max-width: 430px;
		margin-inline: auto;
		border-radius: 14px;
	}

	.evx-ticket-occurrence-picker__popover .evx-occurrence-calendar {
		max-height: calc(100vh - 32px);
		overflow-y: auto;
	}
	
	body.evx-ticket-occurrence-picker-is-open {
		overflow: hidden;
	}

	.evx-ticket-occurrence-picker--open::before {
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(15, 23, 42, 0.48);
		content: "";
	}

	.evx-ticket-occurrence-picker__popover {
		z-index: 1000;
	}
	.evx-ticket-occurrence-picker__popover {
		position: fixed;
		top: 30%;
		left: 16px;
		right: 16px;
		width: auto;
		max-height: calc(100vh - 32px);
		transform: translateY(-50%);
		overflow-y: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.evx-ticket-occurrence-picker__icon {
		transition: none;
	}
	.evx-ticket-occurrence-picker__toggle {
		transition: none;
	}
}
