.tmzcc,
.tmzcc * {
	box-sizing: border-box;
}

.tmzcc[hidden],
.tmzcc-settings[hidden],
.tmzcc-panel[hidden],
.tmzcc-actions[hidden] {
	display: none !important;
}

.tmzcc {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99998;
	padding: 0.75rem;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: #161616;
	pointer-events: none;
}

.tmzcc-strip {
	width: min(1120px, 100%);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-left: 4px solid #bb1919;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
	padding: 0.75rem 0.85rem;
	pointer-events: auto;
}

.tmzcc-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.tmzcc-title {
	margin: 0 0 0.15rem;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
}

.tmzcc-text {
	margin: 0;
	color: #555;
	font-size: 0.82rem;
	line-height: 1.45;
}

.tmzcc-text a {
	color: #111;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tmzcc-actions,
.tmzcc-panel-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}

.tmzcc-btn {
	min-height: 2.35rem;
	border: 1px solid #1f1f1f;
	border-radius: 0;
	background: #ffffff;
	color: #1f1f1f;
	cursor: pointer;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.65rem 0.85rem;
	white-space: nowrap;
}

.tmzcc-btn:hover,
.tmzcc-btn:focus-visible,
.tmzcc-settings:hover,
.tmzcc-settings:focus-visible {
	outline: 2px solid #bb1919;
	outline-offset: 2px;
}

.tmzcc-btn-primary {
	background: #bb1919;
	border-color: #bb1919;
	color: #ffffff;
}

.tmzcc-btn-secondary {
	background: #111111;
	border-color: #111111;
	color: #ffffff;
}

.tmzcc-btn-plain {
	border-color: transparent;
	background: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tmzcc-panel {
	flex: 0 0 100%;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	margin-top: 0.75rem;
	padding-top: 0.75rem;
}

.tmzcc-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
	margin-bottom: 0.75rem;
}

.tmzcc-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.14);
	background: #f8f8f8;
	padding: 0.75rem;
}

.tmzcc-option strong {
	display: block;
	margin-bottom: 0.15rem;
	font-size: 0.84rem;
	line-height: 1.25;
}

.tmzcc-option small {
	display: block;
	color: #626262;
	font-size: 0.76rem;
	line-height: 1.35;
}

.tmzcc-option input {
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
	accent-color: #bb1919;
}

.tmzcc-settings {
	position: fixed;
	right: 0.85rem;
	bottom: 0.85rem;
	z-index: 99997;
	border: 1px solid rgba(0, 0, 0, 0.18);
	background: #ffffff;
	color: #1f1f1f;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
	cursor: pointer;
	font: 700 0.78rem Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	padding: 0.55rem 0.75rem;
}

@media (max-width: 820px) {
	.tmzcc {
		padding: 0.55rem;
	}

	.tmzcc-strip {
		align-items: stretch;
		flex-direction: column;
		gap: 0.75rem;
		padding: 0.75rem;
	}

	.tmzcc-actions,
	.tmzcc-panel-actions {
		flex-wrap: wrap;
		width: 100%;
	}

	.tmzcc-btn {
		flex: 1 1 8rem;
		white-space: normal;
	}

	.tmzcc-options {
		grid-template-columns: 1fr;
	}
}
