/**
 * Rymona waitlist — minimal structural styles.
 *
 * Palette tokens come from the theme (site.css); the fallbacks keep the module
 * readable if the plugin is used without it.
 * ink #302922 · rose #ad8b82 · line #e1d9ce · paper #fbf9f5 · dark #342924
 */

.rymona-waitlist {
	margin: 24px 0;
}

.rymona-waitlist-form[hidden] {
	display: none !important;
}

.rymona-waitlist-form {
	margin-top: 16px;
	max-width: 420px;
}

.rymona-waitlist-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.rymona-waitlist-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.rymona-waitlist-email {
	flex: 1 1 200px;
	min-width: 0;
	min-height: 49px;
	padding: 0 14px;
	border: 1px solid var(--line, #e1d9ce);
	border-radius: 0;
	background: var(--white, #fffdfa);
	color: var(--ink, #302922);
	font-size: 13px;
}

.rymona-waitlist-email::placeholder {
	color: var(--muted, #736960);
}

.rymona-waitlist-button,
.rymona-waitlist-submit,
.rymona-waitlist-loop-button,
.rymona-waitlist-empty-cart-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 49px;
	padding: 0 26px;
	border: 1px solid var(--dark, #342924);
	border-radius: 0;
	background: var(--dark, #342924);
	color: var(--white, #fffdfa);
	font-size: 10px;
	letter-spacing: 0.15em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.rymona-waitlist-button:hover,
.rymona-waitlist-submit:hover,
.rymona-waitlist-loop-button:hover,
.rymona-waitlist-empty-cart-button:hover {
	background: #5c483d;
	border-color: #5c483d;
	color: var(--white, #fffdfa);
}

.rymona-waitlist-submit[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
}

.rymona-waitlist-selection:empty,
.rymona-waitlist-message:empty {
	display: none;
}

.rymona-waitlist-selection {
	margin: 0 0 10px;
	color: var(--muted, #736960);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rymona-waitlist-message {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.6;
}

.rymona-waitlist-message.is-error {
	color: #9b2c1e;
}

.rymona-waitlist-message.is-success {
	color: var(--rose, #ad8b82);
}

.rymona-waitlist.is-joined .rymona-waitlist-fields {
	display: none;
}

/* Footer newsletter sign-up. The theme's own .newsletter-row rules carry the
   look; these only cover the plugin's own bits and a standalone fallback. */
.rymona-waitlist-newsletter {
	margin: 0;
}

.rymona-waitlist-newsletter-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rymona-waitlist-newsletter-email {
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 12px;
}

.rymona-waitlist-newsletter-submit {
	padding: 0 5px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 21px;
	line-height: 1;
	cursor: pointer;
}

.rymona-waitlist-newsletter-submit[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
}

.rymona-waitlist-newsletter-note {
	margin: 10px 0 0;
	font-size: 10px;
	line-height: 1.6;
	opacity: 0.75;
}

/* The footer sits on the dark ground, so the inline message needs its own
   colours rather than the ones used on the product page. */
.rymona-waitlist-newsletter-message.is-error {
	color: #e8a79b;
}

.rymona-waitlist-newsletter-message.is-success {
	color: inherit;
}

/* Waitlist products have no price, so hide the empty price area and the
   add-to-cart controls WooCommerce still prints inside the variation form. */
body.rymona-waitlist-single p.price,
body.rymona-waitlist-single .wp-block-woocommerce-product-price,
body.rymona-waitlist-single .woocommerce-variation-price,
body.rymona-waitlist-single form.variations_form .single_variation_wrap,
body.rymona-waitlist-single form.variations_form .woocommerce-variation-add-to-cart,
body.rymona-waitlist-single form.variations_form .quantity {
	display: none !important;
}

/* Empty cart: our shop button replaces WooCommerce's "Return to shop" link. */
.rymona-waitlist-empty-cart {
	margin: 18px 0 0;
}

.rymona-waitlist-empty-cart ~ .return-to-shop {
	display: none;
}
