/**
 *
 * ---------------------------------------------------------
 * CODESTAR FRAMEWORK RTL CSS MAP
 * ---------------------------------------------------------
 *
 * 01. Base
 *     01. 01. Header
 *     01. 02. Header Buttons
 *     01. 03. Navigation
 *     01. 04. Content
 *     01. 05. Section
 *     01. 06. Show All Settings
 *     01. 07. Search Input
 *     01. 08. Copyright
 *     01. 09. Metabox
 * 02. Fields
 *     02. 01. Field: typography
 *     02. 02. Field: checkbox, radio
 *     02. 03. Field: switcher
 *     02. 04. Field: upload
 *     02. 05. Field: group
 *     02. 06. Field: repeater
 *     02. 07. Field: help
 *     02. 08. Field: icon
 *     02. 09. Field: gallery
 *     02. 10. Field: sorter
 *     02. 11. Field: tabbed
 *     02. 12. Field: media
 *     02. 13. Field: notice
 *     02. 14. Field: border, spacing, dimensions
 *     02. 15. Field: background
 *     02. 16. Field: spinner
 *     02. 17. Field: slider
 *     02. 18. Field: button_set
 *     02. 19. Field: link_color
 *     02. 20. Field: color_group
 *     02. 21. Field: palette
 *     02. 22. Field: accordion
 *     02. 23. Field: date
 *     02. 24. Field: map
 *     02. 25. Field: sortable
 *     02. 26. Field: number
 * 03. Taxonomy
 * 04. Profile
 * 05. Nav Menu
 * 06. Modal
 * 07. Customizer
 * 08. Responsive
 * 09. Others
 *
 * ---------------------------------------------------------
 *
 */

/**
 * 01. Base
 */
.wdpop_core-options{
  margin-left: 20px;
  margin-right: 0;
}

/**
 * 01. 01. Header
 */
.wdpop_core-header{
  h1{
    float: right;
  }

  fieldset{
    float: left;
  }
}

/**
 * 01. 02. Header Buttons
 */
.wdpop_core-buttons{
  float: left;
  direction: ltr;
}

.wdpop_core-header-left{
  float: right;
}

.wdpop_core-header-right{
  float: left;
}

/**
 * 01. 03. Navigation
 */
.wdpop_core-nav{
  float: right;

  ul{
    clear: right;

    li{
      .wdpop_core-active:after{
        right: auto;
        left: 0;
        border-left-color: #fff;
        border-right-color: transparent;
      }

      .wdpop_core-arrow:after{
        content: "\f053";
        right: auto;
        left: 10px;
      }

      &.wdpop_core-tab-expanded .wdpop_core-arrow:after{
        transform: rotate(-90deg);
      }
    }

    ul{
      li{
        a{
          padding-right: 25px;
          padding-left: 15px;
        }
      }

      &:before{
        left: auto;
        right: 15px;
      }
    }
  }

  .wdpop_core-tab-icon{
    margin-left: 5px;
    margin-right: 0;
  }
}

.wdpop_core-nav-background{
  left: auto;
  right: 0;
}

/**
 * 01. 04. Content
 */
.wdpop_core-content{
  margin-left: 0;
  margin-right: 225px;
}

/**
 * 01. 05. Section
 */
.wdpop_core-sections{
  float: right;
}

/**
 * 01. 06. Show all options
 */
.wdpop_core-show-all .wdpop_core-content{
  margin-right: 0;
  overflow: hidden;
}

.wdpop_core-expand-all{
  float: right;
  right: auto;
  left: 40px;
  margin-right: 0;
  margin-left: 4px;
}

/**
 * 01. 07. Search Input
 */
.wdpop_core-search{
  float: right;

  input{
    margin: 0 0 0 5px;
  }
}

/**
 * 01. 08. Copyright
 */
.wdpop_core-copyright{
  float: right;
}

/**
 * 01. 09. Metabox
 */
.wdpop_core-metabox{
  margin: -6px -12px -12px -12px;

  .wdpop_core-section-title{
    padding: 20px;
  }
}

.wdpop_core-section-title{

  .wdpop_core-section-icon{
    margin-left: 5px;
    margin-right: 0;
  }
}

/**
 * 02. Fields
 */
.wdpop_core-field{

  .wdpop_core-title{
    float: right;
  }

  .wdpop_core-fieldset{
    float: left;
  }
}

.wdpop_core-pseudo-field{
  padding: 0 0 0 5px !important;
}

/**
 * 02. 01. Field: typography
 */
.wdpop_core-field-typography{

  select{
    margin: 0;
    width: 100%;
  }

  .wdpop_core--blocks-inputs{
    .wdpop_core--blocks{
      flex-direction: row-reverse;
    }
  }

  .wdpop_core--unit{
    left: 4px;
    right: auto;
  }
}

/**
 * 02. 02. Field: checkbox, radio
 */
.wdpop_core-field-checkbox,
.wdpop_core-field-radio{

  ul ul li{
    margin-left: 0;
    margin-right: 8px;

    &:first-child{
      margin-right: 0;
    }
  }

  .wdpop_core--inline-list li{
    margin-right: 0;
    margin-left: 15px;
  }

  .wdpop_core--text{
    margin-left: 0;
    margin-right: 5px;
  }
}

/**
 * 02. 03. Field: switcher
 */
.wdpop_core-field-switcher{

  .wdpop_core--switcher{
    float: right;
  }

  .wdpop_core--label{
    float: right;
    margin-left: 0;
    margin-right: 5px;
  }
}

/**
 * 02. 04. Field: upload
 */
.wdpop_core-field-upload{

  .wdpop_core--remove,
  .wdpop_core--button{
    margin-left: 0;
    margin-right: 5px;
  }
}

/**
 * 02. 05. Field: group
 */
.wdpop_core-field-group{

  .wdpop_core-cloneable-title{
    padding: 15px 10px 15px 65px;
  }

  .wdpop_core-cloneable-helper{
    right: auto;
    left: 10px;
  }
}

/**
 * 02. 06. Field: repeater
 */
.wdpop_core-field-repeater{

  .wdpop_core-repeater-helper{
    border-left: 0;
    border-right: 1px solid #eee;
  }
}

/**
 * 02. 07. Field: help
 */
.wdpop_core-help{
  right: auto;
  left: 5px;
}

/**
 * 02. 08. Field: icon
 */
.wdpop_core-field-icon{

  .button{
    margin-right: 0;
    margin-left: 5px;
  }

  .wdpop_core-icon-preview i{
    margin-right: 0;
    margin-left: 5px;
  }
}

/**
 * 02. 09. Field: gallery
 */
.wdpop_core-field-gallery{

  ul li{
    margin-right: 0;
    margin-left: 5px;
  }

  .button{
    margin-right: 0;
    margin-left: 5px;
  }
}

/**
 * 02. 11. Field: tabbed
 */
.wdpop_core-field-tabbed{

  .wdpop_core-tabbed-nav{

    .wdpop_core--icon{
      padding-right: 0;
      padding-left: 5px;
    }

    a{
      margin-right: 0;
      margin-left: 5px;
    }
  }
}

/**
 * 02. 12. Field: media
 */
.wdpop_core-field-media{

  .button{
    margin-left: 0;
    margin-right: 7px;
  }

  .hidden + .button{
    margin-right: 0;
  }
}

/**
 * 02. 13. Field: notice
 */
.wdpop_core-notice{
  border-left: none;
  border-right-style: solid;
  border-right-width: 4px;
}

/**
 * 02. 14. Field: border, spacing, dimensions
 */
.wdpop_core-field-dimensions,
.wdpop_core-field-spacing,
.wdpop_core-field-border{

  .wdpop_core--input,
  .wdpop_core-fieldset{
    direction: ltr;
  }

  .wdpop_core--inputs,
  .wdpop_core--color{
    float: right;
  }

  .wdpop_core--color{
    margin-right: 4px;
    direction: rtl;
  }
}

/**
 * 02. 15. Field: background
 */
.wdpop_core-field-background{

  .wdpop_core--block{
    float: right;
  }

  .wdpop_core--select,
  .wdpop_core--media{
    padding-right: 0;
  }

  .wdpop_core--title{
    margin-right: 0;
    margin-left: 5px;
  }
}

/**
 * 02. 16. Field: spinner
 */
.wdpop_core-field-spinner{

  .wdpop_core--spin{
    float: right;
    direction: ltr;
  }
}

/**
 * 02. 17. Field: slider
 */
.wdpop_core-field-slider{

  .wdpop_core-slider-ui{
    direction: ltr;
    margin-right: 0;
    margin-left: 15px;
  }

  .wdpop_core--input{
    direction: ltr;
  }
}

/**
 * 02. 18. Field: button_set
 */
.wdpop_core-field-button_set{

  .wdpop_core--button-group{
    float: right;
  }
}

/**
 * 02. 19. Field: link_color
 */
.wdpop_core-field-link_color{

  .wdpop_core--left{
    float: right;
    margin-right: 0;
    margin-left: 10px;
  }
}

/**
 * 02. 20. Field: color_group
 */
.wdpop_core-field-color_group{

  .wdpop_core--left{
    float: right;
    margin-right: 0;
    margin-left: 10px;
  }
}

/**
 * 02. 21. Field: palette
 */
.wdpop_core-field-palette{

  .wdpop_core--palette{
    margin-right: 0;
    margin-left: 10px;
  }
}

/**
 * 02. 22. Field: accordion
 */
.wdpop_core-field-accordion{

  .wdpop_core--icon{
    margin-right: 0;
    margin-left: 2px;
  }
}

/**
 * 02. 23. Field: date
 */
.wdpop_core-field-date{

  .wdpop_core--to {
    margin-left: 0;
    margin-right: 7px;
  }
}

/**
 * 02. 24. Field: map
 */
.wdpop_core-field-map{

  .wdpop_core--map-input:last-child {
    padding-left: 0;
    padding-right: 10px;
  }
}

/**
 * 02. 25. Field: sortable
 */
.wdpop_core-field-sortable{

  .wdpop_core-sortable-helper{
    border-left: none;
    border-right: 1px solid #eee;
  }
}

/**
 * 02. 26. Field: number
 */
.wdpop_core-field-number{

  .wdpop_core--wrap{
    float: right;
  }

  .wdpop_core--unit{
    left: 4px;
    right: auto;
  }
}

/**
 * 03. Taxonomy
 */
.wdpop_core-taxonomy-add-fields{
  margin-right: 0;
  margin-left: 30px;

  .wdpop_core-field > .wdpop_core-fieldset > .wdpop_core-help{
    left: -5px;
    right: auto;
  }
}

.wdpop_core-taxonomy-edit-fields{
  margin-right: 0;
  margin-left: 35px;

  .wdpop_core-field > .wdpop_core-fieldset > .wdpop_core-help{
    right: auto;
    left: -5px;
  }
}

/**
 * 04. Profile
 */
.wdpop_core-profile-options{

  > h2 > .fa{
    padding-right: 0;
    padding-left: 7px;
  }

  > .wdpop_core-field{

    > .wdpop_core-fieldset{

      > .wdpop_core-help{
        left: -5px;
        right: auto;
      }
    }
  }
}

/**
 * 05. Nav Menu
 */
.wdpop_core-nav-menu-options{

  > .wdpop_core-fields{
    margin-left: 0;
    margin-right: -10px;
  }
}

.wdpop_core-nav-menu-title {
  padding-left: 14px;
  padding-right: 12px;
}

.wdpop_core-nav-menu-icon{
  margin-right: 0;
  margin-left: 5px;
}

/**
 * 06. Modal
 */
.wdpop_core-modal-content{

  .wdpop_core-field{
    padding: 15px 15px 15px 30px;
  }
}

.wdpop_core-modal-title{
  padding: 0 16px 0 36px;
}

.wdpop_core-modal-close{
  right: auto;
  left: 0;
}

/**
 * 07. Customizer
 */
.control-section{

  .wdpop_core-field{

    .wdpop_core-fieldset{
      margin-right: 0;
    }
  }
}

/**
 * 08. Responsive
 */
@media only screen and (max-width:1200px){
  .wdpop_core-metabox .wdpop_core-field .wdpop_core-fieldset{
    margin-left: 0;
  }
}

@media only screen and (max-width:782px){
  .wdpop_core .wdpop_core-fieldset,
  .wdpop_core .wdpop_core-content{
    margin-right: 0;
  }
}

/**
 * 09. Others
 */
.wdpop_core-field{

  .wdpop_core--transparent-slider{
    margin-left: 0;
    margin-right: 2px;

    .ui-slider-handle{
      margin: 0 -11px;
    }
  }

  .wdpop_core--transparent-offset{
    background-position: center right;
  }

  .wdpop_core--transparent-text{
    right: auto;
    left: 10px;
  }
}
