/* TruAnon owner panel — self-contained overlay, no framework. */

/* The owner's hero card on profile screens. */
.truanon-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 10px;
	padding: 16px 20px;
	margin: 18px 0;
	max-width: 52em;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.truanon-hero-text {
	flex: 1 1 20em;
}

.truanon-hero-text h3 {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.3;
}

.truanon-hero-text p {
	margin: 0;
	opacity: 0.8;
}

/* Minimal button dressing so the hero also reads right on the front end,
   where wp-admin's .button styles don't exist. */
.truanon-hero .truanon-manage {
	cursor: pointer;
	white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
	.truanon-hero {
		background: #1d2327;
		border-color: #3c434a;
		color: #e2e4e7;
	}
}

.truanon-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(10, 12, 16, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.truanon-box {
	background: #fff;
	color: #1e1e1e;
	border-radius: 12px;
	width: 480px;
	max-width: 100%;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.truanon-box-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(128, 134, 143, 0.25);
}

.truanon-box-head h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.truanon-box-close {
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	padding: 4px 8px;
	color: inherit;
	opacity: 0.65;
}

.truanon-box-close:hover {
	opacity: 1;
}

.truanon-box-body {
	padding: 18px;
	overflow-y: auto;
}

.truanon-box-body p {
	margin: 0 0 1em;
}

/* Verify iframe fills the box. */
.truanon-box.truanon-box-iframe .truanon-box-body {
	padding: 0;
	height: min(840px, 80vh);
}

.truanon-box iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Pitch state. */
.truanon-pitch h4 {
	margin: 0 0 0.5em;
}

.truanon-verify-btn {
	display: block;
	width: 100%;
	padding: 12px;
	margin: 14px 0 10px;
	border: 0;
	border-radius: 999px;
	background: var(--truanon-reliable);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.truanon-verify-btn:hover {
	filter: brightness(1.08);
}

/* Switches state. */
.truanon-switch-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(128, 134, 143, 0.18);
}

.truanon-switch-row:last-of-type {
	border-bottom: 0;
}

.truanon-switch-row input[type="checkbox"] {
	margin-top: 3px;
}

.truanon-switch-row small {
	display: block;
	opacity: 0.7;
}

.truanon-panel-badge {
	margin-bottom: 14px;
}

.truanon-panel-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
}

.truanon-save-btn {
	padding: 8px 20px;
	border: 0;
	border-radius: 999px;
	background: #2f6ef2;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.truanon-status {
	font-size: 13px;
	opacity: 0.75;
}

.truanon-error {
	color: #b32d2e;
}

@media (prefers-color-scheme: dark) {
	.truanon-box {
		background: #1d2327;
		color: #e2e4e7;
	}
}
