/* languages admin panel */
#add-lang select {
	width: 95%;
}

#add-lang label {
	margin: 0.35em 0 0.5em;
}

.lmat-legend {
	display: block;
	padding: 2px 0;
	color: #1d2327;
	font-weight: 400;
	text-shadow: none;
	margin: 0.35em 0 0.5em;
}

.column-locale,
.languages .column-slug {
	width : 15%
}

.column-default_lang {
	width : 5%;
}

.column-term_group,
.column-flag, .column-count {
	width : 10%;
}

.lmat_subsubsub .lmat_subsubsub_list li a .icon-default-lang:before,
td.column-default_lang .icon-default-lang:before,
.lmat-wizard-content .icon-default-lang:before {
	font-family: 'dashicons';
	content: "\f155";
}

.ab-icon:before{
	display: inline-block;
	text-align: left;
	width: 15px;
}
.lmat-circle:before{
	content: "\25cf";
}

/* about Linguator metabox */
#lmat-about-box p,
#lmat-recommended p {
	text-align: justify;
}

#lmat-about-box input {
	margin: 0;
	padding: 0;
	float: right;
}

/* strings translation table */
.stringstranslations .column-name,
.stringstranslations .column-context {
	width: 10%;
}

.stringstranslations .column-string {
	width: 33%;
}

.translation label {
	display: inline-block;
	width: 23%;
	vertical-align: top;
}

.translation {
	display: flex; /* fix #691 to remove default margin bottom */
}
@media screen and (max-width: 782px) { /* reset default display property for small device */
	.translation{
		display: block;
	}
}
.translation textarea{
	display: block; /* fix #691 to remove default margin bottom */
}
.translation input,
.translation textarea {
	width: 72%;
	box-sizing: border-box; /* to be sure field don't overrun outside their wrapper */
	margin-bottom: 4px; /* fix #691 set the same margin bottom for both textarea and input tags */
}

/* settings */
.lmat-settings {
	margin-top: 20px;
}

.lmat-settings .plugin-title {
	width: 25%;
}

#wpbody-content .lmat-settings .lmat-configure tr {
	display: table-row;
}

#wpbody-content .lmat-settings .lmat-configure td {
	display: table-cell;
}

#wpbody-content .lmat-settings .lmat-configure > td {
	padding: 20px 20px 20px 40px;
}

.lmat-configure legend {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 0.5em;
}

.lmat-configure td .description {
	margin-top: 2px;
	margin-bottom: 0.5em;
}

.lmat-configure p.submit {
	margin-top: 20px;
}

.lmat-configure .button {
	margin-right: 20px;
}

.lmat-configure fieldset {
	margin-bottom: 1.5em;
}

.lmat-inline-block-list {
	margin: 0;
}

.lmat-inline-block-list li {
	display: inline-block;
	margin: 0;
	width: 250px;
}

/* settings URL modifications */
#lmat-domains-table td {
	padding: 2px 2px 2px 1.5em;
	-webkit-box-shadow: none;
	box-shadow: none;
	border: none;
}

.lmat-settings-url-col {
	display: inline-block;
	width: 49%;
	vertical-align: top;
}

/* settings Activation keys */
.lmat-table-top td {
	vertical-align: top;
}

#lmat-licenses-table label {
	font-size: 1em;
	font-weight: 600;
}

.lmat-configure .lmat-deactivate-license {
	margin: 0 0 0 20px;
}

/* language columns in edit.php and edit-tags.php */
.wp-list-table th[class*='column-language_'],
.wp-list-table td[class*='column-language_'] {
	width: 1.5em;
	box-sizing: content-box; /* Override ACF 5.9.0 styles */
}

/* Text direction in post.php and edit-tags.php */
.lmat-dir-rtl textarea,
.lmat-dir-rtl input[type="text"] {
	direction: rtl;
}

.lmat-dir-ltr textarea,
.lmat-dir-ltr input[type="text"] {
	direction: ltr;
}

.lmat-dir-ltr .tr_lang,
.lmat-dir-rtl .tr_lang {
	direction: inherit;
}

/* languages metabox in post.php */
#ml_box p {
	margin-top: 1em;
}

#post-translations p {
	float: left;
	margin-top: 1em;
}

.rtl #post-translations p {
	float: right;
}

#post-translations table {
	table-layout: fixed;
	width: 100%;
	clear: both;
}

#post-translations a {
	text-decoration: none;
}

#post-translations .lmat-language-column,
#post-translations .lmat-column-icon {
	width: 20px;
}

#post-translations .tr_lang {
	width: 100%;
}

#post-translations td {
	padding: 2px;
}

#post-translations .spinner,
#term-translations .spinner {
	float: none;
	margin: 0;
	background-position: center;
	width: auto;
}

#select-post-language .lmat-select-flag {
	padding: 4px;
	margin-right: 10px;
}

.rtl #select-post-language .lmat-select-flag {
    padding: 4px;
    margin-right: 0px;
    margin-left: 10px;
}

/* specific cases for media */
#select-media-language .lmat-select-flag {
	padding: 4px;
	margin-right: 10px;
}

.lmat-media-edit-column {
	float: right;
}

/* language and translations in edit-tags.php */
.lmat-translation-flag { /* also for media */
	margin-right: 14px;
}

#select-add-term-language .lmat-select-flag {
	padding: 11px;
	margin-right: 13px;
}

#select-edit-term-language .lmat-select-flag {
	padding: 11px;
	margin-right: 4px;
}

#term-translations p {
	/* same style as label */
	font-weight: 400;
	font-style: normal;
	padding: 2px;
	color: #23282d;
}

#add-term-translations,
#edit-term-translations {
	width: 95%;
}

#term-translations .lmat-language-column {
	line-height: 28px;
	width: 20%;
}

#term-translations .lmat-edit-column,
#add-term-translations .lmat-language-column {
	width: 20px;
}

#edit-term-translations .lmat-language-column {
	padding: 15px 10px;
	font-weight: normal;
}

/* icon fonts */
.lmat_icon_add:before {
	content: "\f132";
}

.lmat_icon_edit:before {
	content: "\f464";
}

[class^="lmat_icon_"] {
	font: 20px/1 'dashicons';
	vertical-align: middle;
}

/* admin bar */
#wpadminbar #wp-admin-bar-languages .ab-item img {
	margin: 0 8px 0 2px;
}

#wpadminbar #wp-admin-bar-languages #wp-admin-bar-all .ab-item .ab-icon {
	float: none;
	top: 4px;
}

#wpadminbar #wp-admin-bar-languages .ab-icon:before {
	content: "\f326";
	top: 1px;
}

#wp-admin-bar-languages.lmat-filtered-languages {
	background: #a03f3f;
}

#wpadminbar #wp-admin-bar-languages.lmat-filtered-languages span.ab-label{ /* Enforce white color for WordPress admin light theme. */
		color: #fff;
}

/* Notices */
.lmat-notice.notice {
	position: relative;
    width: auto;
	max-width: 100%;
    clear: both;
    border-radius: 5px;
    box-sizing: border-box;
}

.lmat-notice a.notice-dismiss {
	text-decoration: none;
}

.lmat-notice .button {
	margin-right: 10px;
}

@media screen and ( max-width: 782px ) {
	/* settings */
	#wpbody-content .lmat-settings .lmat-configure > td {
		padding: 20px;
	}

	#wpbody-content .lmat-settings #cb {
		padding: 20px 9px;
	}

	/* settings URL modifications */
	.lmat-inline-block {
		width: auto;
	}

	.lmat-settings-url-col {
		display: block;
		width: 100%;
	}

	/* settings licenses */
	#wpbody-content .lmat-settings #lmat-licenses-table td {
		display: block;
	}

	.lmat-configure .lmat-deactivate-license {
		margin: 10px 0 5px;
	}

	/* strings translations table */
	.translation label {
		display: block;
		width: 95%;
		padding-left: 0;
	}

	.translation input,
	.translation textarea {
		width: 95%;
	}

	/* hide selected language flag and translations language name */
	#select-add-term-language .lmat-select-flag,
	#select-edit-term-language .lmat-select-flag,
	#edit-term-translations .lmat-language-name {
		display: none;
	}

	#edit-term-translations {
		width: 100%;
	}

	#add-term-translations .lmat-language-column {
		line-height: 38px;
	}

	#edit-term-translations td {
		padding: 8px 10px;
	}

	#edit-term-translations .lmat-language-column,
	#edit-term-translations .lmat-edit-column {
		width: 20px;
	}

	/* translations tables should be kept as table */
	.term-translations .lmat-language-column,
	.term-translations .lmat-edit-column,
	.term-translations .lmat-translation-column {
		display: table-cell;
	}

	.term-translations .hidden {
		display: none;
	}

	/* admin bar */
	#wpadminbar #wp-admin-bar-languages {
		display: block; /*shows our menu on mobile devices */
	}

	#wpadminbar #wp-admin-bar-languages > .ab-item {
		width: 50px;
		text-align: center;
	}

	#wpadminbar #wp-admin-bar-languages > .ab-item .ab-icon:before {
		font: 32px/1 'dashicons';
		top: -1px;
	}

	#wpadminbar #wp-admin-bar-languages > .ab-item img {
		margin: 19px 0;
	}

	#wpadminbar #wp-admin-bar-languages #wp-admin-bar-all .ab-item .ab-icon {
		margin-right: 6px;
		font-size: 20px !important;
		line-height: 20px !important;
	}
}