.esmira-tgl-login-widget {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ts-form .ts-btn.ts-btn-1.esmira-tgl-login-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #2aabee !important;
	background-color: #2aabee !important;
	border-color: #2aabee !important;
	color: #fff !important;
	font-weight: 400 !important;
	box-shadow: none;
}

.ts-form .ts-btn.ts-btn-1.esmira-tgl-login-btn:hover,
.ts-form .ts-btn.ts-btn-1.esmira-tgl-login-btn:focus {
	background: #229ed9 !important;
	background-color: #229ed9 !important;
	border-color: #229ed9 !important;
	color: #fff !important;
}

.ts-form .ts-btn.ts-btn-1.esmira-tgl-login-btn span {
	font-weight: 400 !important;
}

.esmira-tgl-login-btn .ts-icon-svg,
.esmira-tgl-login-btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #fff;
	fill: currentColor;
}

.esmira-tgl-login-btn svg path {
	fill: currentColor;
}

.esmira-tgl-modal .tos-group {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.esmira-tgl-modal .tos-group .field-info {
	margin: 0;
}

.esmira-tgl-modal .tos-group .field-info a {
	text-decoration: underline;
}

body.esmira-tgl-modal-open {
	overflow: hidden;
}

.esmira-tgl-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.55);
}

.esmira-tgl-modal-overlay .esmira-tgl-modal {
	width: min(100%, 440px);
}

.esmira-tgl-modal-overlay .ts-field-popup-container {
	margin: 0;
	width: 100%;
}

.esmira-tgl-modal-overlay .ts-field-popup {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 2rem);
}

.esmira-tgl-modal-overlay .ts-popup-content-wrapper {
	padding: 24px;
	overflow: auto;
}

.esmira-tgl-modal-overlay .ts-popup-head {
	flex-shrink: 0;
}

.esmira-tgl-modal-overlay .ts-popup-head .ts-icon-btn svg {
	width: var(--ts-icon-size, 20px);
	height: var(--ts-icon-size, 20px);
}

.esmira-tgl-modal-status {
	margin-top: 0.5rem;
	font-size: 0.92em;
}

.esmira-tgl-modal-status.is-error {
	color: var(--ts-error, #b42318);
}

.esmira-tgl-open-telegram {
	display: inline-flex;
	text-decoration: none;
}

.esmira-tgl-share-fallback {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	text-align: center;
}

.esmira-tgl-share-fallback[hidden] {
	display: none !important;
}

.esmira-tgl-share-fallback p {
	margin: 0;
	max-width: 28rem;
}
