/*----------------------------------------------------------------------------------------------
 *
 *	Global
 *
 *--------------------------------------------------------------------------------------------*/
.ayg-text-center {
	text-align: center;
}

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

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

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

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

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

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

#ayg-shortcode-builder {
    display: -webkit-flex; /* Safari */
    -webkit-flex-wrap: wrap; /* Safari 6.1+ */
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

#ayg-shortcode-builder .ayg-left-col,
#ayg-shortcode-builder .ayg-right-col {
    width: 100%;
}

#ayg-shortcode-builder .ayg-col-content {
	padding: 15px;
}

@media only screen and (min-width: 768px) {
	#ayg-shortcode-builder .ayg-left-col { 
        width: 60%; 
	}

    #ayg-shortcode-builder .ayg-right-col { 
        width: 40%; 
	}
}

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

#ayg-table-delete-cache .ayg-text-success {
	line-height: 28px;
	margin: 0 7px;
}

.ayg-settings-pagination_type-more tr.previous_button_label,
.ayg-settings-pagination_type-more tr.next_button_label {
	display: none;
}

.ayg-settings-pagination_type-pager tr.more_button_label {
	display: none;
}

/*----------------------------------------------------------------------------------------------
 *
 *	Modal
 *
 *--------------------------------------------------------------------------------------------*/
.ayg-modal {
    position: fixed;   
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0; 
    top: 0;   
    left: 0;
    z-index: 9999;    
}

.ayg-modal-bg {
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.9;
}

.ayg-modal-content {
    position: absolute;   
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0; 
    top: 0;   
    left: 0;    
    overflow-y: auto;
    z-index: 1;
}

.ayg-modal-body {
    position: relative;    
    width: 90%;
    max-width: 540px;
    margin: 50px auto;
    padding: 15px;
    background-color: #fff;
}

.ayg-modal-body .ayg-modal-close {    
	position: absolute; 
	width: 25px;
	height: 25px;   
    top: 15px;
    right: 15px;
    color: #999;
	font-size: 25px;
	text-align: center;
    cursor: pointer;
}

.ayg-modal-body .ayg-modal-title {
    margin: 0 25px 15px 0;
}

/*----------------------------------------------------------------------------------------------
 *
 *	Editor
 *
 *--------------------------------------------------------------------------------------------*/
.ayg-editor-section-header {	
	margin: 5px 0 0 0;
	padding: 10px;
	background: #e5e5e5;   
	border: 1px solid #ccc; 
	cursor: pointer;
}

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

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

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

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

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

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

.ayg-editor-controls {
	margin: -1px 0 0 0;
	padding: 12px 12px 0 12px;
	background: #fff;
	border: 1px solid #ccc;
}

.ayg-editor-control {
	margin-bottom: 15px;
}

.ayg-editor-control label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

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

.ayg-editor-control .description {
	font-size: 90%;
}

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

.ayg-editor-field-pagination_type-more .ayg-editor-control-previous_button_label,
.ayg-editor-field-pagination_type-more .ayg-editor-control-next_button_label {
	display: none;
}

.ayg-editor-field-pagination_type-pager .ayg-editor-control-more_button_label {
	display: none;
}

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

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

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

.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: block;
}

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

.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-video .ayg-editor-section-gallery,
.ayg-editor-field-type-livestream .ayg-editor-section-gallery {
	display: none;
}

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

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

.automatic-youtube-gallery-block-panel .components-panel__row .components-base-control label {
	font-size: 13px;
	font-weight: normal;
	text-transform: capitalize;
}

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

.is-loading .wp-block-automatic-youtube-gallery-block {
	opacity: 0.5;
}

.is-loading .wp-block-automatic-youtube-gallery-block .ayg-error,
.is-loading .wp-block-automatic-youtube-gallery-block .ayg-fallback-message {
	visibility: hidden;
}

.is-loading .automatic-youtube-gallery-block-spinner {
	position: absolute;
	margin: 0;
	padding: 10px;
	top: 0;
    left: 0;
    background: #fff; 
}

.is-loading .automatic-youtube-gallery-block-spinner svg {
	margin: 0 10px 0 0;
}

.is-loading .automatic-youtube-gallery-block-spinner span {
	line-height: 16px;
	vertical-align: top;
}

/*----------------------------------------------------------------------------------------------
 *
 *	Widget
 *
 *--------------------------------------------------------------------------------------------*/
.widget .ayg-editor {
	margin: 10px 0;
}

.widget .ayg-editor .ayg-editor-control {
	margin-bottom: 12px;
}

.widget .ayg-editor .ayg-editor-control label {
	display: block;
	margin-bottom: 0;
	font-weight: 600;
}

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

.widget .ayg-editor .ayg-editor-control .description {
	margin: 0;
	word-break: break-word;
}