/*
Wpvast Posts Table frontend style.
Contain basic frontend style of the plugin.

Since: 1.0.0

Table of contents:
==================
1. General
2. Loader
3. Filter & Search
4. Pagination
5. Popup
*/

/* 1. General
======================================================= */
.wvpt-posts-table-wrapper {
	position: relative;
}
.wvpt-element + .wvpt-element {
	margin-top: 10px;
}
.wvpt-posts-table-wrapper img,
.wvpt-thumbnail img {
	max-width: 100%;
	height: auto;
}
.wvpt-view-post a {
	display: inline-block;
	white-space: nowrap;
}
.wvpt-pagination a,
.wvpt-pagination span {
	display: inline-block;
}

/* Nothing found */
.wvpt-nothing-found {
	font-weight: 600;
	text-align: center;
}

/* 2. Loader
======================================================= */
/* wvpt overlay */
.wvpt-overlay {
	display: none;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255,255,255,0.6);
	cursor: wait;
}
.wvpt-overlay img {
	position: absolute;
	width: 40px;
	height: 40px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.wvpt-loading .wvpt-overlay {
	display: block;
}

/* 3. Filter & Search
======================================================= */
.wvpt-filter {
	display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

/* Taxonomy filter */
.wvpt-taxonomy-filter {
	-ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}
.wvpt-filter-select {
	margin: 0 5px 5px 0;
}

/* Search filter */
.wvpt-search-filter {
	-ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}
.wvpt-search-input {
	width: 250px;
    margin: 0 0 5px 0;
}

/* 4. Pagination
======================================================= */
.wvpt-pagination {
	text-align: right;
}
.wvpt-pagination a,
.wvpt-pagination span {
	display: inline-block;
	margin-top: 5px;
}
.wvpt-pagination a + span,
.wvpt-pagination span + a {
	margin-left: 5px;
}

/* 5. Popup
======================================================= */
/* Thumbnail popup */
#TB_window.wvpt-thumbnail-popup {
	background-color: transparent;
	padding: 0;
	margin: 0 !important; /* Override thickbox inline style */
	transform: translate( -50%, -50% );
}
#TB_window.wvpt-thumbnail-popup a#TB_ImageOff,
#TB_window.wvpt-thumbnail-popup a#TB_ImageOff:hover,
#TB_window.wvpt-thumbnail-popup a#TB_ImageOff:focus {
	display: block;
	width: 100%;
	border: none;
	margin: 0;
	padding: 0;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	outline: 0;
}
#TB_window.wvpt-thumbnail-popup img#TB_Image {
	background: transparent;
	border: none;
	margin: 0;
	padding: 0;
	width: 100%;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	outline: 0;
}
#TB_window.wvpt-thumbnail-popup #TB_caption {
	display: none;
	position: absolute;
	top: 0;
	right: auto;
	left: 0;
	bottom: auto;
	line-height: 29px;
	overflow: hidden;
	padding: 0 29px 0 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: calc( 100% - 39px );
	height: 29px;
}
#TB_window.wvpt-thumbnail-popup #TB_closeWindow {
	position: absolute;
	top: 0;
	right: -35px;
	left: auto;
	bottom: auto;
	width: 29px;
	height: 29px;
	padding: 0;
}
#TB_window.wvpt-thumbnail-popup #TB_closeWindow .tb-close-icon {
	color: rgba( 255, 255, 255, 0.65 );
}
#TB_window.wvpt-thumbnail-popup #TB_closeWindow .tb-close-icon:hover,
#TB_window.wvpt-thumbnail-popup #TB_closeWindow .tb-close-icon:focus {
	color: #fff;
}
#TB_window.wvpt-thumbnail-popup #TB_closeWindow .tb-close-icon::before {
	font-size: 24px;
}
#TB_window.wvpt-thumbnail-popup #TB_closeWindowButton:focus .tb-close-icon {
	box-shadow: none;
	color: #fff;
}

/* Thumbnail overlay */
#TB_overlay.wvpt-thumbnail-popup-overlay {
	background: #0b0b0b;
	opacity: 0.8;
}