/*
   Customizer Backend Styles
*/

body #customize-preview {
    background-image:
        radial-gradient( ellipse at center, rgba(0, 0, 0, 0.1) 50%, transparent 51%), /* logo */
        linear-gradient( rgba(0, 0, 0, 0.1) 25px, transparent 0 ), /* menu item right */
        linear-gradient( rgba(0, 0, 0, 0.1) 25px, transparent 0 ), /* menu item left */
        linear-gradient( rgba(146, 146, 146, 0.1) 45px, transparent 0 ), /* headline 1 */
        linear-gradient( rgba(146, 146, 146, 0.1) 45px, transparent 0 ); /* headline 2 */
    background-repeat: no-repeat;
    background-size:
        100px 100px, /* logo */
        10% 100%, /* menu item right */
        10% 100%, /* menu item left */
        40% 100%, /* headline 1 */
        55% 100%; /* headline 2 */
    background-position:
        0px 0px, /* logo */
        97% 40px, /* menu item right */
        84% 40px, /* menu item left */
        50% 200px, /* headline 1 */
        50% 260px; /* headline 2 */
}
body:not(.ready) .wp-full-overlay-sidebar-content {
    background-image:
        linear-gradient( rgba(255,255,255,.7) 83px, transparent 0 ),
        linear-gradient( rgba(255,255,255,.7) 41px, transparent 0 ),
        linear-gradient( rgba(255,255,255,.7) 41px, transparent 0 ),
        linear-gradient( rgba(255,255,255,.7) 41px, transparent 0 ),
        linear-gradient( rgba(255,255,255,.7) 41px, transparent 0 ); /* headline 2 */
    background-repeat: no-repeat;
    background-size:
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-position:
        50% 93px,
        50% 191px,
        50% 236px,
        50% 281px,
        50% 326px;
}

/* sections */
.control-section-empty {
    opacity: 0.75;
    font-style: italic;
}
.control-section-hidden {
    display: none !important;
}

/*
    general Layout
*/
/* Abstand unten */
#customize-theme-controls .customize-pane-child.accordion-section-content{
    padding-bottom: 50px;
}
/* Abstand zwischen den Elementen */
li.customize-control{
    margin-bottom: 16px;
}

/*
    Headline 1
*/
.customize-control.customize-control-separator .customize-control-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    border-top: 1px solid #CCCCCC;
    padding-top: .85em;
    margin-top: 2em;
    margin-bottom: .33em;
}
/* no border on headline within group  */
.customize-control-separator.customize-control-groupitem .customize-control-title,
/* no border on first headline  */
.customize-section-description-container + .customize-control-separator .customize-control-title,
/* if first headline is hidden, show no border on second headline ... */
.customize-section-description-container + .customize-control-separator[style="display: none;"] ~ .customize-control-separator .customize-control-title {
    border: none;
    padding-top: 0;
    margin-top: .85em;
}
/* ...but show border on all following headlines */
.customize-section-description-container + .customize-control-separator[style="display: none;"] ~ .customize-control-separator ~ .customize-control-separator .customize-control-title{
    border-top: 1px solid #CCCCCC;
    padding-top: .85em;
    margin-top: 2em;
}

/*
    Headline 2
*/
.customize-control .customize-control-title {
    font-size: 17px;
    font-weight: 500;
    margin: 1em 0 0;
}
.customize-control .customize-control-title ~ .customize-control-description,
.customize-control .customize-control-title ~ .cs-range-value {
    margin-top: 1em;
}

/*
    Description
*/
.customize-control .customize-control-description {
    font-size: 13px;
    font-style: normal;
}

/*
    ausklapp-Button
*/
.customize-control-group .button {
    height: 28px; 
    width: 100%; 
    text-align: left; 
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    width: auto;
    float: right;
}
.customize-control-group .button[data-description]{
    width: 100%;
    float: none;
    height: 37px;
    padding: 5px 10px;
}
.customize-control-group .button>span:last-child{
    margin-left: 4px;
}
.customize-control-group .button>span:nth-last-child(2){
    font-size: smaller;
    padding-left: 10px;
    overflow: hidden;
/*
the second-to-last item is always smaller
this way, if there's no description, the button appears smaller on the right
*/
}
.customize-control-group .button>span:nth-last-child(3){
    flex: 1;
    font-weight: 500;
    font-size: 1.1em;
/*
the third-to-last item is always bigger
so if there's a description, it's automatically becoming a bigger button
like for headlines or in branding section
*/
}

/*
    ausgeklappter Bereich
*/
.customize-control-group .button.active,
.customize-control-group .button.active:hover{
    background: #dcdcdc;
}
.customize-control.customize-control-groupitem {
    margin-bottom: 0px;
    background-color: #dcdcdc;
    margin-left: -12px;
    width: 100%;
    padding: 0 12px;
    
    overflow: hidden;
    height: 0px;
}
.customize-control.customize-control-groupitem.show {
    position: relative;
    overflow: visible;
    height: auto;
    padding-bottom: 16px;
    border-bottom: 1px solid #999;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.customize-control.customize-control-groupitem.show:not(.first) {
    margin-top: -25px;
}
/* first groupitem */
.customize-control.customize-control-groupitem.first.show,
/* when first item = control-off (dependency): */
.customize-control.customize-control-groupitem.first.show.customize-control-off + .customize-control.customize-control-groupitem.show,
.customize-control.customize-control-groupitem.first.show.customize-control-off + .customize-control.customize-control-groupitem.show.customize-control-off + .customize-control.customize-control-groupitem.show{
    border-top: 1px solid #999;
    padding-top: 30px;
    margin-top: 10px
}
/* small triangle on the right */
.customize-control.customize-control-groupitem.first.show::after,
/* when first item = control-off (dependency): */
.customize-control.customize-control-groupitem.first.show.customize-control-off + .customize-control.customize-control-groupitem.show::after,
.customize-control.customize-control-groupitem.first.show.customize-control-off + .customize-control.customize-control-groupitem.show.customize-control-off + .customize-control.customize-control-groupitem.show::after{
    content: ' ';
    position: absolute;
    right: 24px;
    top: -6px;
    height: 10px;
    width: 10px;
    background-color: #dcdcdc;
    border: 1px solid #999;
    border-color: #999 #999 transparent transparent;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
/* make inputs inside just slightly darker */
.customize-control.customize-control-groupitem input[type="text"],
.customize-control.customize-control-groupitem input[type="url"],
.customize-control.customize-control-groupitem select,
.customize-control.customize-control-groupitem textarea{
     background-color: #f9f9f9; 
}

/* customize-control-font - deprecated */
.customize-control-off {
    display: none !important;
}

/* customize-control-fontfamily */
.customize-control-fontfamily .progress-ffupload {
    display: inline-block;
    width: 0%;
    height: 2px;
    margin: 0px 0px 5px 0px;
    background: black;
}
.customize-control-fontfamily .customize-control-ff-select {
    display: none;
    margin-top: 10px;
}
.customize-control-fontfamily .customize-control-ff-select input[type="file"] {
    position: absolute;
    height: 0;
    width: 0;
    left: 0;
    margin: 80px 20px;
    padding: 0;
    opacity: 0;
}
.customize-control-fontfamily .customize-control-ff-custom {
    display: none;
    margin-top: 5px;
}

/*
    New Color Selector
*/
/* wrappers */
.customize-control-colors{
    display: inline-block;
    width: 100%;
    padding: 2px 0;
}
.customize-control-colors .color_wrapper{
    display: flex;
    justify-content: space-around;
    width: 100%;
}

/* selector */
.customize-control-colors .color_wrapper .col{
    display: inline-block;
    height: 20px;
    width: 20px;
    margin: 2px 0;
    border-radius: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.customize-control-colors .col:hover {
    border: 2px solid rgba(0,149,255,.5);
}
.customize-control-colors .col.selected {
    border: 2px solid rgba(0,149,255,1);
}

/* thumbs */
.customize-control-colors .color_wrapper .col > span{
    display: block;
    margin: 3px auto;
    width: 12px;
    height: 12px;
    border-radius: 100%;
    border: 1px solid #808080;
}
.customize-control-colors .color_wrapper .col .col_color{
    margin-top: calc(-100% + 3px);
}
.customize-control-colors .color_wrapper .col .col_bg{
    background-image: url(img/transparency-pattern.png);
    background-size: contain;
    border-color: transparent;
}

/* seperator */
.customize-control-colors .customize-control-colorssep{
    display: inline-block;
    width: 1px;
    height: 20px;
    background: rgba(0,0,0,.2);
    margin: 4px
}

/* Order main colors */
.col.color11{
    order: -11;
}
.col.color12{
    order: -10;
}
.col.color13{
    order: -9;
}
.col.color13 + .customize-control-colorssep{
    order: -8;
}
.col.color31{
    order: -7;
}
.col.color21{
    order: -6;
}
.col.color32{
    order: -5;
}
.col.color23 + .customize-control-colorssep{
    order: -4;
}
.col.color22{
    order: -3;
}
.col.color33{
    order: -2;
}
.col.color23{
    order: -1;
}

/* Order more colors */
.col.color41{
    order: -10;
}
.col.color51{
    order: -9;
}
.more + .customize-control-colors .customize-control-colorssep{
    order: -8;
    margin-left: 2px;
    margin-right: 2px;
}
.col.color42{
    order: -7;
}
.col.color52{
    order: -6;
}
.more + .customize-control-colors .customize-control-colorssep ~ .customize-control-colorssep{
    order: -5;
}
.col.color43{
    order: -4;
}
.col .color53{
    order: -3;
}
.more + .customize-control-colors .customize-control-colorssep ~ .customize-control-colorssep ~ .customize-control-colorssep{
    order: 0;
}

/* more */
.customize-control-colors-more {
    display: block;
    text-align: right;
    cursor: pointer;
    font-size: smaller;
}

/*
    Checkbox
*/
input[type="checkbox"]{
    vertical-align: middle;
}
input[type="checkbox"] ~.description{
    font-size: smaller;
    line-height: 140%;
    margin-top: .5em;
}
label input[type="checkbox"][disabled] + span {
    opacity: .4;
}

/* log */
.customize-control-log {
    display: inline-block;
    font-size: smaller; /* smaller! */
    width: 100%;
    height: 15px;
    padding: 5px 0;
    margin-bottom: 10px !important; 
    overflow: hidden;
    cursor: pointer;
    /* don't highlight text on double-click */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.customize-control-log.show {
    height: auto;
    overflow: visible;
}

/* Alpha Color Picker CSS */
.customize-control-alpha-color .wp-picker-container .iris-picker {
	border-bottom:none;
}
.customize-control-alpha-color .wp-picker-container {
	max-width: 257px;
}
.customize-control-alpha-color .wp-picker-open + .wp-picker-input-wrap {
	width: 100%;
}
.customize-control-alpha-color .wp-picker-input-wrap input[type="text"].wp-color-picker.alpha-color-control {
	float: left;
	width: 195px;
}
.customize-control-alpha-color .wp-picker-input-wrap .button {
	margin-left: 0;
	float: right;
}
.wp-picker-container .wp-picker-open ~ .wp-picker-holder .alpha-color-picker-container {
	display: block;
}
.alpha-color-picker-container {
	border: 1px solid #dfdfdf;
	border-top: none;
	display: none;
	background: #FFF;
	padding: 0 11px 10px;
	position: relative;
}
.alpha-color-picker-container .ui-widget-content,
.alpha-color-picker-container .ui-widget-header,
.alpha-color-picker-wrap .ui-state-focus {
	background: transparent;
	border: none;
}
.alpha-color-picker-wrap a.iris-square-value:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
}
.alpha-color-picker-container .ui-slider {
	position: relative;
	z-index: 1;
	height: 24px;
	text-align: center;
	margin: 0 auto;
	width: 88%;
	width: calc( 100% - 28px );
}
.alpha-color-picker-container .ui-slider-handle,
.alpha-color-picker-container .ui-widget-content .ui-state-default {
	color: #777;
	background-color: #FFF;
	text-shadow: 0 1px 0 #FFF;
	text-decoration: none;
	position: absolute;
	z-index: 2;
	box-shadow: 0 1px 2px rgba(0,0,0,0.2);
	border: 1px solid #aaa;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	margin-top: -2px;
	top: 0;
	height: 26px;
	width: 26px;
	cursor: ew-resize;
	font-size: 0;
	padding: 0;
	line-height: 27px;
	margin-left: -14px;
}
.alpha-color-picker-container .ui-slider-handle.show-opacity {
	font-size: 12px;
}
.alpha-color-picker-container .click-zone {
	width: 14px;
	height: 24px;
	display: block;
	position: absolute;
	left: 10px;
}
.alpha-color-picker-container .max-click-zone {
	right: 10px;
	left: auto;
}
.alpha-color-picker-container .transparency {
	height: 24px;
	width: 100%;
	background-color: #FFF;
	background-image: url(img/transparency-grid.png);
	box-shadow: 0 0 5px rgba(0,0,0,0.4) inset;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	padding: 0;
	margin-top: -24px;
}
@media (max-width: 782px) {
	.customize-control-alpha-color .wp-picker-input-wrap input[type="text"].wp-color-picker.alpha-color-control {
		width: 184px;
	}
}
@media (max-width: 640px) {
	.customize-control-alpha-color .wp-picker-input-wrap input[type="text"].wp-color-picker.alpha-color-control {
		width: 172px;
		height: 33px;
	}
}

/*
    Preset Picker
*/
.preset-picker{
    position: relative;
}
.preset-picker .selected_option,
.preset-picker .options{
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1;
    color: #32373c;
    border: 1px solid #7e8993;
    border-radius: 3px;
    padding: 0px;
    min-height: 30px;
    max-width: 25rem;
    cursor: pointer;
    vertical-align: middle;
    background-color: #fff;
}
.preset-picker select {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
/* option */
.preset-picker .option{
    padding: 7px 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.preset-picker .option .img{
    width: 60px;
    height: 40px;
    margin-right: 6px;
    background: url(../icon/preset-picker/custom.svg) center center/contain no-repeat;
    
}
.preset-picker .option .txt{
    flex: 1;
}

/* selected div */
.preset-picker .selected_option{
    padding-right: 16px;
    background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
    background-size: 16px 16px;
}
.preset-picker.open .selected_option{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' focusable='false' width='1em' height='1em' style='-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);' preserveAspectRatio='xMidYMid meet' viewBox='0 0 20 20'%3E%3Cpath d='M15 14l-5-5l-5 5l-2-1l7-7l7 7z' fill='%23626262'/%3E%3C/svg%3E");
}
.preset-picker .selected_option.custom{
    font-style: italic;
    opacity: .75;
}
.preset-picker .selected_option.custom .img{
    opacity: .66;
}

/* options */
.preset-picker .options{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0px 1px 6px -1px rgba(0,0,0,.5);
    opacity: 0;
    z-index: -99;
}
.preset-picker.open > .options{
    opacity: 1;
    z-index: 99;
}
.preset-picker > .options .option.selected{
    color: #0071A1;
}
.preset-picker > .options .option.hover,
.preset-picker > .options .option:hover{
    background-color: #6098F7;
    color: white;
}

/* info box */
.preset-picker ~ .greyd_info_box{
    margin-top: 12px;
}
