.tps-sbc {
	--tps-sbc-ink: #111111;
	--tps-sbc-paper: #ffffff;
	--tps-sbc-red: #e10600;
	--tps-sbc-muted: #f4f4f4;
	--tps-sbc-shadow: rgba(0, 0, 0, 0.14);
	--tps-sbc-speed: 180ms;

	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 999998;
	display: inline-flex;
	align-items: center;
	font-family: "Arial Narrow", "Roboto Condensed", Impact, Arial, sans-serif;
}

.tps-sbc * {
	box-sizing: border-box;
}

.tps-sbc-trigger {
	position: relative;
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--tps-sbc-ink);
	border-radius: 0;
	background: var(--tps-sbc-paper);
	color: var(--tps-sbc-ink);
	cursor: pointer;
	transform: skew(-6deg);
	box-shadow: 4px 4px 0 var(--tps-sbc-ink);
	transition: background var(--tps-sbc-speed) ease, color var(--tps-sbc-speed) ease,
		box-shadow var(--tps-sbc-speed) ease, transform var(--tps-sbc-speed) ease;
}

.tps-sbc-trigger:hover,
.tps-sbc-trigger:focus {
	background: var(--tps-sbc-red);
	color: var(--tps-sbc-paper);
	box-shadow: 6px 6px 0 var(--tps-sbc-ink);
	transform: translate(-2px, -2px) skew(-6deg);
	outline: 0;
}

.tps-sbc-trigger:focus-visible {
	outline: 3px solid rgba(17, 17, 17, 0.28);
	outline-offset: 3px;
}

.tps-sbc-trigger__icon {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
	pointer-events: none;
	transform: skew(6deg);
}

.tps-sbc-modal[hidden] {
	display: none;
}

.tps-sbc-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tps-sbc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}

.tps-sbc-modal__panel {
	position: relative;
	width: min(640px, 100%);
	border: 2px solid var(--tps-sbc-ink);
	border-radius: 0;
	background: var(--tps-sbc-paper);
	color: var(--tps-sbc-ink);
	padding: 26px;
	box-shadow: 8px 8px 0 var(--tps-sbc-ink), 0 18px 48px rgba(0, 0, 0, 0.24);
}

.tps-sbc-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border: 2px solid transparent;
	border-radius: 0;
	background: var(--tps-sbc-paper);
	color: var(--tps-sbc-ink);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background var(--tps-sbc-speed) ease, border-color var(--tps-sbc-speed) ease,
		color var(--tps-sbc-speed) ease;
}

.tps-sbc-modal__close:hover,
.tps-sbc-modal__close:focus-visible {
	border-color: var(--tps-sbc-ink);
	background: var(--tps-sbc-red);
	color: var(--tps-sbc-paper);
	outline: 0;
}

.tps-sbc-modal__title {
	margin: 0 44px 18px 0;
	color: var(--tps-sbc-ink);
	font-size: 20px;
	line-height: 1.25;
	font-style: italic;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.tps-sbc-form {
	display: flex;
	width: 100%;
	gap: 8px;
	align-items: stretch;
}

.tps-sbc-form__input {
	width: 100%;
	min-width: 0;
	height: 48px;
	border: 2px solid var(--tps-sbc-ink);
	border-radius: 0;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	background: var(--tps-sbc-paper);
	color: var(--tps-sbc-ink);
	box-shadow: 4px 4px 0 var(--tps-sbc-ink);
}

.tps-sbc-form__button {
	position: relative;
	flex: 0 0 auto;
	min-width: 96px;
	height: 48px;
	border: 2px solid var(--tps-sbc-ink);
	border-radius: 0;
	padding: 0 18px;
	font: inherit;
	font-size: 15px;
	font-style: italic;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	background: var(--tps-sbc-paper);
	color: var(--tps-sbc-ink);
	transform: skew(-6deg);
	box-shadow: 4px 4px 0 var(--tps-sbc-ink);
	transition: background var(--tps-sbc-speed) ease, color var(--tps-sbc-speed) ease,
		box-shadow var(--tps-sbc-speed) ease, transform var(--tps-sbc-speed) ease;
}

.tps-sbc-form__button:hover,
.tps-sbc-form__button:focus {
	background: var(--tps-sbc-red);
	color: var(--tps-sbc-paper);
	box-shadow: 6px 6px 0 var(--tps-sbc-ink);
	transform: translate(-2px, -2px) skew(-6deg);
	outline: 0;
}

.tps-sbc-form__input:focus {
	outline: 3px solid rgba(17, 17, 17, 0.28);
	outline-offset: 3px;
}

body.tps-sbc-modal-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.tps-sbc {
		top: 12px;
		right: 10px;
	}

	.tps-sbc-modal {
		align-items: flex-start;
		padding: 72px 14px 14px;
	}

	.tps-sbc-modal__panel {
		padding: 22px 16px 16px;
		box-shadow: 4px 4px 0 var(--tps-sbc-ink);
	}

	.tps-sbc-form {
		flex-direction: column;
	}

	.tps-sbc-trigger {
		width: 36px;
		height: 36px;
		border-width: 1px;
		background: var(--tps-sbc-paper) !important;
		color: var(--tps-sbc-ink) !important;
		box-shadow: 3px 3px 0 var(--tps-sbc-ink);
	}

	.tps-sbc-trigger:hover,
	.tps-sbc-trigger:focus {
		background: var(--tps-sbc-red) !important;
		color: var(--tps-sbc-paper) !important;
	}

	.tps-sbc-form__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tps-sbc-trigger,
	.tps-sbc-modal__close,
	.tps-sbc-form__button {
		transition: none;
	}
}
