/* Agnosis Follow Overlay block — frontend styles.
 *
 * Self-contained, same principle as blocks/reply-overlay/frontend.css: any
 * theme dropping in agnosis/follow-overlay gets full styling for free, no
 * cross-block CSS dependency on reply-overlay's own stylesheet even though
 * the shared `.lf-icon-btn`/`.lf-popover-close` classes are intentionally
 * reused by name for a consistent icon-button language across the site.
 */

.agnosis-follow-overlay__trigger {
	display: inline-block;
	background: transparent;
	border: 1px solid var(--wp--preset--color--tertiary, currentColor);
	border-radius: 999px;
	padding: 0.4em 1em;
	font: inherit;
	font-size: 0.9em;
	color: var(--wp--preset--color--foreground, currentColor);
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.agnosis-follow-overlay__trigger:hover {
	opacity: 1;
	border-color: var(--wp--preset--color--foreground, currentColor);
}

/* Shared icon-button treatment for the panel's close button — same shape as
 * blocks/reply-overlay/frontend.css's own .lf-icon-btn, duplicated rather
 * than imported (see file docblock above). */
.lf-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--tertiary, currentColor);
	background: transparent;
	color: var(--wp--preset--color--foreground, currentColor);
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.lf-icon-btn:hover {
	opacity: 1;
	border-color: var(--wp--preset--color--foreground, currentColor);
}

/* Popover panel — native Popover API (popover="auto" written directly in the
 * block's own markup), no JavaScript needed for open/close/backdrop/escape. */
.agnosis-follow-overlay__panel {
	position: fixed;
	inset: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	overflow-y: auto;
	border: none;
	background: var(--wp--preset--color--background, #fff);
	color: var(--wp--preset--color--foreground, #111);
}

.agnosis-follow-overlay__inner {
	max-width: 32rem;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--60, 3rem) var(--wp--preset--spacing--50, 2rem);
}

.lf-popover-close {
	position: fixed;
	top: var(--wp--preset--spacing--40, 1.5rem);
	right: var(--wp--preset--spacing--40, 1.5rem);
}

.agnosis-follow-overlay__intro {
	line-height: 1.6;
	opacity: 0.85;
	margin: 0 0 1.5em;
}

.agnosis-follow-overlay__handle-label {
	margin: 0 0 0.5em;
	font-weight: 700;
}

.agnosis-follow-overlay__handle-row {
	display: flex;
	gap: 0.5em;
	align-items: center;
	margin: 0 0 0.5em;
}

.agnosis-follow-overlay__handle {
	flex: 1;
	padding: 0.6em 0.75em;
	border: 1px solid var(--wp--preset--color--tertiary, currentColor);
	border-radius: 4px;
	font-size: 0.95em;
	overflow-wrap: anywhere;
}

.agnosis-follow-overlay__copy {
	background: transparent;
	border: 1px solid var(--wp--preset--color--tertiary, currentColor);
	border-radius: 4px;
	padding: 0.6em 1em;
	font: inherit;
	font-size: 0.85em;
	color: inherit;
	cursor: pointer;
	opacity: 0.8;
	white-space: nowrap;
}

.agnosis-follow-overlay__copy:hover {
	opacity: 1;
}

.agnosis-follow-overlay__hint {
	font-size: 0.8em;
	opacity: 0.6;
	margin: 0 0 2em;
}

.agnosis-follow-overlay__form {
	padding-top: 1.5em;
	border-top: 1px solid var(--wp--preset--color--tertiary, #e0e0e0);
}

.agnosis-follow-overlay__form-label {
	display: block;
	margin: 0 0 0.75em;
	font-size: 0.9em;
}

.agnosis-follow-overlay__form-row {
	display: flex;
	gap: 0.75em;
}

.agnosis-follow-overlay__form-row input {
	flex: 1;
	box-sizing: border-box;
	padding: 0.75em;
	font: inherit;
	font-size: 1em;
	color: inherit;
	background: transparent;
	border: 1px solid var(--wp--preset--color--tertiary, currentColor);
	border-radius: 4px;
}

.agnosis-follow-overlay__form-submit {
	display: inline-block;
	background: var(--wp--preset--color--foreground, #111);
	color: var(--wp--preset--color--background, #fff);
	border: 0;
	border-radius: 999px;
	padding: 0.6em 1.5em;
	font: inherit;
	font-size: 0.95em;
	cursor: pointer;
	opacity: 0.9;
	white-space: nowrap;
}

.agnosis-follow-overlay__form-submit:hover {
	opacity: 1;
}

.agnosis-follow-overlay__form-status {
	margin: 0.75em 0 0;
	font-size: 0.85em;
	opacity: 0.8;
}
