.invitation-lookup-form button,
.invitation-rsvp-toggle,
.invitation-rsvp-form button {
	appearance: none;
	background-color: var(--wp--preset--color--contrast);
	border: none;
	border-radius: var(--wp--custom--button--border-radius, 999px);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	gap: 0.5rem;
	line-height: 1.2;
	padding: calc(var(--wp--preset--spacing--30) * 0.6) var(--wp--preset--spacing--40);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.invitation-lookup-form button:hover,
.invitation-lookup-form button:focus-visible,
.invitation-rsvp-toggle:hover,
.invitation-rsvp-toggle:focus-visible,
.invitation-rsvp-form button:hover,
.invitation-rsvp-form button:focus-visible {
	background-color: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

.invitation-rsvp-toggle[hidden] {
	display: none !important;
}

.invitation-lookup-form input[type="email"],
.invitation-rsvp-form input[type="text"],
.invitation-rsvp-form input[type="number"],
.invitation-rsvp-form textarea {
	appearance: none;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--button--border-radius, 999px);
	color: var(--wp--preset--color--contrast) !important;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.2;
	padding: calc(var(--wp--preset--spacing--30) * 0.6) var(--wp--preset--spacing--40);
	background-color: rgba(255, 255, 255, 0.7);
	box-sizing: border-box;
	width: 100%;
	margin-bottom: var(--wp--preset--spacing--20);
}

.invitation-rsvp-form textarea {
	border-radius: 1.25rem;
	min-height: 6rem;
}

.invitation-lookup-form input[type="email"]:focus,
.invitation-rsvp-form input[type="text"]:focus,
.invitation-rsvp-form input[type="number"]:focus,
.invitation-rsvp-form textarea:focus {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--contrast) 35%, transparent);
	border-color: var(--wp--preset--color--contrast);
}

.invitation-rsvp-summary ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	list-style: none;
	padding-left: 0;
	margin: 0;
	@media (min-width: 900px) {
		li {
			flex: 1 1 0;
			min-width: 240px;
		}
	}
}



.invitation-event-link {
	margin-bottom: var(--wp--preset--spacing--40);
    margin-top: var(--wp--preset--spacing--20);
}

.invitation-event-link button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	gap: 0.5rem;
	line-height: 1.2;
	padding: calc(var(--wp--preset--spacing--30) * 0.6) var(--wp--preset--spacing--40);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	border-radius: var(--wp--custom--button--border-radius, 999px);
	background-color: var(--wp--preset--color--base);
	border: 2px solid var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

.invitation-event-link button:hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.invitation-rsvp-details {
	margin-top: var(--wp--preset--spacing--20);
}

.invitation-archive-table th {
	position: relative;
	padding-right: 20px;
}
.invitation-archive-table th::after {
	content: '↕';
	position: absolute;
	right: 5px;
	opacity: 0.3;
	font-size: 12px;
	top: 10px;
}
.invitation-archive-table th.sort-asc::after {
	content: '↑';
	opacity: 1;
}
.invitation-archive-table th.sort-desc::after {
	content: '↓';
	opacity: 1;
}
.invitation-archive-table th {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.post-type-archive-event,
.post-type-archive-invitation {
	thead {
		background-color: #e3e3e3;
		position: sticky;
		top: 32px;
	}
	th,
	td {
		font-size: 1rem;
		padding: 4px 10px;
		vertical-align: top !important;
		white-space: normal !important;
	}
}



h3.event-title {
	font-weight: 600;
	margin-bottom: 12px;
}
p.event-excerpt {
	font-size: 1.1rem;
	max-width: 500px;
}

.invitation-rsvp-details {
	h4 {
		font-weight: 600;
	}
	p {
		margin: 0;
		font-size: 1.1rem;
	}
}

.event-modal-open {
	overflow: hidden;
}

.event-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.event-modal[hidden] {
	display: none;
}

.event-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.event-modal__content {
	position: relative;
	background: #fff;
	max-width: 900px;
	width: min(900px, 100%);
	max-height: 85vh;
	overflow: auto;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.event-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: none;
	background: #fff;
	border-radius: 999px;
	width: 40px;
	height: 40px;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-modal__hero {
	width: 100%;
}

.event-modal__image {
	width: 100%;
	height: auto;
	display: block;
}

.event-modal__body {
	font-size: 1.2rem;
	padding: 2rem;
}

.event-modal__title {
	margin-top: 0;
}

.event-modal__time {
	margin-bottom: 1.5rem;
	font-weight: 600;
}

.event-modal__location {
	font-size: 1.1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	h3 {
		font-weight: 600;
	}
	h4 {
		font-weight: 400;
	}
}

.event-modal__location-note {
	font-size: 1rem;
    max-width: 75%;
    width: 450px;
}

.single-event  {
	.event-rsvp-preview {
			border: 1px solid #000; 
			border-radius: 10px;
			margin-top: var(--wp--preset--spacing--50);
			padding: var(--wp--preset--spacing--30);
		}
	@media screen and (min-width: 800px) {
		.event-details {
			float: left;
			width: calc(100% - 400px);
		}
		.event-rsvp-preview {
			float: right;
			max-width: 300px;
		}
		.event-date-location {
			clear: both;
			display: flex;
			flex-direction: row;
			gap: var(--wp--preset--spacing--40);

		}
	}
}

.single-invitation,
.single-event {
	.date-time,
	.event-location {
		flex: 1 0 50%;
	}
	dl, p, ul {
		font-size: 1.1rem;
		dt {
			display: inline;
			float: left;
			font-weight: 600;
			margin-right: 20px;
		}
	}
	
}