/**
 * Plugin Styles.
 */
#adminmenu {
  #toplevel_page_wfcm-file-changes {
	a.wp-has-current-submenu {
	  .update-plugins {
		background-color: #ea683c;
	  }
	}
  }
}

.wfcm-settings {
  td {
	fieldset {
	  label.hidden {
		display: none;
	  }
	}
  }

  .wfcm-settings-danger {
	border: 1px solid #d73a49;

	th {
	  padding: 20px 0 20px 10px;
	}
  }
}

.wfcm-files-container {
  display: table;
  margin-bottom: 5px;

  .item-list {
	display: inline-block;
	vertical-align: top;
	background: #fff;
	width: 250px;
	height: 230px;
	overflow-y: scroll;
	border: 1px solid #ddd;
	padding: 10px;

	input[type="checkbox"] {
	  display: none;
	}

	input[type="checkbox"] + label {
	  background: #f1f1f1;
	}

	input[type="checkbox"]:checked + label {
	  background: none;
	}

	label {
	  display: block;
	  margin-bottom: 2px;
	  padding: 5px;
	  transition: all 0.2s linear;

	  &:hover {
		background: #f1f1f1;
		transition: 0.2s all linear;
	  }
	}
  }

  .button {
	margin-left: 10px;
  }

  .name {
	display: inline-block;
	width: 271px;
  }
}

$width: 40px; // Change Me
$height: $width / 2.5;

.wfcm-toggle {
  display: inline-block;
  margin: (($height * 1.4 - $height) / 2) + 5px;
  margin: (($height * 1.5 - $height) / 2);
  width: $width;
  height: $height;
  text-align: left;
  position: relative;

  input[type='checkbox'] {
	display: none;

	&:checked ~ .wfcm-toggle__toggle {
	  background: #009688;
	  left: ($width - ($height * 1.4 - $height) / 2) - $height;
	  transition: .5s;
	}

	&:checked ~ .wfcm-toggle__switch {
	  background: #6DBEB7;
	  transition: .5s;
	}
  }

  .wfcm-toggle__switch {
	display: block;
	width: $width;
	height: $height;
	background: #939393;
	border-radius: $height / 2;
	position: absolute;
	top: 0;
	transition: .5s;
  }

  .wfcm-toggle__toggle {
	height: $height * 1.4;
	width: $height * 1.4;
	border-radius: 50%;
	background: white;
	position: absolute;
	top: ($height * 1.4 - $height) / -2;
	left: ($height * 1.4 - $height) / -2;
	box-shadow: 0 $width / 50 $width / 25 rgba(black, .4);
	transition: .5s;
  }
}

// Help & About page.
.about-wrap {
  .wp-badge {
	background-image: url(../../img/wfcm-logo.svg);
	background-color: #d5dfeb;
	color: #333333;
  }
}

.wfcm-about-body {
  max-width: 700px;

  .rating-link {
	display: inline-block;
	vertical-align: middle;
	text-decoration: none;
	color: #ffb900;

	&:hover {
	  color: darken(#ffb900, 3%);
	}
  }

  p {
	.button {
	  vertical-align: middle;
	}
  }

  .wfcm-about-logo {
	text-align: center;

	a {
	  outline: 0;
	}

	img {
	  width: 400px;
	}
  }

  .wfcm-about-products {
	display: table;
	width: 100%;

	.wfcm-about-products__col-6 {
	  display: table-cell;
	  width: 50%;
	  vertical-align: top;
	  padding: 0 5px;
	}
  }

  #wfcm-system-info-textarea {
	font-family: monospace;
	white-space: pre;
	overflow: auto;
	width: 100%;
	height: 400px;
	margin: 0;
  }

  .our-wordpress-plugins {
	width: 100%;
	max-width: 250px;
	box-sizing: border-box;
  }

  .our-wordpress-plugins h3 {
	font-size: 17px;
	line-height: 28px;
	color: #23282D;
	font-weight: 500;
	margin: 0;
	padding: 15px 4px 0px;
	text-align: center;
  }

  .our-wordpress-plugins ul {
	list-style: none;
	margin: 0;
	padding: 20px 0 0;
	display: flex;
	flex-wrap: wrap;
  }

  .our-wordpress-plugins ul li {
	width: 100%;
	margin-bottom: 20px;
  }

  .our-wordpress-plugins ul li .plugin-box {
	width: 100%;
	background: #F7F7F7;
	border: 1px solid #D9D9D9;
  }

  .our-wordpress-plugins ul li .plugin-box .plugin-img img {
	width: 100%;
	display: block;
  }

  .plugin-desc {
	padding: 20px 15px;
	font-size: 14px;
	line-height: 22px;
	font-weight: 400;
	color: #23282D;
	text-align: center;
	border-top: 1px solid #D9D9D9;
  }

  .our-wordpress-plugins h4 {
	font-size: 16px;
	line-height: 19px;
	color: #23282D;
	font-weight: 600;
	margin: 0;
	padding-bottom: 10px;
  }

  .plugin-desc p {
	margin: 0 0 15px 0;
  }

  .cta-btn a {
	font-size: 14px;
	line-height: 24px;
	color: #fff;
	font-weight: 700;
	background: #2B597A;
	border-radius: 4px;
	display: inline-block;
	text-decoration: none;
	padding: 5px 15px;
  }

  .our-wordpress-plugins.full {
	width: 100%;
	max-width: 700px;
  }

  .our-wordpress-plugins.full ul {
	margin-left: -10px;
	margin-right: -10px;
  }

  .our-wordpress-plugins.full ul li {
	width: 33.3%;
	padding: 0 10px;
	box-sizing: border-box;
  }

  .our-wordpress-plugins.full ul li .plugin-box {
	height: 100%;
  }

  .our-wordpress-plugins.side-bar {
	margin-bottom: 30px;
  }

  @media (max-width: 991px) {
	.our-wordpress-plugins.full ul li {
	  width: 100%;
	  max-width: 255px;
	  margin: 0 auto;
	  margin-bottom: 20px;
	}
  }
}

tr.faded-row {
  opacity: .4;
}

.jconfirm.jconfirm-react-confirm-alert {

  .jconfirm-bg {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: hsla(0, 0%, 100%, .9);
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: center;
	-ms-align-items: center;
	align-items: center;
  }

  .jconfirm-box {

	font-family: Arial, Helvetica, sans-serif;
	width: 400px;
	padding: 30px;
	text-align: left;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 75px rgba(0, 0, 0, .13);
	color: #666;
	overflow-wrap: break-word;
	word-wrap: break-word;

	div.jconfirm-title-c {
	  display: none;
	}

	.jconfirm-buttons {

	  float: right;
	  padding-bottom: 0;

	  button {
		outline: none;
		background: #333;
		border: none;
		display: inline-block;
		color: #eee;
		margin-right: 10px;
		border-radius: 5px;
		cursor: pointer;
	  }

	  button + button {
	  }
	}

  }
}
