/* For chat */
.chat_message_form__body {
    display: flex;
    justify-content: end;
    gap: 8px;
}

.chat_message_form__tools {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 17px 8px 0 0;
}

.chat_message_form__tool {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    text-decoration: none;
    border-radius: 0%;
    overflow: hidden;
    transition: all .3s ease;
}

.chat_message_form__tool:hover {
    opacity: 0.5;
}

.chat_message_form__tool img {
    max-width: 30px;
    height: auto;
    display: block;
}

/** Сделал с !important, т.к. приоритет у style.css выше */
.chat_message_form__textarea {
    margin: 7px 0 0 0 !important;
    width: 100% !important;
}

/* For https://xn--80anehalek.xn--p1ai/lk/user?id=40&param=1#users */
.user_main_actions_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 16px;
}

.user_main_actions_grid .btn.primary-btn {
    font-size: 14px;
    padding: 6px 10px;
}

/* For search.php */
.search_form {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.search_form_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.search_form_field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search_form_label {
    font-size: 13px;
    color: #444;
}

.search_form_control .profile_select, .search_form_control .btn {
    width: 100%;
}

.search_form_control .btn.primary-btn {
    font-size: 18px;
}

.search_form_field__submit {
    width: 100%;
    justify-content: end;
    margin-bottom: 3px;
}

.search_form_field__submit .btn.primary-btn {
    width: 100%;
}

.search_layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.search_layout_left {
    flex: 1 1 auto;
}

.search_layout_right {

}

@media (max-width: 767px) {
    .search_layout {
        flex-direction: column;
    }

    .search_layout_right {
        width: 100%;
    }

	.big_bal {
		display:none;
	}
	.big_ball {
		display:none;
	}
	
	.malaya_zel {
	display:none;
}

}

@media (min-width: 768px) {
    .search_form_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

		.pravaya {
	 width: 90%;
	height: 259px;
	border: 0.2px solid #ccc;
	float:left;
	margin-top:22px;
	padding:22px;
	font-size:15px;
	   background-color: rgba(255,255,255,0.45);
	   border-radius: 11px;

	    overflow-y:auto;



}

}

@media (min-width: 1200px) {
    .search_form_grid {
        grid-template-columns: 2fr 120px 80px 80px 1fr 1fr;
    }
    .search_form_field__submit {
        justify-content: center;
        margin: 3px 0 0 0;
    }


}

/* Invisible mode switches (nevidimka.php) */
.invisible_switches {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

.invisible_switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.invisible_switch_control {
    position: relative;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

.invisible_switch_control input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.invisible_switch_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 22px;
}

.invisible_switch_slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
}

.invisible_switch_control input:checked + .invisible_switch_slider {
    background-color: #c30030;
}

.invisible_switch_control input:checked + .invisible_switch_slider::before {
    transform: translateX(20px);
}

.invisible_switch_text {
    line-height: 1.4;
}

.favorite_peoples_item {

	position: relative;
}


.malaya_zel {
	  content: "";
    position: absolute;
    height: 9px;
    width: 9px;
    right: 8px;
    bottom: 8px;
    background-color: #2EE616;
    transition: .3s;
    border-radius: 50%;z-index:20;
	border: 0.2px solid #fff;
}


.big_bal {
	  content: "";
    position: absolute;
    height: 9px;
    width: 9px;
    left: 46%;
    top: 248px;
	 width: 398px;
opacity: 0.33;
    transition: .3s;

	border: 0px solid #666; font-size: 84px;
}

.big_ball {
	  content: "";
    position: absolute;
    height: 9px;
    width: 9px;
    left: 46%;
    top: 358px;
	 width: 398px;
opacity: 0.33;
    transition: .3s;

	border: 0px solid #666; font-size: 74px;
}

.pravaya {
	 width: 45%;
	height: 459px;
	border: 0.2px solid #ccc;
	float:left;
	margin-top:22px;
	padding:22px;
	font-size:13px;
	   background-color: rgba(255,255,255,0.45);
	   border-radius: 11px;

	    overflow-y:auto;



}


@media (max-width: 768px) {


		.pravaya {
	 width: 100%;
	height: 259px;
	border: 0.2px solid #ccc;
	float:left;
	margin-top:12px;
	padding:22px;
	font-size:25px;
	   background-color: rgba(255,255,255,0.95);
	   border-radius: 11px;

	    overflow-y:auto;



}

}
.small__photo{
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "photo1 photo2 photo3"
                         "photo4 photo5 photo6";
}
.small__photo .container{
    display: flex;
    align-items: center;
    justify-content: normal;

}