/*
 Theme Name:   Campo Child
 Theme URI:    http://campo.bold-themes.com
 Description:  Campo child theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     campo
 Version:      1.0.0
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  campo-child
*/


/* Theme customization starts here
-------------------------------------------------------------- */

/**
 * Fix header WPML switcher & Icons
 */
.bt-header-responsive-inactive .site-header a.wpml-ls-link:hover {
	color: #26a0f2 !important;
}

@media (max-width: 768px) {

	.site-header-responsive-widgets .widget_boldthemes_icon_widget {
		padding-right: 10px !important;
	}

	.wpml-ls-legacy-list-horizontal {
		padding: 0 !important;
	}

}

/**
 * Fix CF7 textarea text color
 */

.bt_bb_contact_form_7.bt_bb_input_style_underline textarea {
	color: var(--input-primary-color, currentColor) !important;
}

/**
 * Sections & footer accessibility fix
 */

.bt_bb_section, .site-footer {
	content-visibility: visible;
}

/**
 * Change categories filter text to uppercase
 */

.bt_bb_css_post_grid .bt_bb_css_post_grid_filter .bt_bb_css_post_grid_filter_item {
	text-transform: uppercase !important;
}

/**
 * Fix side search button
 */

aside#secondary .widget_search input[type=submit] {
	top: 0.35em;
}

/**
 * Result tables design
 */

#result-tables .results-table-wrapper {
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch;
}

#result-tables .bt_bb_text:not(.clean-results) table {
	margin: 0 auto;
	max-width: 100%;
}

#result-tables .bt_bb_text:not(.clean-results) table tr {
	display: flex;
	gap: 10px;
}

#result-tables .bt_bb_text:not(.clean-results) table td {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 1 1 200px;
	padding: .5em;
	width: 200px;
	text-align: center;
}

#result-tables .bt_bb_text.clean-results table td {
	padding: .5em;
}

#result-tables .bt_bb_text:not(.clean-results) table td img {
	margin: 0;
	order: 3;
}

#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(1) {
	flex-direction: row;
	justify-content: flex-end;
	gap: 20px;
	flex: 1 1 50%;
	width: calc(50% - 100px);
}

#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(3) {
	flex-direction: row;
	justify-content: flex-start;
	gap: 20px;
	flex: 1 1 50%;
	width: calc(50% - 100px);
}

#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(3) h5 {
	order: 5;
}

#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(1) p,
#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(3) p {
	display: none;
}

@media (max-width: 992px) {

	#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(1),
	#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(3) {
		flex-direction: column;
	}

	#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(1) h5 {
		order: 5;
	}

}

@media (max-width: 768px) {

	#result-tables .bt_bb_text:not(.clean-results) table tr {
		gap: 5px;
	}

	#result-tables .bt_bb_text:not(.clean-results) table td {
		flex: 1 1 160px;
		padding: .5em 0;
		width: 160px;
	}

	#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(1),
	#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(3) {
		justify-content: center;
		gap: 5px;
		flex: 1 1 50%;
		width: calc(50% - 80px);
	}

	#result-tables .bt_bb_text:not(.clean-results) table td img {
		max-width: 40px;
	}

	#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(1) h5,
	#result-tables .bt_bb_text:not(.clean-results) table td:nth-of-type(3) h5 {
		font-size: 0.8em;
	}

}