/* TCMO Bug Report. Prefix tcmo-br- keeps these rules away from the theme and Materialize. */

.tcmo-br-tab {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9000;
	min-width: 44px;
	min-height: 44px;
	padding: 14px 10px;
	border: 0;
	border-radius: 8px 0 0 8px;
	background: #2d3e50;
	color: #fff;
	font: 600 14px/1.2 Inter, system-ui, sans-serif;
	letter-spacing: 0.02em;
	writing-mode: vertical-rl;
	cursor: pointer;
	box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.18);
}

.tcmo-br-tab:hover,
.tcmo-br-tab:focus-visible {
	background: #1d2a38;
}

.tcmo-br-tab:focus-visible,
.tcmo-br-close:focus-visible,
.tcmo-br-panel input:focus-visible,
.tcmo-br-panel textarea:focus-visible,
.tcmo-br-panel select:focus-visible,
.tcmo-br-submit:focus-visible {
	outline: 3px solid #f5b841;
	outline-offset: 2px;
}

.tcmo-br-panel {
	position: fixed;
	right: 44px;
	top: 12vh;
	z-index: 9001;
	width: min(380px, calc(100vw - 60px));
	max-height: 76vh;
	overflow-y: auto;
	padding: 18px 20px 20px;
	background: #fff;
	color: #1f2937;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
	font: 400 15px/1.45 Inter, system-ui, sans-serif;
}

.tcmo-br-panel[hidden] {
	display: none;
}

.tcmo-br-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tcmo-br-title {
	margin: 0;
	font: 700 18px/1.3 Inter, system-ui, sans-serif;
}

.tcmo-br-close {
	min-width: 44px;
	min-height: 44px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #374151;
	cursor: pointer;
}

.tcmo-br-intro {
	margin: 4px 0 14px;
	color: #4b5563;
	font-size: 14px;
}

.tcmo-br-field {
	margin-bottom: 12px;
}

.tcmo-br-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 14px;
}

.tcmo-br-panel input,
.tcmo-br-panel textarea,
.tcmo-br-panel select {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #9ca3af;
	border-radius: 6px;
	/* 16px stops iOS zooming into the field. */
	font: 400 16px/1.4 Inter, system-ui, sans-serif;
	color: #111827;
	background: #fff;
}

.tcmo-br-panel textarea {
	resize: vertical;
}

.tcmo-br-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.tcmo-br-turnstile:empty {
	display: none;
}

.tcmo-br-actions {
	margin-top: 4px;
}

.tcmo-br-submit {
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	background: #2d3e50;
	color: #fff;
	font: 600 15px/1 Inter, system-ui, sans-serif;
	cursor: pointer;
}

.tcmo-br-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.tcmo-br-status {
	min-height: 1.4em;
	margin: 10px 0 0;
	font-size: 14px;
	color: #1f2937;
}

@media print {
	.tcmo-br-tab,
	.tcmo-br-panel {
		display: none !important;
	}
}
