/* ==========================================================================
   DNA Molecular Weight — Tool-specific styles
   Shared Benchling-style framework: tools/common/tbb-sequence-tools.css
   ========================================================================== */

/* ── Textarea ─────────────────────────────────────────────────────────────── */
.tbb-dna-mw .tbb-seq-textarea {
	min-height: 140px;
}

/* ── Options row ──────────────────────────────────────────────────────────── */
.tbb-dna-mw-options {
	display:     flex;
	align-items: center;
	gap:         20px;
	margin-top:  14px;
	flex-wrap:   wrap;
}

.tbb-dna-mw-option-group {
	display:     flex;
	align-items: center;
	gap:         8px;
}

.tbb-dna-mw-option-label {
	font-size:   13px;
	font-weight: 600;
	color:       var(--tbb-seq-text);
	white-space: nowrap;
}

.tbb-dna-mw-select {
	padding:       6px 28px 6px 10px;
	font-size:     13px;
	font-family:   inherit;
	color:         var(--tbb-seq-text);
	background:    var(--tbb-seq-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236e7781'/%3E%3C/svg%3E") no-repeat right 10px center;
	background-size: 10px 6px;
	border:        1px solid var(--tbb-seq-border);
	border-radius: var(--tbb-seq-radius-sm);
	appearance:    none;
	-webkit-appearance: none;
	cursor:        pointer;
	transition:    border-color 120ms ease, box-shadow 120ms ease;
}

.tbb-dna-mw-select:focus {
	outline:      none;
	border-color: var(--tbb-seq-primary);
	box-shadow:   0 0 0 3px var(--tbb-seq-primary-light);
}

/* ── Output pre ───────────────────────────────────────────────────────────── */
@media ( min-width: 900px ) {
	.tbb-dna-mw .tbb-seq-output-pre {
		max-height: 440px;
	}
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
	.tbb-dna-mw-options       { flex-direction: column; align-items: flex-start; gap: 10px; }
	.tbb-dna-mw-select        { min-width: 120px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.tbb-dna-mw-select { transition: none; }
}
