.weddy-rsvp-placeholder {
	padding: 16px;
	border: 1px dashed #c7c7c7;
	color: #6b6b6b;
	font-size: 13px;
	text-align: center;
}

.weddy-rsvp-trigger {
	background-color: #1B3A2B;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.weddy-rsvp-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.weddy-rsvp-modal.is-open {
	display: flex;
}

.weddy-rsvp-modal * {
	box-sizing: border-box;
}

.weddy-rsvp-modal__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(20, 20, 20, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.weddy-rsvp-modal__box {
	position: relative;
	background-color: #ffffff;
	border-radius: 16px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.weddy-rsvp-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: #f0ede6;
	color: #333;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.weddy-rsvp-modal__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: #1B1B1B;
}

.weddy-rsvp-modal__desc {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.6;
	color: #6B6B6B;
}

.weddy-rsvp-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.weddy-rsvp-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #1B1B1B;
	margin-bottom: 10px;
}

.weddy-rsvp-input,
.weddy-rsvp-textarea {
	width: 100%;
	border: 1px solid #E3DFD6;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
	font-family: inherit;
	color: #1B1B1B;
}

.weddy-rsvp-textarea {
	resize: vertical;
	min-height: 90px;
}

.weddy-rsvp-input:focus,
.weddy-rsvp-textarea:focus {
	outline: none;
	border-color: #1B3A2B;
}

.weddy-rsvp-input:read-only {
	background: #F5F0E6;
	color: #6B5D54;
	cursor: default;
}

.weddy-rsvp-choice {
	--rsvp-accent: #16A34A;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #E3DFD6;
	border-radius: 12px;
	padding: 14px 16px;
	cursor: pointer;
	margin-bottom: 10px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.weddy-rsvp-choice:last-of-type {
	margin-bottom: 0;
}

.weddy-rsvp-choice__icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #F0EDE6;
	color: #8A8A8A;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	flex: 0 0 auto;
}

.weddy-rsvp-choice__label {
	font-size: 15px;
	color: #1B1B1B;
}

.weddy-rsvp-choice.is-selected {
	border-color: var(--rsvp-accent);
	/* Plain fallback first for browsers without color-mix() support
	   (older Safari/Android WebView) — CSS keeps whichever declaration
	   of the same property it last understands, so this line is simply
	   ignored (not used as an override) wherever the one below works. */
	background-color: rgba(0, 0, 0, 0.03);
	background-color: color-mix(in srgb, var(--rsvp-accent) 8%, #ffffff);
}

.weddy-rsvp-choice.is-selected .weddy-rsvp-choice__icon {
	background: var(--rsvp-accent);
	color: #ffffff;
}

.weddy-rsvp-choice.is-selected .weddy-rsvp-choice__label {
	color: var(--rsvp-accent);
	font-weight: 700;
}

.weddy-rsvp-stepper {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

.weddy-rsvp-stepper__btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	/* !important on the colors only (not layout) — themes/Elementor global
	   Kit styles often reset a bare <button> element with their own accent
	   background (confirmed live: the "+" button was rendering pink from
	   somewhere outside this stylesheet even though this rule already set
	   white) at a selector this class alone doesn't reliably out-specify.
	   The widget's own Style controls above still override these via
	   {{WRAPPER}}-scoped inline CSS, which wins over an !important in a
	   plain enqueued stylesheet the same way it already did before. */
	border: 1px solid #E3DFD6 !important;
	background-color: #ffffff !important;
	background-image: none !important;
	color: #1B1B1B !important;
	box-shadow: none !important;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.weddy-rsvp-stepper__value {
	font-size: 16px;
	font-weight: 700;
	min-width: 20px;
	text-align: center;
}

.weddy-rsvp-field--guests {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.weddy-rsvp-field--guests label {
	margin-bottom: 0;
}

.weddy-rsvp-submit {
	background-color: #EFE6D8;
	color: #7A3B2E;
	border: none;
	border-radius: 999px;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.weddy-rsvp-submit:disabled {
	opacity: 0.5;
	cursor: default;
}

.weddy-rsvp-success {
	text-align: center;
	padding: 20px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1B3A2B;
}

@media (max-width: 480px) {
	.weddy-rsvp-modal__box {
		padding: 24px;
	}
}
