@import "bourbon";
@import "neat";
@import "../../../assets/css/tfl-lib";

/* =============== Common Styles ===================== */

.tfl-icon {
  position: relative;
  display: inline-block;
  margin-right: 5px;
}

.tfl-row {
  position: relative;
  display: inline-block;
  vertical-align: top;
  padding: 15px 18px;
  margin: 0 25px 0 0;
}

h3.tfl-title {
  padding: 8px 18px 0 18px !important;
  font-size: 13px !important;
  font-weight: bold;
}

.tfl-title.description {
  padding: 4px 18px 0 18px !important;
  margin: 0;
  font-size: 12px;
  font-style: initial;
}

.tfl-label {
  font-weight: bold;
  display: block;
  font-size: 15px;
  line-height: 24px;
  cursor: default;
}

.tfl-type-number {
  margin: 0;
  padding-right: 0;
  max-height: 28px;
}

label.tfl-inline {
  display: inline-block;
  vertical-align: baseline;
}

.tfl-desc {
  color: #666666;
  line-height: 15px;
  margin: 4px 0 12px 0;
  font-size: 12px;
  font-weight: normal;
}

.tfl-sub-desc {
  color: #666666;
  line-height: 1.5;
  margin: 4px 0 0 0;
  font-size: 12px;
  font-style: italic;
  font-weight: normal;
}

.tfl-select-wrap {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 28px;
  background: #ffffff;
}

[data-multiple="true"].tfl-select-wrap {
  height: auto;
}

/* ============= TABS ==================== */

.tfl-tab-content {
  position: relative;
  display: none;
  margin: 0;
}

.tfl-tab-content:first-child {
  display: block;
}

.tfl-tabs-wrap {
  margin: -7px -12px 15px;
  background-color: #f1f1f1;
  padding-top: 10px;
}

.tfl-menu-options .tfl-tabs-wrap {
  padding: 0;
}

.tfl-tab {
  display: inline-block;
  list-style: none;
  margin: 0px 1px;
  padding: 10px 15px;
  line-height: 18px;
  cursor: pointer;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  border: 1px solid transparent;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-width: 0;
  white-space: nowrap;
  transition: all .4s ease-in-out 0s;
}

.tfl-menu-options .tfl-tab {
  padding: 15px;
  border-right: 1px solid #ddd;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  margin-top: 10px;
  background: #f9f9f9;

  &:hover {
    background: #fff;
  }
}

.tfl-menu-options .tfl-tab:first-child {
  margin: 0 0 0 150px;

  .rtl & {
    margin: 0 150px 0 0;
  }

  @include respond-to-max(600) {
    margin: 0;
  }
}

.tfl-tab:hover {
  background-color: #f9f9f9;
  color: #666;
}

.tfl-tab:first-child {
  margin-left: 12px;
}

.tfl-tab.selected {
  background: #ffffff;
  color: #666;
  position: relative;
  top: 1px;
  z-index: 1;
}

.tfl-clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/* ====================== Inputs ====================== */

textarea.tfl-textarea,
input[type=text].tfl-text {
  background: #f1f1f1;
  -webkit-box-shadow: none;
  box-shadow: none;
  padding: 3px 5px !important;
}

input[type=text].tfl-text {
  height: 28px;
  line-height: 26px;
}

.tfl-text.number {
  width: 65px;
  background: #f1f1f1;
  box-shadow: none;
}

.tfl-number-label {
  position: relative;
  display: inline-block;
  margin: 0 10px 0 0;
  width: auto;
  color: #888;
}

input[type=radio].tfl-radio {
  opacity: 1;
  filter: alpha(opacity=100);
  background: #ffffff;
  margin-left: 15px;
  padding: 0 !important;
  color: #34495e;
  border: 2px solid #34495e;
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  min-width: 0px !important;
}

input[type=radio].first-input {
  margin-left: 0;
}

input[type=radio].tfl-radio:checked:before {
  background-color: #2c3e50;
  margin: 2px;
  width: 6px;
  height: 6px;
}

/* ======================== Checkbox ======================= */

.tfl-toggle {
  position: relative;
  display: inline-block;
  margin: 0 0 6px 0;
}

input[type=checkbox].tfl-checkbox {
  position: absolute;
  display: block;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0 !important;
}

.tfl-checkbox + label {
  display: inline-block;
  position: relative;
  margin: 0 4px 0 0;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input.tfl-checkbox + label {
  padding: 2px;
  width: 43px;
  height: 20px;
  background-color: #2c3e50;
  -webkit-border-radius: 60px;
  -moz-border-radius: 60px;
  -ms-border-radius: 60px;
  -o-border-radius: 60px;
  border-radius: 60px;
  -webkit-transition: background 0.2s;
  -moz-transition: background 0.2s;
  -o-transition: background 0.2s;
  transition: background 0.2s;
}

input.tfl-checkbox + label:before, input.tfl-checkbox + label:after {
  display: block;
  position: absolute;
  content: "";
}

input.tfl-checkbox + label:before {
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  background-color: #ffffff;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  border-radius: 10px;
  -webkit-transition: background 0.2s;
  -moz-transition: background 0.2s;
  -o-transition: background 0.2s;
  transition: background 0.2s;
}

input.tfl-checkbox + label:after {
  top: 3px;
  left: 3px;
  bottom: 3px;
  width: 18px;
  background-color: #2c3e50;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  border-radius: 10px;
  -webkit-transition: margin 0.2s, background 0.2s;
  -moz-transition: margin 0.2s, background 0.2s;
  -o-transition: margin 0.2s, background 0.2s;
  transition: margin 0.2s, background 0.2s;
}

input.tfl-checkbox:checked + label {
  background-color: #4ECDC4;
}

input.tfl-checkbox:checked + label:after {
  margin-left: 23px;
  background-color: #4ECDC4;
}

/* =========================== Buttons ==================== */

.tfl-button {
  border: none;
  text-shadow: none;
  border: none;
  outline: none;
  box-shadow: none;
  line-height: 26px;
  height: auto;
  margin: 0;
  padding: 0 10px;
  color: #fff;
  background: #f94213;
  -webkit-border-radius: 0;
  border-radius: 0;
  vertical-align: top;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.tfl-button:hover {
  opacity: 0.8;
}

/* ========================== Info box ====================== */

.tfl-infobox {
  position: relative;
  display: block;
  background: #f1f1f1;
  margin: 30px;
  padding: 15px;
  line-height: 20px;
  font-style: italic;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

.tfl-infobox .dashicons {
  float: left;
  margin-right: 10px;
  -webkit-animation: flash linear 1s infinite;
  animation: flash linear 1s infinite;
}

.tfl-infobox-wrap {
  margin-left: 40px 30px 30px 30px;
}

.tfl-infobox h3 {
  font-size: 14px;
  padding: 0 !important;
  margin: 0;
  line-height: 1.4;
}

@-webkit-keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: .1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: .1;
  }
  100% {
    opacity: 1;
  }
}

/* ========= Misc ============= */

.wp-picker-container {
  box-sizing: content-box;
}

.tfl-elements-deactivate {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-content: space-between;

  .tfl-row {
    width: 280px;
    margin-bottom: 15px;
  }
}

.wrap.tfl-license-wrap form.tfl-license-box {
  max-width: 700px;
  background: white;
  margin: 20px 0;
  padding: 20px 30px;
}