.alignwide .wp-block-shortcode {
	width: 100%;
	max-width: 100%;
}

.wgrsvp-frontend {
	display: grid;
	gap: 1.5rem;
	margin: 24px auto;
	max-width: 100%;
	width: 100%;
}

.wgrsvp-card {
	color: #000;
	padding: 0;
	width: 100%;
}

.wgrsvp-rsvp-form,
.wgrsvp-guest-list {
	width: 100%;
}

.wp-block-group.alignwide .wgrsvp-frontend,
.wp-block-group.alignwide .wgrsvp-card,
.wp-block-group.alignwide .wgrsvp-rsvp-form,
.wp-block-group.alignwide .wgrsvp-guest-list {
	max-width: 100%;
	width: 100%;
}

.wgrsvp-card h2,
.wgrsvp-card h3 {
	margin: 0 0 10px;
}

.wgrsvp-guest-field input[type="email"],
.wgrsvp-dietary-textarea-wrap textarea {
	background: #fff;
	border: 1px solid #000;
	box-sizing: border-box;
	color: #000;
	max-width: 450px;
	width: 100%;
}

.wgrsvp-lookup-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wgrsvp-lookup-form input,
.wgrsvp-lookup-form button,
.wgrsvp-submit {
	background: #fff;
	border: 1px solid #000;
	box-sizing: border-box;
	border-radius: 0;
	box-shadow: none;
	color: #000;
}

.wgrsvp-lookup-form input {
	flex: 1 1 260px;
}

.wgrsvp-lookup-form button,
.wgrsvp-submit {
	cursor: pointer;
	padding: 0.75rem 1rem;
}

.wgrsvp-notice {
	background: #fff;
	border: 1px solid #000;
	margin-top: 16px;
	padding: 0.75rem 1rem;
}

.wgrsvp-notice--success {
	border-left-width: 4px;
}

.wgrsvp-notice--error {
	border-left-width: 4px;
}

.wgrsvp-card__header {
	margin-bottom: 1rem;
}

.wgrsvp-guest-list {
	display: grid;
	gap: 12px;
}

.wgrsvp-guest-row {
	align-items: start;
	border-top: 1px solid #000;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 0.75rem 0;
}

.wgrsvp-guest-row__meta {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.wgrsvp-guest-row__meta strong {
	display: block;
	margin-top: 15px;
}

.wgrsvp-guest-field {
	display: grid;
	gap: 6px;
	margin-top: 12px;
}

.wgrsvp-guest-field label {
	font-size: 14px;
	font-weight: 600;
}

.wgrsvp-guest-field input[type="email"] {
	padding: 10px 12px;
}

.wgrsvp-dietary-toggle-input {
	height: 1px;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	width: 1px;
}

.wgrsvp-dietary-toggle-label {
	background: #fff;
	border: 1px solid #000;
	box-sizing: border-box;
	color: #000;
	cursor: pointer;
	display: inline-flex;
	font-size: 16px;
	font-weight: 600;
	justify-content: center;
	padding: 12px 15px;
	width: fit-content;
}

.wgrsvp-dietary-toggle-input:checked + .wgrsvp-dietary-toggle-label {
	background: #000;
	color: #fff;
}

.wgrsvp-dietary-toggle-input:focus-visible + .wgrsvp-dietary-toggle-label {
	outline: 1px solid #000;
	outline-offset: 2px;
}

.wgrsvp-dietary-textarea-wrap {
	display: none;
	margin-top: 10px;
}

.wgrsvp-dietary-toggle-input:checked + .wgrsvp-dietary-toggle-label + .wgrsvp-dietary-textarea-wrap {
	display: block;
}

.wgrsvp-dietary-textarea-wrap textarea {
	min-height: 110px;
	padding: 10px 12px;
	resize: vertical;
}

.wgrsvp-choice-group {
	align-self: start;
	background: #fff;
	border: 1px solid #000;
	border-radius: 16px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	justify-self: start;
	max-width: 380px !important;
	min-width: 0;
	overflow: hidden;
	width: min(100%, 380px) !important;
}

.wgrsvp-choice-input {
	height: 1px;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	width: 1px;
}

.wgrsvp-choice-group .wgrsvp-choice-label {
	background: #fff;
	box-sizing: border-box;
	color: #000;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px !important;
	font-weight: 600;
	line-height: 1.2;
	min-height: 0;
	padding: 15px !important;
	white-space: nowrap !important;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wgrsvp-choice-label--first {
	border-right: 1px solid #000;
}

.wgrsvp-choice-input:checked + .wgrsvp-choice-label {
	color: #000;
}

.wgrsvp-choice-input:checked + .wgrsvp-choice-label--accepted {
	background: #aeb492;
}

.wgrsvp-choice-input:checked + .wgrsvp-choice-label--declined {
	background: #b49a92;
}

.wgrsvp-choice-input:focus-visible + .wgrsvp-choice-label {
	outline: 1px solid #000;
	outline-offset: 2px;
}

.wgrsvp-submit {
	display: block;
	margin-top: 18px;
	margin-left: auto;
	margin-right: 0;
	width: auto;
}

@media (max-width: 640px) {
	.wgrsvp-lookup-form {
		display: grid;
	}

	.wgrsvp-guest-row {
		grid-template-columns: 1fr;
	}

	.wgrsvp-choice-group {
		justify-self: stretch;
		max-width: 100% !important;
		width: 100% !important;
	}

	.wgrsvp-lookup-form input,
	.wgrsvp-lookup-form button,
	.wgrsvp-submit {
		width: 100%;
	}

}
