.form-message {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.35;
	color: #7e7e7e;
	text-align: center;
}

.modal .button,
.modal:has(input:placeholder-shown) .button {
	background: var(--blue) !important;
	color: #fff !important;
	cursor: pointer !important;
	pointer-events: auto !important;
}

.form-message[data-state="error"] {
	color: #db4c40;
}

.form-message[data-state="success"] {
	color: #1e9e62;
}

.modal .button:disabled {
	background: #f8f8f8 !important;
	color: #919191 !important;
	opacity: .75;
	cursor: wait !important;
	pointer-events: none !important;
}

.telegram-login {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: -8px 0;
}

.telegram-login__divider {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	color: #7e7e7e;
	font-size: 13px;
	opacity: .75;
}

.telegram-login__divider::before,
.telegram-login__divider::after {
	content: "";
	height: 1px;
	flex: 1;
	background: #dfdfdf;
}

.telegram-login__widget {
	width: 100%;
	height: 46px;
	display: flex;
	justify-content: center;
	overflow: hidden;
	border-radius: 100px;
	background: #2aabee;
}

.telegram-login__widget iframe {
	width: 100% !important;
	min-width: 100% !important;
	height: 46px !important;
	border-radius: 100px;
}

.yandex-login {
	height: 46px;
	border-radius: 100px;
	background: #fc3f1d;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	transition: opacity .2s, transform .2s;
}

header .profile {
	padding: 0 18px;
}

.social-auth-only #login > .group,
.social-auth-only #login > .register,
.social-auth-only #register {
	display: none;
}

.social-auth-only #login > .group:has(.pp) {
	display: block;
}

.social-auth-only #login .button,
.social-auth-only #login .form-message {
	display: none;
}

.social-auth-only .telegram-login {
	margin: 0;
}

.social-auth-only .telegram-login__divider {
	display: none;
}

@media (hover: hover) {
	.yandex-login:hover {
		opacity: .9;
		transform: translateY(-1px);
	}
}

.payment-status {
	color: #d94f43;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	margin-top: 12px;
	text-align: center;
}

.shop_page .cases .select:disabled {
	cursor: default;
	opacity: .65;
}

.profile_page .info .gallery:has(.gallery-empty) {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.profile_page .info .gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	align-items: stretch;
}

.profile_page .info .gallery .take-photo {
	min-width: 0;
}

.profile_page .info .gallery-item {
	min-width: 0;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	background: #f3f3f3;
}

.profile_page .info .gallery-item img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.gallery-empty {
	grid-column: span 3;
	min-height: 160px;
	border: 1px dashed #d9d9d9;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	color: #7e7e7e;
	line-height: 1.4;
	background: #fbfbfb;
}

.generator-status {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #7e7e7e;
}

.generator-status[data-state="error"] {
	color: #db4c40;
}

.generator-status[data-state="success"] {
	color: #1e9e62;
}

.video-source-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	max-height: 264px;
	overflow: auto;
	padding-right: 2px;
}

.video-source-card {
	aspect-ratio: 1 / 1;
	border: 2px solid transparent;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	transition: border-color .2s, transform .2s;
}

.video-source-card._active {
	border-color: var(--blue);
	transform: scale(.98);
}

.video-source-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.video-source-empty {
	grid-column: 1 / -1;
	min-height: 120px;
	border: 1px dashed #d9d9d9;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
	color: #7e7e7e;
	line-height: 1.35;
	background: #fbfbfb;
}

.main_page .main-content .photo--video {
	background: #111;
}

.main_page .main-content .photo video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.main_page .main-content .photo {
	position: relative;
}

.photo-download {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	min-height: 34px;
	padding: 0 14px;
	border-radius: 100px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(36, 36, 36, .82);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	backdrop-filter: blur(8px);
	transition: background .2s, transform .2s;
}

@media (hover: hover) {
	.photo-download:hover {
		background: var(--blue);
		transform: translateY(-1px);
	}
}

@media (width < 768px) {
	.video-source-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		max-height: 220px;
	}

	.photo-download {
		right: 8px;
		bottom: 8px;
		min-height: 30px;
		padding: 0 10px;
		font-size: 12px;
	}
}
