/* 

Add here your custom css styles Example: p { text-align: center; color: red; } 

*/

/* Profile timeline fixes */
.wo_user_profile .posts_load,
.wo_user_profile .posts_load > #posts,
.wo_user_profile .posts_load .pinned-post-container {
	width: 100%;
}

.wo_user_profile .posts_load > #posts {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.wo_user_profile .posts_load > #posts > .post-container,
.wo_user_profile .posts_load > #posts > .user-ad-container,
.wo_user_profile .posts_load .pinned-post-container > .post-container,
.wo_user_profile .posts_load .pinned-post-container > .user-ad-container {
	display: block;
	width: 100%;
	max-width: 100%;
	clear: both;
	float: none;
	margin-bottom: 10px;
}

.wo_user_profile .posts_load > #posts > .post-container > .post > .panel,
.wo_user_profile .posts_load .pinned-post-container > .post-container > .post > .panel {
	margin-bottom: 0;
}

.wo_user_profile .posts_load .loading-status {
	clear: both;
	width: 100%;
}

.wo_user_profile .tag_profile_auto_load {
	display: none !important;
}

.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px !important;
	clear: both;
	margin: 0 !important;
	overflow: visible !important;
}

.wo_user_profile .wow_sett_content > .user_media_list_section.insta .photo-data:nth-child(2),
.wo_user_profile .wow_sett_content > .user_media_list_section.insta .photo-data:nth-child(10) {
	float: none !important;
	width: auto !important;
}

.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .photo-data,
.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .video-data {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
	overflow: visible !important;
}

.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .photo-data > a,
.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .video-data > a {
	aspect-ratio: 1 / 1;
	display: block;
	padding-bottom: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #24242a, #111116);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
	overflow: hidden;
}

.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) img,
.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
	background: #000;
}

.wo_user_profile .tag_profile_video_tile > a:after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(transparent, rgba(0,0,0,0.46));
	pointer-events: none;
}

.wo_user_profile .tag_profile_video_play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(0,0,0,0.48);
	box-shadow: 0 4px 18px rgba(0,0,0,0.35);
	z-index: 2;
}

.wo_user_profile .tag_profile_video_play svg {
	width: 24px;
	height: 24px;
	margin-left: 2px;
}

.messages-container .message-media video.tag_chat_video_preview,
.chat-messages-wrapper .message-media video.tag_chat_video_preview,
.tag_msg_wrapper .message-media video.tag_chat_video_preview {
	width: min(100%, 360px);
	max-height: 420px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 16px;
	background: #000;
	display: block;
}

.tag_pub_upload_toast {
	position: fixed;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 1065;
	width: min(92vw, 360px);
	padding: 12px 14px;
	border-radius: 14px;
	color: #fff;
	background: rgba(20,20,24,0.94);
	box-shadow: 0 14px 35px rgba(0,0,0,0.28);
	backdrop-filter: blur(14px);
}

.tag_pub_upload_toast strong {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
}

.tag_pub_upload_toast .tag_pub_upload_track {
	height: 5px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255,255,255,0.18);
}

.tag_pub_upload_toast .tag_pub_upload_bar {
	width: 0%;
	height: 100%;
	border-radius: inherit;
	background: var(--main);
	transition: width 160ms ease;
}

@media (max-width: 600px) {
	.tag_messages input,
	.tag_messages textarea,
	.tag_messages select,
	.chat-textarea textarea,
	.tag_write_msg > textarea {
		font-size: 16px !important;
	}

	.tag_header > .search-container.show .search-input,
	.tag_header .search-input:focus,
	.tag_expand_search.tag_header > .search-container.show .search-input,
	.search-dropdown-container input,
	.search-for-posts,
	#search_for_text,
	#search_for_certifications,
	#search-movies,
	#product-text,
	#nearby-username {
		font-size: 16px !important;
	}

	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}

	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .photo-data > a,
	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .video-data > a,
	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) img,
	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) video {
		border-radius: 8px;
	}

	.wo_user_profile .tag_profile_video_play {
		width: 34px;
		height: 34px;
	}
}

/* VelChat branding */
.header-brand img.tag_logo_pc,
.header-brand img.tag_logo_mobi,
.welcome-header .logo img,
.header-brand img {
	object-fit: contain;
}
.header-brand img.tag_logo_pc,
.header-brand img.tag_logo_mobi {
	width: auto !important;
	max-width: 170px !important;
	max-height: 42px !important;
}
@media (min-width: 1351px) {
	.header-brand img.tag_logo_pc,
	.header-brand img.tag_logo_mobi {
		max-width: 190px !important;
		max-height: 46px !important;
	}
}
@media (max-width: 520px) {
	.tag_expand_search .header-brand img,
	.header-brand img.tag_logo_mobi {
		max-width: 128px !important;
		max-height: 34px !important;
	}
}

.tag_vel_toast {
	position: fixed;
	left: 50%;
	bottom: 22px;
	z-index: 20000;
	max-width: min(92vw, 420px);
	padding: 12px 15px;
	border-radius: 14px;
	color: #fff;
	background: rgba(20,20,24,0.94);
	box-shadow: 0 14px 35px rgba(0,0,0,.28);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity .2s ease, transform .2s ease;
}
.tag_vel_toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* VelChat automatic old-message loader */
body.tag_loading_old_messages .messages-load-more-messages.view-more-wrapper:before {
	content: "Loading older messages…";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: rgba(0,0,0,0.42);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
body.tag_loading_old_messages .messages-load-more-messages.view-more-wrapper > * {
	display: none !important;
}

/* VelChat chat info/media drawer */
.tag_chat_info_button {
	color: inherit;
}
.tag_chat_info_panel {
	position: fixed;
	inset: 0;
	z-index: 12000;
	pointer-events: none;
	visibility: hidden;
}
.tag_chat_info_panel.open {
	pointer-events: auto;
	visibility: visible;
}
.tag_chat_info_backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
	opacity: 0;
	transition: opacity .18s ease;
}
.tag_chat_info_panel.open .tag_chat_info_backdrop {
	opacity: 1;
}
.tag_chat_info_drawer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 100vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #1f1f1f;
	box-shadow: -18px 0 48px rgba(0,0,0,.25);
	transform: translateX(103%);
	transition: transform .22s ease;
}
.tag_chat_info_panel.open .tag_chat_info_drawer {
	transform: translateX(0);
}
.tag_chat_info_head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 18px 16px;
	border-bottom: 1px solid rgba(0,0,0,.08);
}
.tag_chat_info_head img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: #111;
}
.tag_chat_info_head h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}
.tag_chat_info_head p {
	margin: 3px 0 0;
	font-size: 13px;
	opacity: .65;
}
.tag_chat_info_close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	font-size: 28px;
	line-height: 30px;
	background: rgba(0,0,0,.07);
	color: inherit;
}
.tag_chat_info_tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 14px 14px 8px;
}
.tag_chat_info_tabs button {
	border: 0;
	border-radius: 999px;
	padding: 10px 8px;
	font-size: 13px;
	font-weight: 800;
	background: rgba(0,0,0,.07);
	color: inherit;
}
.tag_chat_info_tabs button.active {
	color: #fff;
	background: var(--main);
}
.tag_chat_info_counts {
	display: flex;
	gap: 8px;
	padding: 0 14px 12px;
	overflow-x: auto;
}
.tag_chat_info_counts span {
	white-space: nowrap;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: rgba(0,0,0,.06);
	opacity: .78;
}
.tag_chat_info_body {
	flex: 1;
	overflow-y: auto;
	padding: 0 14px 14px;
}
.tag_chat_info_grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.tag_chat_info_tile {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 13px;
	overflow: hidden;
	background: #111;
	cursor: pointer;
}
.tag_chat_info_tile img,
.tag_chat_info_tile video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tag_chat_info_play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	transform: translate(-50%, -50%);
	color: #fff;
	background: rgba(0,0,0,.46);
	pointer-events: none;
}
.tag_chat_info_files {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tag_chat_info_file {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 14px;
	background: rgba(0,0,0,.055);
}
.tag_chat_info_file_icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(0,0,0,.08);
}
.tag_chat_info_file_name {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: 700;
}
.tag_chat_info_file_open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	color: #fff !important;
	background: var(--main);
}
.tag_chat_info_file_open:hover,
.tag_chat_info_file_open:focus {
	color: #fff !important;
	text-decoration: none;
}
.tag_chat_info_empty {
	display: grid;
	place-items: center;
	min-height: 220px;
	padding: 20px;
	text-align: center;
	font-weight: 700;
	opacity: .62;
}
.tag_chat_info_foot {
	padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(0,0,0,.08);
}
.tag_chat_info_load_more {
	width: 100%;
}
.tag_chat_info_load_more.hidden {
	display: none !important;
}

body.night-mode .tag_chat_info_drawer,
body[data-theme="dark"] .tag_chat_info_drawer,
body.tag_dark .tag_chat_info_drawer {
	background: #202020;
	color: #fff;
}
body.night-mode .tag_chat_info_head,
body[data-theme="dark"] .tag_chat_info_head,
body.tag_dark .tag_chat_info_head,
body.night-mode .tag_chat_info_foot,
body[data-theme="dark"] .tag_chat_info_foot,
body.tag_dark .tag_chat_info_foot {
	border-color: rgba(255,255,255,.1);
}
body.night-mode .tag_chat_info_tabs button,
body[data-theme="dark"] .tag_chat_info_tabs button,
body.tag_dark .tag_chat_info_tabs button,
body.night-mode .tag_chat_info_counts span,
body[data-theme="dark"] .tag_chat_info_counts span,
body.tag_dark .tag_chat_info_counts span,
body.night-mode .tag_chat_info_file,
body[data-theme="dark"] .tag_chat_info_file,
body.tag_dark .tag_chat_info_file,
body.night-mode .tag_chat_info_close,
body[data-theme="dark"] .tag_chat_info_close,
body.tag_dark .tag_chat_info_close {
	background: rgba(255,255,255,.08);
}
body.night-mode .tag_chat_info_tabs button.active,
body[data-theme="dark"] .tag_chat_info_tabs button.active,
body.tag_dark .tag_chat_info_tabs button.active {
	background: var(--main);
}

@media (max-width: 520px) {
	.tag_chat_info_drawer {
		width: 100vw;
	}
	.tag_chat_info_grid {
		gap: 6px;
	}
	.tag_chat_info_tile {
		border-radius: 10px;
	}
}


/* VelChat dark-safe chat info overrides */
.tag_chat_info_drawer {
	background: var(--header-background, #202020) !important;
	color: var(--header-color, #fff) !important;
}
.tag_chat_info_head,
.tag_chat_info_foot {
	border-color: rgba(128,128,128,.22) !important;
}
.tag_chat_info_tabs button,
.tag_chat_info_counts span,
.tag_chat_info_file,
.tag_chat_info_file_icon,
.tag_chat_info_close {
	background: rgba(128,128,128,.14) !important;
}
.tag_chat_info_tabs button.active {
	background: var(--main) !important;
	color: #fff !important;
}
.tag_chat_info_body {
	overscroll-behavior: contain;
}
.messages-load-more-messages.view-more-wrapper {
	transition: opacity .18s ease;
}
body.tag_loading_old_messages .messages-load-more-messages.view-more-wrapper {
	opacity: .92;
}
.msg_usr_info_top_list .tag_msg_participant {
	cursor: pointer;
}
.tag_chat_info_tile img,
.tag_chat_info_tile video,
.tag_chat_info_play {
	cursor: pointer;
}


/* VelChat legacy download cleanup: hide buttons generated by older builds */
.tag_media_save_btn,
.tag_media_save_video,
.tag_media_save_image {
	display: none !important;
}
