/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.wpdl-view-documents .fav-icon {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 0.5rem;
}

.wpdl-view-documents .fav-icon .wpdl-document-title {
	margin: 0 0 10px 0;

}

.wpdl-view-documents .fav-icon .wpdl-favorite-btn {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
}

.wpdl-view-documents .fav-icon .wpdl-icon img {
	width: 25px !important;
	height: 25px !important;
	cursor: pointer;

}

table.wp-doc-frnt {
	border: 1px solid #c3c4c7 !important;
}

table.wp-doc-frnt thead {
	background: #ffffff;
}

table.wp-doc-frnt.dataTable thead th,
table.wp-doc-frnt.dataTable thead td {
	border-bottom: 1px solid #c3c4c7;
}

table.wp-doc-frnt.dataTable thead td {
	border-top: 0px !important;
}

table.wp-doc-frnt.dataTable th,
table.wp-doc-frnt.dataTable td {
	font-size: 14px;
	line-height: 20px;
	box-shadow: none !important;
}

table.wp-doc-frnt.dataTable thead th.wp-doc-tble-title {
	min-width: 110px;
}

table.wp-doc-frnt.dataTable thead th.wp-doc-tble-date {
	min-width: 115px;
}

table.wp-doc-frnt.dataTable .wp-doc-tble-download a {
	background: #074b79;
	border: none;
	color: #fff;
	text-decoration: none;
	text-shadow: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	border-radius: 5px;
	padding: 5px 15px;
	transition: 0.3s;
	box-shadow: none !important;
	margin: 20px 0 0;
	cursor: pointer;
}

table.wp-doc-frnt.dataTable .wp-doc-tble-download a:hover {
	opacity: .9;
}

table.wp-doc-frnt.dataTable tbody tr:nth-child(even) {
	background-color: #f5f5f5;
}

#wpdl_shortcode_table_filter {
	margin-bottom: 10px;
}

#wpdl_shortcode_table_wrapper select[name="wpdl_shortcode_table_length"],
#wpdl_shortcode_table_filter input {
	border-color: #dbdbdb;
}

span.wp-doc-empty {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 3px;
	opacity: .5;
	font-size: 14px;
}

#wpdl_shortcode_table_wrapper a.paginate_button {
	padding: 3px 5px;
	min-height: inherit;
	background: #074b79 !important;
	color: #fff !important;
	line-height: normal;
	font-size: 15px;
	margin: 0 3px;
	border-radius: 5px;
}


#wpdl_shortcode_table_wrapper .dataTables_paginate.paging_simple_numbers {
	padding-top: 15px;
}

.wp-doc-tc {
	text-align: center;
}

#wpdl_shortcode_table_wrapper {
	margin-bottom: 40px;
}

.select2 button {
	color: inherit;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
	margin-inline: 0;
}

span.select2-search.select2-search--inline {
	line-height: unset;
}

textarea.select2-search__field {
	line-height: 1;
}

li.select2-selection__choice {
	display: flex !important;
	align-items: center;
	width: max-content;
	max-width: 100%;
}

.select2 .select2-selection__choice__remove {
	bottom: 0;
}

/* WPDL Document Viewer */
.wpdl-modal {
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpdl-modal-content {
	background: #fff;
	width: 100%;
	height: 100%;
	max-width: 90%;
	max-height: 90%;
	overflow: auto;
	padding: 20px;
	border-radius: 8px;
}

.wpdl-modal-close {
	float: right;
	cursor: pointer;
	font-size: 24px;
}

.wpdl-viewer iframe,
.wpdl-viewer canvas,
.wpdl-viewer video,
.wpdl-viewer audio {
	width: 100%;
	max-height: 80vh;
}

.wpdl-modal .wpdl-doc-viewer {
	overflow: hidden;
	/* hide outer scroll */
}

.wpdl-modal .wpdl-doc-viewer iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

div#wpdlDocViewer {
	height: 80.5vh;
}

/* WPDL Document Viewer end */

/* Responsive Starts */
@media(max-width:990px) {
	table.wp-doc-frnt {
		display: block;
		overflow-x: auto;
	}

	#wpdl_shortcode_table_wrapper #wpdl_shortcode_table_length,
	#wpdl_shortcode_table_wrapper #wpdl_shortcode_table_filter {
		text-align: left;
	}
}

@media(max-width:575px) {
	#wpdl_shortcode_table_wrapper #wpdl_shortcode_table_filter label {
		display: grid;
		grid-template-columns: 1fr;
		grid-gap: 5px;
	}
}

/* CSS */
.wpdl-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px 60px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wpdl-title {
	font-size: 24px;
	margin: 0 0 15px;
	font-weight: 600;
}

.wpdl-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.wpdl-search {
	position: relative;
	flex: 1 1 260px;
	max-width: 420px;
}

.wpdl-search input {
	width: 100%;
	padding: 8px 30px 8px 12px;
	border-radius: 999px;
	border: 1px solid #d5d8df;
	font-size: 14px;
}

.wpdl-search-icon {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	opacity: 0.6;
}

.wpdl-toolbar-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.wpdl-per-page span {
	margin-right: 6px;
	font-size: 13px;
	color: #555;
}

.wpdl-per-page select {
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid #d5d8df;
	font-size: 13px;
}

.wpdl-view-toggle button {
	border: 1px solid #d5d8df;
	background: #fff;
	padding: 5px 10px;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.wpdl-view-toggle button:first-child {
	border-radius: 6px 0 0 6px;
	border-right: none;
}

.wpdl-view-toggle button:last-child {
	border-radius: 0 6px 6px 0;
}

.wpdl-view-toggle button.is-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.wpdl-folders {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.wpdl-folders button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	font-size: 13px;
	cursor: pointer;
}

.wpdl-folders button.is-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.wpdl-folder-count {
	min-width: 24px;
	text-align: center;
	border-radius: 999px;
	font-size: 11px;
	padding: 2px 6px;
	background: rgba(0, 0, 0, 0.06);
}

.wpdl-status {
	margin: 20px 0;
	font-size: 14px;
	color: #4b5563;
}

.wpdl-status--error {
	color: #b91c1c;
}

.wpdl-items {
	display: grid;
	gap: 18px;
}

.wpdl-items-grid {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.wpdl-items-list {
	grid-template-columns: 1fr;
}

.wpdl-item-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 24px 18px 18px;
	border-radius: 16px;
	border: 1px solid #e5e7eb;
	background: #fff;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.wpdl-item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 16px;
	background: #eff6ff;
}

.wpdl-item-icon-label {
	font-size: 20px;
	font-weight: 600;
}

/* type-specific accents */
.wpdl-type-pdf .wpdl-item-icon {
	background: #fee2e2;
}

.wpdl-type-doc .wpdl-item-icon {
	background: #dbeafe;
}

.wpdl-type-xls .wpdl-item-icon {
	background: #dcfce7;
}

.wpdl-type-video .wpdl-item-icon {
	background: #fef3c7;
}

.wpdl-type-audio .wpdl-item-icon {
	background: #ede9fe;
}

.wpdl-item-body {
	text-align: center;
}

.wpdl-item-title {
	font-size: 14px;
	margin: 0 0 6px;
	font-weight: 500;
}

.wpdl-item-meta {
	font-size: 12px;
	color: #6b7280;
	margin: 0 0 12px;
}

.wpdl-item-meta span+span::before {
	content: '•';
	margin: 0 4px;
}

.wpdl-item-footer {
	text-align: center;
}

.wpdl-download-btn {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	background: #0ea5e9;
	color: #fff;
	font-size: 13px;
	text-decoration: none;
}

.wpdl-download-btn:hover {
	background: #0284c7;
}

.wpdl-pagination {
	margin-top: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}

.wpdl-pagination button {
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	background: #fff;
	cursor: pointer;
}

.wpdl-pagination button:disabled {
	opacity: 0.4;
	cursor: default;
}

/* End CSS */

/* theme css fixes fixes */

.wpdl-frontend :is(input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type=reset], input[type=tel], input[type=date], select) {
	font-size: 14px;
	line-height: 20px;
	border-radius: 6px;
	border-color: #e5e5e5;
}

.view-switcher-wrapper {
	gap: 2px;
}

.lv1,
.lv2 {
	padding: 0px !important;
	margin: 0px;
}

:is(.lv1, .lv2) ul,
:is(.lv1, .lv2) ol {
	padding: 0px;
	margin: 0px;
}

:is(.lv1, .lv2) ul li,
:is(.lv1, .lv2) ol li {
	position: relative;
}

:is(.lv1, .lv2) ul li span::before,
:is(.lv1, .lv2) ol li span::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
}

.no-udl {
	text-decoration: none !important;
}

.swal2-popup {
	overflow: hidden;
	padding: 20px !important;
	border-radius: 14px;
}

.swal2-popup>input#swal2-input {
	margin-inline: 0px !important;
}

.swal2-popup button.swal2-styled {
	padding-block: 6px;
	border-radius: 6px;
}

.the-viewer img {
	object-fit: cover;
}

@keyframes wpdlspin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
#wpdl-upload-modal {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	z-index: 9999;
	top: 0; left: 0;
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	background: rgba(0,0,0,0.7);
}

.wpdl_hidden {
	display: none;
}

.wpdl-library-manager {
	margin: 2em 0;
}

.wpdl-library-manager__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.wpdl-library-manager__title {
	margin: 0;
}

.wpdl-library-table-wrap {
	margin-bottom: 1.5rem;
}

.wpdl-upload-library-form {
	margin: 2em auto;
	background: #fafafa;
	padding: 2em;
	border-radius: 8px;
}

.wpdl-library-form-header {
	margin-bottom: 1.25rem;
}

.wpdl-library-form-title {
	margin: 0;
}

.wpdl-library-documents-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.5rem 0;
}

.wpdl-library-documents-toolbar label {
	margin: 0;
}

.wpdl-library-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.wpdl-library-action {
	padding: 0;
	border: 0;
	background: transparent;
	color: #2271b1;
	cursor: pointer;
}

.wpdl-library-action:hover,
.wpdl-library-action:focus {
	color: #135e96;
	background: transparent;
}

.wpdl-library-delete {
	color: #b32d2e;
}

.wpdl-library-delete:hover,
.wpdl-library-delete:focus {
	color: #8c1f20;
	background: transparent;
}

.wpdl-upload-modal-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.wpdl-document-modal {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	inset: 0;
	z-index: 10000;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.7);
}

.wpdl-document-modal__dialog {
	width: min(100%, 640px);
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	box-sizing: border-box;
}

.wpdl-document-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.wpdl-document-modal__title {
	margin: 0;
}

.wpdl-document-modal__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 1rem;
}

.wpdl-document-modal .select2-container {
	width: 100% !important;
	margin-bottom: 1em;
}

.wpdl-document-selected-media {
	margin-top: 0.5rem;
	padding: 0.75rem 1rem;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
}

.wpdl-document-featured-image-preview {
	margin-top: 0.5rem;
	padding: 0.75rem 1rem;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
}

.wpdl-document-featured-image-preview img {
	display: block;
	max-width: 120px;
	height: auto;
	border-radius: 4px;
}

.wpdl-document-featured-image-actions {
	margin: 0.75rem 0 1rem;
}

.wpdl-document-type-panel {
	margin-bottom: 1rem;
}

.wpdl-document-featured-toggle {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-top: 0.25rem;
}

.wpdl-document-featured-toggle input[type="checkbox"] {
	margin-top: 0.15rem;
}

button.button-link.wpdl-document-modal-close:hover {
    background: transparent;
    color: #0274be;
}

.dataTables_length select {
    width: 65%;
}

.dataTables_wrapper .dataTables_length {
	width: 100%;
	max-width: 20%;
	margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length label {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
	display: none;
}

@media (max-width: 767px) {
	.wpdl-library-manager__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.wpdl-library-documents-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.wpdl-document-modal__actions {
		flex-direction: column;
		align-items: stretch;
	}
}
