/*--------------------------------------------------------------------------------------------
*
*  Global
*
*--------------------------------------------------------------------------------------------*/

/* Horizontal List */
.acf-hl { padding: 0; margin: 0; list-style: none; display: block; position: relative; }
.acf-hl > li { float: left; display: block; margin: 0; padding: 0; }
.acf-hl > li.acf-fr { float: right; }


/* Horizontal List: Clearfix */
.acf-hl:before, .acf-hl:after,
.acf-bl:before, .acf-bl:after,
.acf-cf:before, .acf-cf:after {
    content: "";
    display: block;
    line-height: 0;
}
.acf-hl:after,
.acf-bl:after,
.acf-cf:after {
    clear: both;
}


/* Block List */
.acf-bl { padding: 0; margin: 0; list-style: none; display: block; position: relative; }
.acf-bl > li { display: block; margin: 0; padding: 0; float: none; }


/* Visibility */
.acf-hidden { 
	display: none !important;
}
.acf-empty {
	display: table-cell !important;
	* { display: none !important; }
}

/* Float */
.acf-fl { float: left; }
.acf-fr { float: right; }
.acf-fn { float: none; }


/* Align */
.acf-al { text-align: left; }
.acf-ar { text-align: right; }
.acf-ac { text-align: center; }


/* loading */
.acf-loading,
.acf-spinner {
	display: inline-block;
	height: 20px;
	width: 20px;
	vertical-align: text-top;
	background: transparent url(../images/spinner.gif) no-repeat 50% 50%;
}


/* spinner */
.acf-spinner {
	display: none;
}

.acf-spinner.is-active {
	display: inline-block;
}


/* WP < 4.2 */
.spinner.is-active {
	display: inline-block;
}


/* required */
.acf-required {
	color: #f00;
}


/* show on hover */
.acf-soh .acf-soh-target {
	-webkit-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;
	-moz-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;
	-o-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; 	
	transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; 
	
	visibility: hidden;
	opacity: 0;
}

.acf-soh:hover .acf-soh-target {
	-webkit-transition-delay:0s;
	-moz-transition-delay:0s;
	-o-transition-delay:0s;
	transition-delay:0s;
	
	visibility: visible;
	opacity: 1;
}


/* show if value */
.show-if-value { display: none; }
.hide-if-value { display: block; }

.has-value .show-if-value { display: block; }
.has-value .hide-if-value { display: none; }


/* select2 WP animation fix */
.select2-search-choice-close {
	-webkit-transition: none;
	-moz-transition: none;
	-o-transition: none; 	
	transition: none;
}


/*---------------------------------------------------------------------------------------------
*
*  tooltip
*
*---------------------------------------------------------------------------------------------*/

/* tooltip */
.acf-tooltip {
    background: #2F353E;
    border-radius: 5px;
    color: #fff;
    padding: 5px 10px;
    position: absolute;
    font-size: 12px;
    line-height: 1.4em;
    z-index: 900000;
    
    
    /* tip */
    &:before {
	    border: solid;
	    border-color: transparent;
	    border-width: 6px;
	    content: "";
	    position: absolute;
	}
    
    
    /* positions */
    &.top {
	    margin-top: -8px;
	    
	    &:before {
			top: 100%;
			left: 50%;
			margin-left: -6px;
			border-top-color: #2F353E;
			border-bottom-width: 0;
		}
    }
    
    &.right {
	    margin-left: 8px;
	    
	    &:before {
			top: 50%;
			margin-top: -6px;
			right: 100%;
			border-right-color: #2F353E;
			border-left-width: 0;
		}
    }
    
    &.bottom {
	   margin-top: 8px;
	   
	   &:before {
			bottom: 100%;
			left: 50%;
			margin-left: -6px;
			border-bottom-color: #2F353E;
			border-top-width: 0;
		}
    }
    
    &.left {
	   margin-left: -8px;
	   
	   &:before {
			top: 50%;
			margin-top: -6px;
			left: 100%;
			border-left-color: #2F353E;
			border-right-width: 0;
		}
    }
    
    .acf-overlay {
		z-index: -1;
	}
    
}


/* confirm */
.acf-tooltip.-confirm {
	z-index: 900001; // +1 higher than .acf-tooltip
	
	a {
		text-decoration: none;
		color: #9ea3a8;
		
		&:hover {
			text-decoration: underline;
		}
		
		&[data-event="confirm"] {
			color: #F55E4F;
		}
	}
}

.acf-overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	cursor: default;
}

.acf-tooltip-target {
	position: relative;
	z-index: 900002; // +1 higher than .acf-tooltip
}


/*---------------------------------------------------------------------------------------------
*
*  loading
*
*---------------------------------------------------------------------------------------------*/
.acf-loading-overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	cursor: default;
	z-index: 99;
	background: rgba(249, 249, 249, 0.5);
	
	i {
		@include centered();
	}
}


/*--------------------------------------------------------------------------------------------
*
*	acf-icon
*
*--------------------------------------------------------------------------------------------*/

@font-face {
  font-family: 'acf';
  src: url('../font/acf.eot?57601716');
  src: url('../font/acf.eot?57601716#iefix') format('embedded-opentype'),
       url('../font/acf.woff2?57601716') format('woff2'),
       url('../font/acf.woff?57601716') format('woff'),
       url('../font/acf.ttf?57601716') format('truetype'),
       url('../font/acf.svg?57601716#acf') format('svg');
  font-weight: normal;
  font-style: normal;
}

.acf-icon:before {
	font-family: "acf";
	font-style: normal;
	font-weight: normal;
	speak: none;
	
	display: inline-block;
	text-decoration: inherit;
	width: 1em;
	//   margin-right: .2em;
	text-align: center;
	/* opacity: .8; */
	
	/* For safety - reset parent styles, that can break glyph codes*/
	font-variant: normal;
	text-transform: none;
	
	/* fix buttons height, for twitter bootstrap */
	line-height: 1em;
	
	/* Font smoothing. That was taken from TWBS */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	
	/* more consistent vertical align */
	position: relative;
}
 
.acf-icon.-plus:before { content: '\e800'; } /* '' */
.acf-icon.-minus:before { content: '\e801'; } /* '' */
.acf-icon.-cancel:before { content: '\e802'; } /* '' */
.acf-icon.-pencil:before { content: '\e803'; top: -1px; } /* '' */
.acf-icon.-location:before { content: '\e804'; } /* '' */
.acf-icon.-down:before { content: '\e805'; top: 1px; } /* '' */
.acf-icon.-left:before { content: '\e806'; left: -1px; } /* '' */
.acf-icon.-right:before { content: '\e807'; left: 1px; } /* '' */
.acf-icon.-up:before { content: '\e808'; top: -1px; } /* '' */
.acf-icon.-sync:before { content: '\e809'; } /* '' */
.acf-icon.-globe:before { content: '\e80a'; } /* '' */
.acf-icon.-picture:before { content: '\e80b'; } /* '' */
.acf-icon.-check:before { content: '\e80c'; } /* '' */
.acf-icon.-dot-3:before { content: '\e80d'; } /* '' */
.acf-icon.-arrow-combo:before { content: '\e80e'; } /* '' */
.acf-icon.-arrow-up:before { content: '\e810'; top: -1px; } /* '' */
.acf-icon.-arrow-down:before { content: '\e80f'; top: 1px; } /* '' */
.acf-icon.-search:before { content: '\e811'; } /* '' */
.acf-icon.-link-ext:before { content: '\f08e'; } /* '' */


/* collapse */
.acf-icon.-collapse:before { content: '\e810'; top: -1px; } /* arrow-up */
.-collapsed .acf-icon.-collapse:before { content: '\e80f'; top: 1px; } /* arrow-down */


/* default */
.acf-icon {
	display: inline-block;
	height: 26px;
	width: 26px;
	border: transparent solid 1px;
	border-radius: 100%;
	
	font-size: 16px;
	line-height: 26px;
	text-align: center;
	text-decoration: none;
	vertical-align: top;
	box-sizing: content-box;
}


/* elements */
span.acf-icon {
	color: #999;
	border-color: #BBB;
	background-color: #fff;	
}


/* icon */
a.acf-icon {
	color: #555d66;
	border-color: #b5bcc2;
	background-color: #fff;
		
	position: relative;
	overflow: hidden;
	transition: none;
	
	
	/* clear */
	&.-clear {
		color: #444;
		background: transparent;
		border: none;
	}
	
	
	/* light*/
	&.light {
		border: none;
		padding: 1px;
		background: #F5F5F5;
		color: #23282d;
	}
	
	
	/* states */
	&:hover {
		border-color: transparent;
		background: $acf_blue;
		color: #fff;
	}
	
	&:active {
		color: #fff;
		background-color: darken($acf_blue, 5%);
	}
	
	
	/* remove WP outline box-shadow */
	&:active,
	&:focus {
		outline: none;
		box-shadow: none;
	}
	
	
	/* red */
	&.-minus,
	&.-cancel {
		
		&:hover {
			background-color: #F55E4F;
		}
		
		&:active {
			background-color: darken(#F55E4F, 5%);
		}
	
	}
	
}


/* minor tweaks */
.acf-icon.-pencil {
	font-size: 15px;
}

.acf-icon.-location {
	font-size: 18px;
}


/* sizes */
.acf-icon.small,
.acf-icon.-small {
	width: 18px;
	height: 18px;
	line-height: 18px;
	font-size: 14px;
}


/* dark */
.acf-icon.dark {
	border-color: transparent;
	background: #23282D;
	color: #eee;
}

a.acf-icon.dark:hover {
	border-color: transparent;
	background: #191E23;
	color: #00b9eb;
}

a.acf-icon.-minus.dark:hover,
a.acf-icon.-cancel.dark:hover {
	color: #D54E21;
}


/* grey */
.acf-icon.grey {
	border-color: transparent;
	background: #b4b9be;
	color: #fff;
}

a.acf-icon.grey:hover {
	border-color: transparent;
	background: #00A0D2;
	color: #fff;
}

a.acf-icon.-minus.grey:hover,
a.acf-icon.-cancel.grey:hover {
	background: #32373C;
}


/* red */
.acf-icon.red {
	border-color: transparent;
	background-color: #F55E4F;
	color: #fff;
}


/* yellow */
.acf-icon.yellow {
	border-color: transparent;
	background-color: #FDBC40;
	color: #fff;
}


/* logo */
.acf-icon.logo {
	width: 150px;
	height: 150px;
	background: #5EE8BF;
	
	border: 0 none;
	position: absolute;
    right: 0;
    top: 0;
}


/*--------------------------------------------------------------------------------------------
*
*	acf-box
*
*--------------------------------------------------------------------------------------------*/
.acf-box {
    background: #FFFFFF;
    border: 1px solid $wp-card-border;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    
    /* title */
    .title {
		border-bottom: 1px solid $wp-card-border;
	    margin: 0;
	    padding: 15px;
		
		h3 {
			font-size: 14px;
		    line-height: 1em;
		    margin: 0;
		    padding: 0;
		}
	}
	
	
	.inner {
	    padding: 15px;
	}
	
	h2 {
		color: #333333;
	    font-size: 26px;
	    line-height: 1.25em;
	    margin: 0.25em 0 0.75em;
	    padding: 0;
	}
	
	h3 {
		margin: 1.5em 0 0;
	}
	
	p {
		margin-top: 0.5em;
	}
	
	a {
		text-decoration: none;
	}
	
	i {
		&.dashicons-external {
			margin-top: -1px;
		}
	}
	
	/* footer */
	.footer {
	    border-top: 1px solid $wp-card-border;
	    padding: 12px;
	    font-size: 13px;
	    line-height: 1.5;
	    
	    p {
		    margin: 0;
	    }
	}
	
	// WP Admin 3.8
	@include wp-admin('3-8') {
		border-color: $wp38-card-border;
		.title,
		.footer {
			border-color: $wp38-card-border;
		}
	}
}

/*--------------------------------------------------------------------------------------------
*
*	acf-notice
*
*--------------------------------------------------------------------------------------------*/

.acf-notice {
	position: relative;
	display: block;
	color: #fff;
	margin: 5px 0 15px;
	padding: 3px 12px;
	background: $acf_notice;
	border-left: darken($acf_notice, 8%) solid 4px;
	
	p {
		font-size: 13px;
		line-height: 1.5;
		margin: 0.5em 0;
		text-shadow: none;
		color: inherit;
	}
	
	a.acf-notice-dismiss {
		position: absolute;
		border-color: transparent;
		top: 9px;
		right: 12px;
		color: #fff;
		background: rgba(0,0,0,0.1);
		
		&:hover {
			background: rgba(0,0,0,0.2);
		}
	}
	
	// dismiss
	&.-dismiss {
		padding-right: 40px;
	}
	
	// error
	&.-error {
		background: $acf_error;
		border-color: darken($acf_error, 8%);
	}
	
	// success
	&.-success {
		background: $acf_success;
		border-color: darken($acf_success, 8%);
	}
	
	// warning
	&.-warning {
		background: $acf_warning;
		border-color: darken($acf_warning, 8%);
	}
}


/*--------------------------------------------------------------------------------------------
*
*	acf-table
*
*--------------------------------------------------------------------------------------------*/

.acf-table {
	border: $wp-card-border solid 1px;
	background: #fff;
	border-spacing: 0;
	border-radius: 0;
	table-layout: auto;
	padding: 0;
	margin: 0;
    width: 100%;
    clear: both;
    box-sizing: content-box;
    
    /* defaults */
    > tbody > tr,
	> thead > tr {
    	
    	> th, > td {
			padding: 8px;
			vertical-align: top;
			background: #fff;
			text-align: left;
		    border-style: solid;
		    font-weight: normal;
		}
		
		> th {
			position: relative;
			color: #333333;
		}
		
    }
    
    
    /* thead */
    > thead {
	    
	    > tr {
		    
			> th {
			    border-color: $wp-card-border-1;
				border-width: 0 0 1px 1px;
				
				&:first-child {
					border-left-width: 0;
				}
			}

	    }
	    
    }
    
    
    /* tbody */
    > tbody {
	    
	    > tr {
			z-index: 1;
			
			> td {
				border-color: $wp-card-border-2;
				border-width: 1px 0 0 1px;
				
				&:first-child {
					border-left-width: 0;
				}
			}
			
			&:first-child > td {
				border-top-width: 0;
			}
		}

    }
    
    
    /* -clear */
    &.-clear {
	    border: 0 none;
	    
	    > tbody > tr,
	    > thead > tr {
		    
		    > td, >th {
			    border: 0 none;
				padding: 4px;
		    }
	    }
    }
}


/* remove tr */
.acf-remove-element {
	-webkit-transition: all 0.25s ease-out;
	-moz-transition: all 0.25s ease-out;
	-o-transition: all 0.25s ease-out;
	transition: all 0.25s ease-out;
	
	transform: translate(50px, 0);
	opacity: 0;
}


/* fade-up */
.acf-fade-up {
	-webkit-transition: all 0.25s ease-out;
	-moz-transition: all 0.25s ease-out;
	-o-transition: all 0.25s ease-out;
	transition: all 0.25s ease-out;
	
	transform: translate(0, -10px);
	opacity: 0;
}


/*---------------------------------------------------------------------------------------------
*
*  Field Group List
*
*---------------------------------------------------------------------------------------------*/

#acf-field-group-wrap {
	
	.tablenav,
	p.search-box {
		display: none;
	}
	
	.wp-list-table {
		
		.column-acf-fg-description,
		.column-acf-fg-description:before {
			display: none !important; /* important needed to override mobile */	
		}
		
		.column-acf-fg-count {
			width: 10%;
		}
		
		.column-acf-fg-status {
			width: 10%;
		}
	
	}
	
	.tablenav.bottom {
		display: block;
	}
	
	.acf-description {
		font-weight: normal;
		font-size: 13px;
		color: #999;
		margin-left: 7px;
		font-style: italic;
	}

}




/* subsubsub */
#acf-field-group-wrap .subsubsub {
	
	/* WPML */
	margin-bottom: 3px;
	
	ul {
		margin: 0;
	}
	
	+ .subsubsub {
		margin-top: 0;
	}
	
	/* search */
	a:focus {
		box-shadow: none;
	}
	
}



/* columns (replicate post edit layout) */
.acf-columns-2 {
	margin-right: 300px;
	clear: both;
	@include clearfix();
	
	/* rtl */
	html[dir="rtl"] & {
		margin-right: 0;
		margin-left: 300px;
	}
	
	.acf-column-1 {
		float: left;
		width: 100%;
		
		/* rtl */
		html[dir="rtl"] & {
			float: right;
		}
	}
	
	.acf-column-2 {
		float: right;
	    margin-right: -300px;
	    width: 280px;
	    
	    /* rtl */
		html[dir="rtl"] & {
			float: left;
			margin-right: 0;
			margin-left: -300px;
		}
	}

}


/* search */
#acf-field-group-wrap .search-box {
	
	&:after {
		display: block;
		content: "";
		height: 5px;
	}
	
}

.acf-clear {
	clear: both;
}


/* mobile compatibilty */
@media screen and (max-width: 782px) {
		
	#acf-field-group-wrap #the-list .acf-icon:after {
		content: attr(title);
		position: absolute;
	    margin-left: 5px;
	    font-size: 13px;
	    line-height: 18px;
	    font-style: normal;
	    color: #444;
	}

}


/*---------------------------------------------------------------------------------------------
*
*  Fake table
*
*---------------------------------------------------------------------------------------------*/

.acf-thead,
.acf-tbody,
.acf-tfoot {
	width: 100%;
	padding: 0;
	margin: 0;
	
	> li {
		box-sizing: border-box;
		padding: 8px 12px;
		font-size: 12px;
		line-height: 14px;
	}
}

.acf-thead {
	border-bottom: $wp-card-border solid 1px;
	color: #23282d;
	
	> li {
		font-size: 14px;
		line-height: 1.4;
		font-weight: bold;
	}
	
	// WP Admin 3.8
	@include wp-admin('3-8') {
		border-color: $wp38-card-border-1;
	}
}

.acf-tfoot {
	background: #f5f5f5;
	border-top: $wp-card-border-1 solid 1px;
}

/*--------------------------------------------------------------------------------------------
*
*	Settings
*
*--------------------------------------------------------------------------------------------*/

.acf-settings-wrap {
	
	#poststuff {
		padding-top: 15px;
	}
	
	.acf-box {
		margin: 20px 0;
	}
	
	table {
		margin: 0;
		
		.button {
			vertical-align: middle;
		}
	}
}



/*--------------------------------------------------------------------------------------------
*
*	acf-popup
*
*--------------------------------------------------------------------------------------------*/

#acf-popup {
	position: fixed;
	z-index: 900000;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	text-align: center;
	
	// bg
	.bg {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 0;
		background: rgba(0,0,0,0.25);
	}
	
	&:before {
		content: '';
		display: inline-block;
		height: 100%;
		vertical-align: middle;
	}
	
	// box
	.acf-popup-box {
		display: inline-block;
		vertical-align: middle;
		z-index: 1;
		min-width: 300px;
		min-height: 160px;
		border-color: #aaaaaa;
		box-shadow: 0 5px 30px -5px rgba(0, 0, 0, 0.25);
		text-align: left;
		@include rtl();
		
		// title
		.title {
			min-height: 15px;
			line-height: 15px;
			
			// icon
			.acf-icon {
				position: absolute;
				top: 10px;
				right: 10px;
				
				// rtl
				html[dir="rtl"] & {
					right: auto;
					left: 10px;
				}
			}
		}
		
		.inner {
			min-height: 50px;
			
			// use margin instead of padding to allow inner elements marin to overlap and avoid large hitespace at top/bottom
			padding: 0;
			margin: 15px;
		}
		
		// loading
		.loading {
			position: absolute;
			top: 45px;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 2;
			background: rgba(0,0,0,0.1);
			display: none;
			
			i {
				@include centered();
			}
		}
		
	}
}


// acf-submit
.acf-submit {
	margin-bottom: 0;
	line-height: 28px; // .button height
	
	// message
	span { 
		float: right;
		color: #999;
		
		&.-error {
			color: #dd4232;
		}
	}
	
	// button (allow margin between loading)
	.button {
		margin-right: 5px;
	}
}

/*--------------------------------------------------------------------------------------------
*
*	upgrade notice
*
*--------------------------------------------------------------------------------------------*/

#acf-upgrade-notice {
	position: relative;
	background: #fff;
	border-left: 4px solid #00a0d2;
	padding: 20px;
	@include clearfix();
	
	.col-content {
		float: left;
		width: 55%;
		padding-left: 90px;
	}
	
	.col-actions {
		float: right;
		text-align: center;
		padding: 10px;
	}
	
	img {
		float: left;
		width: 70px;
		height: 70px;
		margin: 0 0 0 -90px;
	}
	
	h2 {
		font-size: 16px;
		margin: 2px 0 6.5px;
	}
	
	p {
		padding: 0;
		margin: 0;
	}
	
	.button:before {
		margin-top: 11px;
	}
	
	// mobile
	@media screen and (max-width: $sm) {
		
		.col-content,
		.col-actions {
			float: none;
			padding-left: 90px;
			width: auto;
			text-align: left;
		}
	}
}


/*--------------------------------------------------------------------------------------------
*
*	Welcome
*
*--------------------------------------------------------------------------------------------*/

.acf-wrap {
	
	h1 {
		margin-top: 0;
		padding-top: 20px;
	}
	
	.about-text {
		margin-top: 0.5em;
		min-height: 50px;
	}
	
	.about-headline-callout {
	    font-size: 2.4em;
	    font-weight: 300;
	    line-height: 1.3;
	    margin: 1.1em 0 0.2em;
	    text-align: center;
	}
	
	.feature-section {
	    padding: 40px 0;
	    
	    h2 {
		    margin-top: 20px;
	    }
	}
	
	.changelog {
		list-style: disc;
		padding-left: 15px;
		
		li {
			margin: 0 0 0.75em;
		}
	}
	
	.acf-three-col {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		
		> div {
			flex: 1;
			align-self: flex-start;
			min-width: 31%;
			max-width: 31%;
			
			@media screen and (max-width: $md) {
				min-width: 48%;
			}
			
			@media screen and (max-width: $sm) {
				min-width: 100%;
			}
		}
		
		h3 .badge {
			display: inline-block;
			vertical-align: top;
			border-radius: 5px;
			background: #fc9700;
			color: #fff;
			font-weight: normal;
			font-size: 12px;
			padding: 2px 5px;
		}
		
		img + h3 {
			margin-top: 0.5em;
		}
	}
}

/*--------------------------------------------------------------------------------------------
*
*	acf-hl cols
*
*--------------------------------------------------------------------------------------------*/

.acf-hl[data-cols] {
	margin-left: -10px;
	margin-right: -10px;
	
	> li {
		padding: 0 10px;
		
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	
}


/* sizes */
.acf-hl[data-cols="2"] > li { width: 50%; }
.acf-hl[data-cols="3"] > li { width: 33.333%; }
.acf-hl[data-cols="4"] > li { width: 25%; }


/* mobile */
@media screen and (max-width: $sm) {
	
	.acf-hl[data-cols] {
		margin-left: 0;
		margin-right: 0;
		margin-top: -10px;
		
		> li {
			width: 100% !important;
			padding: 10px 0 0;
		}
		
	}
	
}



/*--------------------------------------------------------------------------------------------
*
*	misc
*
*--------------------------------------------------------------------------------------------*/

.acf-actions {
	text-align: right;
	z-index: 1;
	
	a {
		margin-left: 4px;
	}
	
	
	/* hover */
	&.-hover {
		position: absolute;
		display: none;
		top: 0;
		right: 0;
		padding: 5px;
	}
	
	
	/* rtl */
	html[dir="rtl"] & {
		
		a {
			margin-left: 0;
			margin-right: 4px;
		}
		
		&.-hover {
			right: auto;
			left: 0;
		}
		
	}
}


/* ul compatibility */
ul.acf-actions {
	li { float: right; margin-left: 4px; }
}


/*--------------------------------------------------------------------------------------------
*
*	Plugins
*
*--------------------------------------------------------------------------------------------*/

.acf-plugin-upgrade-notice {
	font-weight: normal;
	color: #fff;
	background: #d54d21;
	padding: 1em;
	margin: 9px 0;
	
	&:before {
		content: "\f348";
		display: inline-block;
		font: 400 18px/1 dashicons;
		speak: none;
		margin: 0 8px 0 -2px;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		vertical-align: top;
	}
	
	h4 {
		display: none;
	}
	
	ul,
	li {
		display: inline;
		color: inherit;
		list-style: none;
	}
	
	li:after {
		content: '. ';
		display: inline;
	}
	
}


/*--------------------------------------------------------------------------------------------
*
*	RTL
*
*--------------------------------------------------------------------------------------------*/

html[dir="rtl"] .acf-fl { float: right; }
html[dir="rtl"] .acf-fr { float: left; }

html[dir="rtl"] .acf-hl > li {
	float: right;
}

html[dir="rtl"] .acf-hl > li.acf-fr {
    float: left;
}

html[dir="rtl"] .acf-icon.logo {
	left: 0;
	right: auto;
}


html[dir="rtl"] .acf-table thead th {
	text-align: right;
	border-right-width: 1px;
	border-left-width: 0px;
}

html[dir="rtl"] .acf-table > tbody > tr > td {
	text-align: right;
	border-right-width: 1px;
	border-left-width: 0px;
}

html[dir="rtl"] .acf-table > thead > tr > th:first-child, 
html[dir="rtl"] .acf-table > tbody > tr > td:first-child {
	border-right-width: 0;
}

html[dir="rtl"] .acf-table > tbody > tr > td.order + td {
	border-right-color: #e1e1e1;
}


/*---------------------------------------------------------------------------------------------
*
*  acf-postbox-columns
*
*---------------------------------------------------------------------------------------------*/

.acf-postbox-columns {
	@include clearfix();
	position: relative;
	margin-top: -11px;
	margin-bottom: -12px;
	margin-left: -12px;
	margin-right: (280px - 12px);
	
	.acf-postbox-main,
	.acf-postbox-side {
		@include border-box();
		padding: 0 12px 12px;
	}
	
	.acf-postbox-main {
		float: left;
		width: 100%;
	}
	
	.acf-postbox-side {
		float: right;
		width: 280px;
		margin-right: -280px;
		
		&:before {
			content: "";
			display: block;
			position: absolute;
			width: 1px;
			height: 100%;
			top: 0;
			right: 0;
			background: $wp-card-border-1;
		}
	}
	
	// WP Admin 3.8
	@include wp-admin('3-8') {
		.acf-postbox-side:before {
			background: $wp38-card-border-1;
		}
	}
}

/* mobile */
@media only screen and (max-width: 850px) {
	
	.acf-postbox-columns {
		margin: 0;
		
		.acf-postbox-main,
		.acf-postbox-side {
			float: none;
			width: auto;
			margin: 0;
			padding: 0;
		}
		
		.acf-postbox-side {
			margin-top: 1em;
			
			&:before {
				display: none;
			}
		}
	}
}


/*---------------------------------------------------------------------------------------------
*
*  acf-panel
*
*---------------------------------------------------------------------------------------------*/

.acf-panel {
	margin-top: -1px;
	border-top: 1px solid $wp-card-border-1;
	border-bottom: 1px solid $wp-card-border-1;
	
	.acf-panel-title {
		margin: 0;
		padding: 12px;
		font-weight: bold;
		cursor: pointer;
		font-size: inherit;
		
		i {
			float: right;
		}
	}
	
	.acf-panel-inside {
		margin: 0;
		padding: 0 12px 12px;
		display: none;
	}
	
	/* open */
	&.-open {
		
		.acf-panel-inside {
			display: block;
		}
		
	}
	
	
	/* inside postbox */
	.postbox & {
		margin-left: -12px;
		margin-right: -12px;
	}
	
	
	/* fields */
	.acf-field {
		margin: 20px 0 0;
		
		.acf-label label {
			color: #555d66;
			font-weight: normal;
		}
		
		&:first-child {
			margin-top: 0;
		}
	}
	
	// WP Admin 3.8
	@include wp-admin('3-8') {
		border-color: $wp38-card-border-1;
	}
}


/*---------------------------------------------------------------------------------------------
*
*  Admin Tools
*
*---------------------------------------------------------------------------------------------*/

#acf-admin-tools {
	
	.notice {
		margin-top: 10px;
	}
}

.acf-meta-box-wrap {
	margin-top: 10px;
	
	.postbox {
		@include border-box();
		
		.inside {
			margin-bottom: 0;
		}
		
		.hndle {
			font-size: 14px;
			padding: 8px 12px;
			margin: 0;
			line-height: 1.4;
			
			// Prevent .acf-panel border overlapping.
			position: relative;
			z-index: 1; 
		}
		
		.handlediv {
			display: none;
		}
	}
	
	
	/* acf-fields */
	.acf-fields {
		border: #ebebeb solid 1px;
		background: #fafafa;
		border-radius: 3px;
	}
}


/* grid */
.acf-meta-box-wrap.-grid {
	margin-left: 8px;
	margin-right: 8px;
	
	.postbox {
		float: left;
		clear: left;
		width: 50%;
		margin: 0 0 16px;
		
		&:nth-child(odd) {
			margin-left: -8px;
		}
		
		&:nth-child(even) {
			float: right;
			clear: right;
			margin-right: -8px;
		}
	}
}


/* mobile */
@media only screen and (max-width: 850px) {
	
	.acf-meta-box-wrap.-grid {
		margin-left: 0;
		margin-right: 0;
		
		.postbox {
			margin-left: 0 !important;
			margin-right: 0 !important;
			width: 100%;
		}
	}
}


/* export tool */
#acf-admin-tool-export {
	
	p {
		max-width: 800px;
	}
	
	ul {
		column-width: 200px;
	}
	
	.acf-postbox-side .button {
		margin: 0;
		width: 100%;
	}
	
	textarea {
		display: block;
		width: 100%;
		min-height: 500px;
		
		background: #fafafa;
		box-shadow: none;
		padding: 7px;
		border-radius: 3px;
	}
	
	/* panel: selection */
	.acf-panel-selection {
		.acf-label {
			display: none;
		}
	}
}

/*---------------------------------------------------------------------------------------------
*
*  Retina
*
*---------------------------------------------------------------------------------------------*/

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) { 
	
	.acf-loading,
	.acf-spinner {
		background-image: url(../images/spinner@2x.gif);
		background-size: 20px 20px;
	}
	
}


/*---------------------------------------------------------------------------------------------
*
*  Device
*
*---------------------------------------------------------------------------------------------*/

@media only screen and (max-width: 850px) {
	
	.acf-columns-2 {
		margin-right: 0;
	}
	
	.acf-columns-2 .acf-column-1,
	.acf-columns-2 .acf-column-2 {
		float: none;
		width: auto;
		margin: 0;
	}
	
}