/* IDO Tools & Assets — plain-text copy block. Loaded only where the block is rendered. */

.ido-ta-copy {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fafafb;
	color: #1f2430;
	overflow: hidden;
}

.ido-ta-copy *,
.ido-ta-copy *::before,
.ido-ta-copy *::after {
	box-sizing: border-box;
}

.ido-ta-copy__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
}

.ido-ta-copy__button {
	flex: 0 0 auto;
	min-height: 44px; /* touch target */
	padding: 8px 16px;
	border: 1px solid #1f2430;
	border-radius: 999px;
	background: #1f2430;
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.ido-ta-copy__button:hover {
	background: #33394a;
}

.ido-ta-copy__button:focus-visible {
	outline: 3px solid #7c62ff;
	outline-offset: 2px;
}

.ido-ta-copy__status {
	flex: 1 1 160px;
	min-width: 0;
	font-size: 0.875rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ido-ta-copy[data-state="success"] .ido-ta-copy__status {
	color: #0b6b3a;
}

.ido-ta-copy[data-state="error"] .ido-ta-copy__status {
	color: #a4161a;
}

/* Human-readable text, not code: proportional-friendly wrapping, never a horizontal scrollbar. */
.ido-ta-copy__text {
	margin: 0;
	padding: 16px;
	max-height: 70vh;
	overflow-x: hidden;
	overflow-y: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.55;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: normal;
	tab-size: 4;
}

.ido-ta-copy__text:focus-visible {
	outline: 3px solid #7c62ff;
	outline-offset: -3px;
}
