/* Fonts */

	@font-face {
		font-family: "safiradmin";
		src:url("fonts.v2/safiradmin.eot");
		src:url("fonts.v2/safiradmin.eot?#iefix") format("embedded-opentype"),
		url("fonts.v2/safiradmin.woff") format("woff"),
		url("fonts.v2/safiradmin.ttf") format("truetype"),
		url("fonts.v2/safiradmin.svg#safiradmin") format("svg");
		font-weight: normal;
		font-style: normal;
	}

/* Icon Selector */

	.safiricon svg {
		display: block;
		width: 20px;
		height: 20px;
		fill: currentColor;
	}

	.safirAdminIconSelector {
		position: relative;
	}

	.safirAdminIconSelector .iconSelected {
		position: absolute;
		left: 0;
		top: 0;
		border: 1px solid #8c8f94;
		border-radius: 3px 0 0 3px;
		border-right: 0;
	}

	.safirAdminIconSelector .iconSelected svg {
		width: 16px;
		height: 16px;
		margin: 8px;
	}

	.safirAdminIconSelector input.iconInput {
		border-top-left-radius: 0;
		border-bottom-left-radius: 0;
		margin-left: 32px !important;
		width: calc(100% - 32px) !important;
		outline: 0 !important;
		padding-top: 2px; 
		padding-bottom: 2px; 
		box-shadow: none !important;
	}

	.safirAdminIconSelector .iconList {
		display: flex;
		flex-wrap: wrap;
		text-align: center;
		border-top: 1px solid #ededed;
		border-left: 1px solid #ededed;
		font-size: 11px;
		position: relative;
	}

	.safirAdminIconSelector .iconList .close {
		position: absolute;
		top: 0;
		right: -16px;
		width: 16px;
		height: 16px;
		color: #fff;
		background: #000;
		cursor: pointer;
		font-size: 9px;
		line-height: 16px;
		text-align: center;
	}

	.safirAdminIconSelector .iconList .item {
		width: 20%;
		cursor: pointer;
		display: block;
	}

	.safirAdminIconSelector .iconList .item.active {
		background: #c0c0c0;
	}

	.safirAdminIconSelector .iconList .inner {
		display: block;
		border-right: 1px solid #ededed;
		border-bottom: 1px solid #ededed;
		cursor: pointer;
	}

	.safirAdminIconSelector .iconList .icon {
		display: block;
		padding: 15px 10px !important;
		margin: 0 !important;
		float: none;
		width: auto;
		height: auto;
	}

	.safirAdminIconSelector .iconList .icon svg {
		display: block;
		width: 22px;
		height: 22px;
		margin: auto;
	}


/* Menu Icon */

	#adminmenu #toplevel_page_safirpanel.menu-icon-generic div.wp-menu-image:before {
		font-family: "safiradmin";
		content: "\E000";
	}

	#wp-admin-bar-safirpanel>.ab-item {
		display: flex !important;
		align-items: center;
	}

	#wp-admin-bar-safirpanel>.ab-item:before {
		font-family: "safiradmin" !important;
		content: "\E000";
	}

/* Admin Pages */

	.safirAdminPage {
		margin-left: -20px;
	}

	.safirAdminPage .safirHeader {
		background: #fff;
		padding: 30px 20px;
		box-shadow: 0 0 6px rgba(0,0,0,0.1);
	}

	.safirAdminPage .safirHeader h1 {
		margin: 0;
	}

	.safirAdminPage .safirInner {
		padding: 10px 20px;
		font-size: 15px;
		line-height: 1.5;
	}

	.safirAdminPage .safirInner ul {
		list-style: disc;
		list-style-position: inside;
	}

	.safirAdminPage .safirInner p {
		font-size: 15px;
	}

/* Widget Box */

	.safirWidgetBox {
		border:1px solid #ededed;
		background:#f9f9f9;
		margin-bottom:10px;
	}

	.safirWidgetBox .title {
		font-weight: bold;
		cursor: pointer;
		background: #f1f1f1;
		padding: 0 10px;
		line-height: 30px;
		position: relative;
	}

	.safirWidgetBox .title:after {
		content: "+";
		position: absolute;
		right: 0;
		top: 0;
		font-weight: bold;
		font-size: 16px;
		display: block;
		width: 30px;
		height: 30px;
		line-height: 30px;
		text-align: center;
		background: rgba(0,0,0,0.05);
	}

	.safirWidgetBox.active .title:after {
		content: "-";
	}

	.safirWidgetBox .data {
		border-top: 1px solid #ededed;
		padding: 0 10px;
		display: none;
	}

/* Info Box */

	.safirInfoBox {
		background: #fafafa;
	    margin: 15px 0;
	    border-left: 5px solid #7AD03A;
	    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
	    padding: 10px;
	}

/* Widgets */

	.safirWidgetItem {
		margin: 0 -15px;
		padding: 15px;
		border-bottom: 1px solid #d0d0d0;
	}
	
	.safirWidgetItem.heading {
		padding: 0 15px;
	}
	
	.safirWidgetItem:last-child {
		margin-bottom: 15px;
	}
	
	.safirWidgetItem .titleGroup {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: end;
		margin-bottom: 5px;
	}
	
	.safirWidgetItem .titleGroup .createAdButton {
		cursor: pointer;
		background: #ededed;
		padding: 4px 6px;
		font-size: 11px;
		border-radius: 4px;
		white-space: nowrap;
	}

	.safirWidgetItem label {
		display: block;
		font-size: 13px;
		margin-bottom: 5px;
		font-weight: 600;
	}
	
	.safirWidgetItem.checkbox label {
		font-weight: normal;
		margin: 0;
	}
	
	.safirWidgetItem input[type="text"],
	.safirWidgetItem select {
		border: 1px solid #8c8f94;
		padding: 2px 8px;
		margin: 0;
	}

	.safirWidgetItem .deepnote {
		margin-top: 10px;
		font-size: 12px;
		font-style: italic;
	}

	.safirMultiSelector {
		height: 130px;
		overflow-y: scroll; 
		border: 1px solid #8c8f94;
		border-radius: 3px;
		padding: 5px;
	}

	.safirMultiSelector .children {
		margin: 5px 0 0 15px;
	}
	
	.safirMultiSelector .item, .safirMultiSelector li {
		padding: 5px;
		margin: 0;
		list-style: none;
	}
	
	.safirMultiSelector label {
		font-weight: normal;
		margin: 0;
	}

/* Ad Creator */

	.ui-dialog {
		max-width: 100%;
	}

	body.wp-customizer .ui-dialog {
		z-index: 500000 !important;
	}

	#safir_ad_creator_form .row {
		display: grid;
		grid-template-columns: 1fr 2fr 1fr;
		align-items: center;
		gap: 15px;
		margin-bottom: 20px;
		font-size: 14px;
	}

	@media (max-width: 600px) {
		#safir_ad_creator_form .row {
			grid-template-columns: 1fr;
		}
	}

	#safir_ad_creator_form .row label.insert {
		grid-column: span 2;
	}

	#safir_ad_creator_form .row input[type="text"] {
		line-height: 30px;
		padding: 3px 10px;
	}

	#safir_ad_creator_form .row .button {
		line-height: 36px;
	}
	
/* Image Selector */

	.postbox .imageButtonContainer {
		display: flex;
		align-items: center;
	}
	
	.postbox .imageButtonContainer input[type=text] {
		width: 100%;
	}
	
	.postbox .imageButtonContainer a.button {
		margin-left: 10px;
	}

