/*----------------------------------------------------------------------------------------------
 *
 *	Global
 *
 *--------------------------------------------------------------------------------------------*/
.ayg-margin-bottom {
	margin-bottom: 1em;
}

.ayg-text-center {
	text-align: center;
}

.ayg-text-error {
	color: #EC4338;
}

.ayg-text-success {
	color: green;
}

.ayg-ajax-status .spinner {
	float: none;
	visibility: visible;
}

/* Tabs */
.ayg .nav-tab {
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
	padding: 5px 15px;
}

@media screen and (max-width: 782px) {
	.ayg h2.nav-tab-wrapper {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5em;
	}

	.ayg h2.nav-tab-wrapper .nav-tab {
		margin: 0;
	}
}

/*----------------------------------------------------------------------------------------------
 *
 *	Dashboard
 *
 *--------------------------------------------------------------------------------------------*/
#ayg-dashboard h1 {
	font-size: 2em;
	font-weight: 500;
}

#ayg-dashboard .wp-badge {
	margin-bottom: 0;
	border-radius: 3px;
	background: #EC4338 url( '../images/logo.png' ) no-repeat top;
}

#ayg-table-api-key .ayg-ajax-status span {
	margin: 0 0.5em;
}

#ayg-shortcode-builder {
    display: grid;
	gap: 2em;
}

#ayg-shortcode-builder .ayg-left-col .ayg-col-content {
	margin-top: 2em;
}

@media only screen and (min-width: 768px) {
	#ayg-shortcode-builder {
		grid-template-columns: 3fr 2fr;
	}
}

/*----------------------------------------------------------------------------------------------
 *
 *	Settings
 *
 *--------------------------------------------------------------------------------------------*/
#ayg-table-delete-cache {
	margin-top: 0;
}

#ayg-table-delete-cache .ayg-text-success {
	line-height: 30px;
	margin: 0 0.5em;
}

#ayg-settings.player_type-youtube tr.player_color {
	display: none;
}

/*----------------------------------------------------------------------------------------------
 *
 *	Modal
 *
 *--------------------------------------------------------------------------------------------*/
.ayg-modal {
	position: relative;  	
	margin: 2em auto;
	border-radius: 3px;
	background-color: #fff;
	padding: 1em;  
	width: auto;
	max-width: 640px; 
}

.mfp-fade.mfp-bg {
	-webkit-transition: all 0.15s ease-out;
	   -moz-transition: all 0.15s ease-out;
	        transition: all 0.15s ease-out;
	opacity: 0;
}

.mfp-fade.mfp-bg.mfp-ready {
	opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
	opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
	-webkit-transition: all 0.15s ease-out;
	-moz-transition: all 0.15s ease-out;
			transition: all 0.15s ease-out;
	opacity: 0;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
	opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
	opacity: 0;
}

/*----------------------------------------------------------------------------------------------
 *
 *	Editor
 *
 *--------------------------------------------------------------------------------------------*/
.ayg-editor {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.ayg-editor .widefat {
	max-width: 100%;
}

.ayg-editor .ayg-editor-section {
	border: 1px solid #ccc;
	border-radius: 3px;
	overflow: hidden;
}

.ayg-editor .ayg-editor-section-header {
	display: flex;
	align-items: center;
	gap: 0.5em;	
	padding: 0.75em;
	background: #e5e5e5;   
	cursor: pointer;
}

.ayg-editor .ayg-editor-section-header:hover {	
	background: #f9f9f9;
}

.ayg-editor .ayg-editor-section-header .dashicons-before {
	color: #006799;
}

.ayg-editor .ayg-editor-section-header .dashicons-plus {
	display: flex;
}

.ayg-editor .ayg-editor-section-header .dashicons-minus {
	display: none;
}

.ayg-editor .ayg-active .ayg-editor-section-header .dashicons-plus {
	display: none;
}

.ayg-editor .ayg-active .ayg-editor-section-header .dashicons-minus {
	display: flex;
}

.ayg-editor .ayg-editor-controls {
	display: flex;
	flex-direction: column;
	gap: 1em;
	margin-top: -1px;
	padding: 1em;
	background: #fff;
	border-top: 1px solid #ccc;
}

.ayg-editor-control {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}

.ayg-editor .ayg-editor-controls .ayg-editor-control label {
	display: flex;
	align-items: center;
	gap: 0.5em;
	line-height: 1.5;
	font-weight: 500;
}

.ayg-editor .ayg-editor-controls .ayg-editor-control label input[type="checkbox"] {
	margin: 0;
}

.ayg-editor .ayg-editor-controls .ayg-editor-control .wp-picker-input-wrap label {
	display: inline-block;
}

.ayg-editor .ayg-editor-controls .ayg-editor-control .wp-picker-input-wrap label input[type="text"] {
	padding-top: 0;
	padding-bottom: 0;
}

.ayg-editor .ayg-editor-controls .ayg-editor-control .description {
	margin: 0;
	line-height: 1.5;
	word-break: break-word;
	font-size: 90%;
	font-weight: normal;
}

.ayg-editor .ayg-editor-control-playlist,
.ayg-editor .ayg-editor-control-channel,
.ayg-editor .ayg-editor-control-username,
.ayg-editor .ayg-editor-control-search,
.ayg-editor .ayg-editor-control-video,
.ayg-editor .ayg-editor-control-videos,
.ayg-editor .ayg-editor-control-order,
.ayg-editor .ayg-editor-control-limit {
	display: none;
}

.ayg-editor-field-type-playlist .ayg-editor-control-playlist {
	display: flex;
}

.ayg-editor-field-type-channel .ayg-editor-control-channel,
.ayg-editor-field-type-livestream .ayg-editor-control-channel {
	display: flex;
}

.ayg-editor-field-type-username .ayg-editor-control-username {
	display: flex;
}

.ayg-editor-field-type-search .ayg-editor-control-search,
.ayg-editor-field-type-search .ayg-editor-control-order,
.ayg-editor-field-type-search .ayg-editor-control-limit {
	display: flex;
}

.ayg-editor-field-type-video .ayg-editor-control-video {
	display: flex;
}

.ayg-editor-field-type-video .ayg-editor-control-autoadvance {
	display: none;
}

.ayg-editor-field-type-livestream .ayg-editor-control-cache,
.ayg-editor-field-type-livestream .ayg-editor-control-player_title,
.ayg-editor-field-type-livestream .ayg-editor-control-player_description,
.ayg-editor-field-type-livestream .ayg-editor-control-autoadvance,
.ayg-editor-field-type-livestream .ayg-editor-control-loop {
	display: none;
}

.ayg-editor-field-type-videos .ayg-editor-control-videos {
	display: flex;
}

.ayg-editor-field-type-video .ayg-editor-section-gallery,
.ayg-editor-field-type-livestream .ayg-editor-section-gallery {
	display: none;
}

.ayg-editor-field-type-video .ayg-editor-section-search,
.ayg-editor-field-type-livestream .ayg-editor-section-search {
	display: none;
}

.ayg-editor-field-theme-slider .ayg-editor-section-search,
.ayg-editor-field-theme-slider-popup .ayg-editor-section-search,
.ayg-editor-field-theme-slider-inline .ayg-editor-section-search,
.ayg-editor-field-theme-playlister .ayg-editor-section-search {
	display: none;
}

/*----------------------------------------------------------------------------------------------
 *
 *	Block
 *
 *--------------------------------------------------------------------------------------------*/
.block-editor .automatic-youtube-gallery-block-panel .components-panel__row {
	margin-bottom: 1.25em;
}

.block-editor .automatic-youtube-gallery-block-panel .components-panel__row label {
	text-transform: capitalize;
	line-height: 1.6;
	font-size: 13px;
    font-weight: normal;    
}

.block-editor .automatic-youtube-gallery-block-panel .components-panel__row .components-base-control {
	width: 100%;
}

.block-editor .automatic-youtube-gallery-block-panel .components-panel__row .components-range-control__wrapper {
    flex: 1 1 100%;
}

.block-editor .automatic-youtube-gallery-block-panel .components-panel__row .block-editor-panel-color-gradient-settings {	
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

.block-editor .automatic-youtube-gallery-block-panel .components-panel__row .block-editor-tools-panel-color-gradient-settings__item {	
	margin-top: 18px;
}

/*----------------------------------------------------------------------------------------------
 *
 *	Widget
 *
 *--------------------------------------------------------------------------------------------*/
.widget-inside .ayg-editor {
	margin-top: 1em;
}

/*----------------------------------------------------------------------------------------------
 *
 *	Elementor
 *
 *--------------------------------------------------------------------------------------------*/
#elementor-controls .ayg-editor-section-header {
	padding: 0.35em 0.5em;
}