/* Post composer category + privacy — loaded globally for all pages/modals */

body div.timeline-pubbox-container .timeline-pubbox__footer-meta,
body div.timeline-pubbox-container .cl-mc__post-meta,
body div#add_new_post .timeline-pubbox__footer-meta,
body div#add_new_post .cl-mc__post-meta,
body div#homepage-pubbox-modal .timeline-pubbox__footer-meta,
body div#homepage-pubbox-modal .cl-mc__post-meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
	flex-shrink: 0;
}

body div.timeline-pubbox-container .post-category,
body div.timeline-pubbox-container .cl-mc__category,
body div#add_new_post .post-category,
body div#add_new_post .cl-mc__category,
body div#homepage-pubbox-modal .post-category,
body div#homepage-pubbox-modal .cl-mc__category,
body div.modal.modal-pubbox .post-category,
body div.modal.modal-pubbox .cl-mc__category,
body div.modal.modal-home-pubbox .post-category,
body div.modal.modal-home-pubbox .cl-mc__category {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin: 0;
}

body div.timeline-pubbox-container .timeline-pubbox__footer-meta .post-privacy,
body div.timeline-pubbox-container .cl-mc__post-meta .post-privacy,
body div#add_new_post .post-privacy,
body div#homepage-pubbox-modal .post-privacy {
	margin: 0;
}

body div.timeline-pubbox-container .post-category .form-control,
body div.timeline-pubbox-container .cl-mc__category .form-control,
body div#add_new_post .post-category .form-control,
body div#add_new_post .cl-mc__category .form-control,
body div#homepage-pubbox-modal .post-category .form-control,
body div#homepage-pubbox-modal .cl-mc__category .form-control,
body div.modal.modal-pubbox .post-category .form-control,
body div.modal.modal-pubbox .cl-mc__category .form-control,
body div.modal.modal-home-pubbox .post-category .form-control,
body div.modal.modal-home-pubbox .cl-mc__category .form-control {
	min-width: 148px;
	max-width: 190px;
	border-radius: 8px;
	font-size: 13px;
	height: 32px;
	padding: 4px 30px 4px 12px;
	border: 1px solid var(--cl-primary-border-color);
	color: var(--cl-primary-text-color);
	background-color: var(--cl-secondary-bg-color);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23818e9c' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 10px 7px;
	box-shadow: none;
	outline: 0;
	accent-color: var(--cl-primary-color);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

body[data-bg=dark] div.timeline-pubbox-container .post-category .form-control,
body[data-bg=dark] div.timeline-pubbox-container .cl-mc__category .form-control,
body[data-bg=dark] div#add_new_post .post-category .form-control,
body[data-bg=dark] div#add_new_post .cl-mc__category .form-control,
body[data-bg=dark] div#homepage-pubbox-modal .post-category .form-control,
body[data-bg=dark] div#homepage-pubbox-modal .cl-mc__category .form-control,
body[data-bg=dark] div.modal.modal-pubbox .post-category .form-control,
body[data-bg=dark] div.modal.modal-pubbox .cl-mc__category .form-control,
body[data-bg=dark] div.modal.modal-home-pubbox .post-category .form-control,
body[data-bg=dark] div.modal.modal-home-pubbox .cl-mc__category .form-control {
	color-scheme: dark;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b949e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body div.timeline-pubbox-container .post-category .form-control option,
body div.timeline-pubbox-container .cl-mc__category .form-control option,
body div#add_new_post .post-category .form-control option,
body div#homepage-pubbox-modal .post-category .form-control option,
body div.modal.modal-pubbox .post-category .form-control option,
body div.modal.modal-pubbox .cl-mc__category .form-control option {
	background-color: var(--cl-primary-bg-color);
	color: var(--cl-primary-text-color);
}

body div.timeline-pubbox-container .post-category .form-control option:checked,
body div.timeline-pubbox-container .cl-mc__category .form-control option:checked,
body div#add_new_post .post-category .form-control option:checked,
body div#homepage-pubbox-modal .post-category .form-control option:checked,
body div.modal.modal-pubbox .post-category .form-control option:checked,
body div.modal.modal-pubbox .cl-mc__category .form-control option:checked,
body div.modal.modal-home-pubbox .post-category .form-control option:checked,
body div.modal.modal-home-pubbox .cl-mc__category .form-control option:checked {
	background-color: var(--cl-primary-color);
	color: #ffffff;
}

body div.timeline-pubbox-container .post-category .form-control option:hover,
body div.timeline-pubbox-container .cl-mc__category .form-control option:hover,
body div#add_new_post .post-category .form-control option:hover,
body div#add_new_post .cl-mc__category .form-control option:hover,
body div#homepage-pubbox-modal .post-category .form-control option:hover,
body div#homepage-pubbox-modal .cl-mc__category .form-control option:hover,
body div.modal.modal-pubbox .post-category .form-control option:hover,
body div.modal.modal-pubbox .cl-mc__category .form-control option:hover,
body div.modal.modal-home-pubbox .post-category .form-control option:hover,
body div.modal.modal-home-pubbox .cl-mc__category .form-control option:hover,
body div.timeline-pubbox-container .post-category .form-control option:focus,
body div.timeline-pubbox-container .cl-mc__category .form-control option:focus,
body div#add_new_post .post-category .form-control option:focus,
body div#add_new_post .cl-mc__category .form-control option:focus,
body div#homepage-pubbox-modal .post-category .form-control option:focus,
body div#homepage-pubbox-modal .cl-mc__category .form-control option:focus,
body div.modal.modal-pubbox .post-category .form-control option:focus,
body div.modal.modal-pubbox .cl-mc__category .form-control option:focus,
body div.modal.modal-home-pubbox .post-category .form-control option:focus,
body div.modal.modal-home-pubbox .cl-mc__category .form-control option:focus {
	background-color: var(--cl-primary-color);
	color: #ffffff;
}

body[data-bg=default] div.timeline-pubbox-container .post-category .form-control,
body[data-bg=default] div.timeline-pubbox-container .cl-mc__category .form-control,
body[data-bg=default] div#add_new_post .post-category .form-control,
body[data-bg=default] div#homepage-pubbox-modal .post-category .form-control,
body[data-bg=default] div.modal.modal-pubbox .post-category .form-control,
body[data-bg=default] div.modal.modal-home-pubbox .post-category .form-control {
	color-scheme: light;
}

body div.timeline-pubbox-container .post-category .form-control:hover,
body div.timeline-pubbox-container .post-category .form-control:focus,
body div.timeline-pubbox-container .cl-mc__category .form-control:hover,
body div.timeline-pubbox-container .cl-mc__category .form-control:focus,
body div#add_new_post .post-category .form-control:hover,
body div#add_new_post .post-category .form-control:focus,
body div#add_new_post .cl-mc__category .form-control:hover,
body div#add_new_post .cl-mc__category .form-control:focus,
body div#homepage-pubbox-modal .post-category .form-control:hover,
body div#homepage-pubbox-modal .post-category .form-control:focus,
body div.modal.modal-pubbox .post-category .form-control:hover,
body div.modal.modal-pubbox .post-category .form-control:focus,
body div.modal.modal-pubbox .cl-mc__category .form-control:hover,
body div.modal.modal-pubbox .cl-mc__category .form-control:focus {
	border-color: var(--cl-primary-color);
	background-color: var(--cl-event-hover-bg);
}

body div.timeline-pubbox-container--modal form.form footer.cl-mc__dock div.cl-mc__dock-row div.cl-mc__post-meta {
	flex-shrink: 0;
}

@media (max-width: 575.98px) {
	body div.timeline-pubbox-container .post-category .form-control,
	body div.timeline-pubbox-container .cl-mc__category .form-control,
	body div#add_new_post .post-category .form-control,
	body div#homepage-pubbox-modal .post-category .form-control {
		min-width: 120px;
		max-width: 150px;
		font-size: 12px;
	}
}
