HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: agritoday (1002)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/agritoday/www/wp-content/plugins/td-composer/assets/less_front/menu_admin_bar.less
@import "variables.less";
@import "mixin.less";

// edit template wp-admin bar button
#wpadminbar {
  [id*='wp-admin-bar-tdb_template'],
  #wp-admin-bar-tdc_page_mobile_template,
  #wp-admin-bar-tdc_edit,
  #wp-admin-bar-td_analyze_css_menu {
    > a {
      height: 31px !important;
      padding-top: 1px !important;
      padding-left: 12px !important;
      padding-right: 12px !important;
      font-size: 12px;
      color: #fff !important;

      .td-mobile-title {
        display: none;
        font-size: 12px !important;
      }
    }
  }
}

#wpadminbar #wp-admin-bar-tdb_template_builder,
#wpadminbar #wp-admin-bar-tdc_edit {
  > a {
    background-color: #1a9a75 !important;

    @media (max-width: 1500px) {
      font-size: 0;

      .td-mobile-title {
        display: flex;
        align-items: center;

        svg {
          width: 17px;
          height: auto;
          margin-right: 8px;
          fill: #fff;
        }
      }
    }

    &:hover {
      background-color: #25bb90 !important;
    }
  }
}

#wpadminbar #wp-admin-bar-tdb_template_load > a {
  background-color: #29595d !important;

  @media (max-width: 1500px) {
    font-size: 0;

    .td-mobile-title {
      display: inline;
    }
  }

  &:hover {
    background-color: #306c71 !important;
  }
}

#wpadminbar [id*='wp-admin-bar-tdb_template'],
#wpadminbar [id='wp-admin-bar-tdc_page_mobile_template'] {
  .ab-item {
    &:before,
    &:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 0;
      opacity: 0;
    }

    &:before {
      width: calc(~'100% - 24px');
      margin: 0 auto;
      height: 1px;
      background-color: rgba(0, 0, 0, 0.08);
    }

    &:after {
      display: table;
      top: 50%;
      .transform(translateY(-50%));
      margin: auto;
      height: 15px;
      width: 100%;
      background: rgba(255, 255, 255, 0.7) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.0' width='15px' height='15px' viewBox='0 0 128 128' xml:space='preserve'><rect x='0' y='0' width='100%' height='100%' fill='%23FFFFFF' /><g><path d='M75.4 126.63a11.43 11.43 0 0 1-2.1-22.65 40.9 40.9 0 0 0 30.5-30.6 11.4 11.4 0 1 1 22.27 4.87h.02a63.77 63.77 0 0 1-47.8 48.05v-.02a11.38 11.38 0 0 1-2.93.37z' fill='%23000000' fill-opacity='1'/><animateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='800ms' repeatCount='indefinite'></animateTransform></g></svg>") no-repeat 50% 50%;
      transition: opacity 2s ease;
    }
  }

  .tdb-templates-open:before {
    opacity: 1;
  }

  .tdb-templates-loading:after {
    opacity: 1;
  }
}

#wpadminbar #wp-admin-bar-tdc_page_mobile_template {
  > a {
    .td-mob-page-before {
      display: inline-block;
      background-color: #000;
      font-size: 10px;
      line-height: 1;
      //margin-right: 10px;
      padding: 2px 6px 3px;
      color: #fff;
      border-radius: 100px;
    }

    @media (max-width: 1500px) {
      font-size: 0;

      .td-mob-page-before {
        display: none;
      }

      .td-mobile-title {
        display: inline;
      }
    }
  }

  .tdb-template-el-mobile-list {
    position: absolute;
    min-width: 248px;
    //max-width: 233px !important;
    width: 100%;
    padding: 12px;
    background-color: #fff;
    color: #000;
    .box-shadow(0px 0px 20px 1px rgba(0, 0, 0, 0.15));
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    z-index: -1;
    box-sizing: border-box;

    &.tdb-mobile-templates-align-right {
      right: 0;
    }

    &.loading:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 0;
      display: table;
      top: 100%;
      .transform(translateY(-50%));
      margin: auto;
      height: 100%;
      width: 100%;
      background: rgba(255, 255, 255, 0.7) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.0' width='15px' height='15px' viewBox='0 0 128 128' xml:space='preserve'><rect x='0' y='0' width='100%' height='100%' fill='%23FFFFFF' /><g><path d='M75.4 126.63a11.43 11.43 0 0 1-2.1-22.65 40.9 40.9 0 0 0 30.5-30.6 11.4 11.4 0 1 1 22.27 4.87h.02a63.77 63.77 0 0 1-47.8 48.05v-.02a11.38 11.38 0 0 1-2.93.37z' fill='%23000000' fill-opacity='1'/><animateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='800ms' repeatCount='indefinite'></animateTransform></g></svg>") no-repeat 50% 50%;
      transition: opacity 2s ease;
    }

    &:empty {
      display: none !important;
    }

  }

  .tdb-template-el-mobile-list-no-el {
    font-size: 12px;
    line-height: 1.4;
  }

  .tdb-template-el-mobile-list-el {
    display: flex;
    align-items: center;
    margin-bottom: 8px;

    &:last-child {
      margin-bottom: 0;
    }

    .tdb-template-el-mobile-list-title {
      padding-bottom: 3px;
      top: 1px;
      position: relative;
      cursor: pointer;
      font-size: 12px;
      line-height: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      &:hover {
        text-decoration: underline;
      }
    }

    &.tdb-current {
      .tdb-template-el-mobile-list-title {
        pointer-events: none;

        &,
        &:hover {
          color: #1a9a75;
        }
      }
    }

    &:hover {

      .tdb-template-el-mobile-list-edit {
        display: block;
      }

      .tdb-template-el-mobile-list-delete {
        display: block;
      }

    }

    .tdb-template-el-mobile-list-edit,
    .tdb-template-el-mobile-list-delete {
      position: relative;
      top: 0;
      right: -7px;
      display: none;
      width: 9px;
      height: 9px;
      padding: 4px;
      background-repeat: no-repeat;
      background-position: center;
      line-height: 1;
      background-color: #e9e9e8;
      margin: -4px 0 -4px 2px;
      border-radius: 4px;
    }

    .tdb-template-el-mobile-list-edit {
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 15 15'><g><path d='M7.731,4.986L3.263,9.455,3.009,11.486a0.477,0.477,0,0,0,.527.527L5.6,11.759l4.469-4.469ZM12.2,3.833a0.943,0.943,0,0,1,0,1.328L11.085,6.275,8.747,3.97,9.861,2.857a0.943,0.943,0,0,1,1.328,0Z' fill='%23777'/></g></svg>");

      &:hover {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 15 15'><g><path d='M7.731,4.986L3.263,9.455,3.009,11.486a0.477,0.477,0,0,0,.527.527L5.6,11.759l4.469-4.469ZM12.2,3.833a0.943,0.943,0,0,1,0,1.328L11.085,6.275,8.747,3.97,9.861,2.857a0.943,0.943,0,0,1,1.328,0Z' fill='%231a9a75'/></g></svg>");
      }

    }

    .tdb-template-el-mobile-list-delete {
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M3.989,3.74a0.233,0.233,0,0,0,.234.234h7.567a0.233,0.233,0,0,0,.234-0.234V3.47A0.467,0.467,0,0,0,11.556,3H9.76L9.585,2.307a0.439,0.439,0,0,0-.176-0.186,0.5,0.5,0,0,0-.254-0.068H6.928a0.5,0.5,0,0,0-.254.068,0.439,0.439,0,0,0-.176.186L6.323,3H4.458a0.467,0.467,0,0,0-.469.469V3.74Zm7.783,1.528A0.259,0.259,0,0,0,11.7,5.092a0.212,0.212,0,0,0-.166-0.078H4.546a0.213,0.213,0,0,0-.166.078,0.26,0.26,0,0,0-.068.176L5.07,11.106a0.887,0.887,0,0,0,.293.625,0.916,0.916,0,0,0,.645.254h4a0.916,0.916,0,0,0,.645-0.254,0.887,0.887,0,0,0,.293-0.625Z' fill='%23777'/></g></svg>");

      &:hover {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M3.989,3.74a0.233,0.233,0,0,0,.234.234h7.567a0.233,0.233,0,0,0,.234-0.234V3.47A0.467,0.467,0,0,0,11.556,3H9.76L9.585,2.307a0.439,0.439,0,0,0-.176-0.186,0.5,0.5,0,0,0-.254-0.068H6.928a0.5,0.5,0,0,0-.254.068,0.439,0.439,0,0,0-.176.186L6.323,3H4.458a0.467,0.467,0,0,0-.469.469V3.74Zm7.783,1.528A0.259,0.259,0,0,0,11.7,5.092a0.212,0.212,0,0,0-.166-0.078H4.546a0.213,0.213,0,0,0-.166.078,0.26,0.26,0,0,0-.068.176L5.07,11.106a0.887,0.887,0,0,0,.293.625,0.916,0.916,0,0,0,.645.254h4a0.916,0.916,0,0,0,.645-0.254,0.887,0.887,0,0,0,.293-0.625Z' fill='%231a9a75'/></g></svg>");
      }

    }

  }
}

#wpadminbar #wp-admin-bar-td_analyze_css_menu {
  > a {
    position: relative;

    &:before,
    &:after {
      content: '';
    }

    &:before {
      top: 50%;
      transform: translateY(-50%);
      margin-top: -1px;
      margin-right: 10px;
      width: 10px;
      height: 10px;
      background-color: #b1b1b1;
      border-radius: 100px;
      padding: 0;
    }

    &:after {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 0;
      width: calc(100% - 24px);
      margin: 0 auto;
      height: 1px;
      background-color: rgba(0, 0, 0, 0.08);
      opacity: 0;
    }

    @media (max-width: 1500px) {
      font-size: 0;

      &:before {
        margin-right: 8px;
      }

      .td-mobile-title {
        display: inline;
      }
    }
  }

  &.hover {
    > a:after {
      opacity: 1;
    }
  }

  &.tda-has-essential-css {
    > a:before {
      background-color: darkgreen;
    }
  }
  &:not(.tda-has-essential-css) {
    #wp-admin-bar-td_clear_analyze_css {
      opacity: 0.5;
      pointer-events: none;
    }
}

  .ab-sub-wrapper {
    padding: 12px;
    background-color: #fff;
    -webkit-box-shadow: 0 0 20px 1px rgba(0, 0, 0, .15);
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, .15);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    box-sizing: border-box;
    z-index: -1;

     ul {
       padding: 0;
     }

    li {
      margin-top: 11px;

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

      a {
        padding: 0 !important;
        height: auto !important;
        font-size: 12px;
        line-height: 1 !important;
        color: #000 !important;

        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}

#wpadminbar [id*='wp-admin-bar-tdb_template'] {
  .tdb-template-el-global-checked {
    display: inline-block;
    background-color: #1a9a75;
    font-size: 10px;
    line-height: 1;
    padding: 2px 6px 3px;
    color: #fff;
    border-radius: 100px;
  }

  @media (max-width: 1500px) {
    > a {
      font-size: 0;

      > .tdb-template-el-global-checked {
        display: none !important;
      }

      .td-mobile-title {
        display: inline;
      }
    }
  }

  .tdb-template-el-wrap {
    visibility: hidden;
  }

  .tdb-template-el-icon {
    position: relative;
    padding: 0 12px;

    &:hover {
      .tdb-template-el-options {
        visibility: visible;
      }
    }

    &:before {
      content: '';
      position: relative;
      display: block;
      width: 15px;
      height: 15px;
      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M2.5,6a1.447,1.447,0,0,1,1.062.438,1.509,1.509,0,0,1,0,2.125A1.447,1.447,0,0,1,2.5,9a1.446,1.446,0,0,1-1.062-.437,1.509,1.509,0,0,1,0-2.125A1.446,1.446,0,0,1,2.5,6Zm5,0A1.494,1.494,0,0,1,9,7.5,1.494,1.494,0,0,1,7.5,9,1.494,1.494,0,0,1,6,7.5,1.494,1.494,0,0,1,7.5,6ZM12.5,6A1.494,1.494,0,0,1,14,7.5a1.5,1.5,0,1,1-2.562-1.062A1.447,1.447,0,0,1,12.5,6Z' fill='%23777'/></g></svg>");
    }
  }

  .tdb-template-el-options {
    visibility: hidden;
    position: absolute;
    display: flex;
    flex-direction: column;
    bottom: calc(~'100% + 3px');
    left: 50%;
    transform: translateX(-50%);
    //height: 100%;
    margin: auto;
    background-color: #fff;
    padding: 6px 12px 6px 6px !important;
    .box-shadow(0 2px 8px 0 rgba(0, 0, 0, 0.12));

    &:before {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 0;
      right: 0;
      margin: auto;
      width: 0;
      height: 0;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-top: 6px solid #fff;
    }
    &:after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 100%;
      height: 5px;
    }

    > div {
      display: inline-block;
      height: 18px;
      margin: 0 2px;
      cursor: pointer;
      font-size: 10px;
      line-height: 16px;
      padding-left: 20px;
      background-position-x: left !important;

      &:hover {
        color: #1a9a75;
      }
    }
  }
  .tdb-template-el-edit {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M7.731,4.986L3.263,9.455,3.009,11.486a0.477,0.477,0,0,0,.527.527L5.6,11.759l4.469-4.469ZM12.2,3.833a0.943,0.943,0,0,1,0,1.328L11.085,6.275,8.747,3.97,9.861,2.857a0.943,0.943,0,0,1,1.328,0Z' fill='%23777'/></g></svg>") no-repeat 50% 50%;
    &:hover {
      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M7.731,4.986L3.263,9.455,3.009,11.486a0.477,0.477,0,0,0,.527.527L5.6,11.759l4.469-4.469ZM12.2,3.833a0.943,0.943,0,0,1,0,1.328L11.085,6.275,8.747,3.97,9.861,2.857a0.943,0.943,0,0,1,1.328,0Z' fill='%231a9a75'/></g></svg>") no-repeat 50% 50%;
    }
  }
  .tdb-template-el-duplicate {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M11.055,3.02H5.945a0.934,0.934,0,0,0-.938.938V9.042a0.934,0.934,0,0,0,.938.937h5.11a0.934,0.934,0,0,0,.938-0.937V3.957A0.934,0.934,0,0,0,11.055,3.02ZM5.563,11h4.464v0.05a0.934,0.934,0,0,1-.938.938H3.939A0.934,0.934,0,0,1,3,11.054V5.941A0.934,0.934,0,0,1,3.939,5H4V9.441A1.567,1.567,0,0,0,5.563,11Z' fill='%23777'/></g></svg>") no-repeat 50% 50%;
    &:hover {
      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M11.055,3.02H5.945a0.934,0.934,0,0,0-.938.938V9.042a0.934,0.934,0,0,0,.938.937h5.11a0.934,0.934,0,0,0,.938-0.937V3.957A0.934,0.934,0,0,0,11.055,3.02ZM5.563,11h4.464v0.05a0.934,0.934,0,0,1-.938.938H3.939A0.934,0.934,0,0,1,3,11.054V5.941A0.934,0.934,0,0,1,3.939,5H4V9.441A1.567,1.567,0,0,0,5.563,11Z' fill='%231a9a75'/></g></svg>") no-repeat 50% 50%;
    }
  }
  .tdb-template-el-delete {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M3.989,3.74a0.233,0.233,0,0,0,.234.234h7.567a0.233,0.233,0,0,0,.234-0.234V3.47A0.467,0.467,0,0,0,11.556,3H9.76L9.585,2.307a0.439,0.439,0,0,0-.176-0.186,0.5,0.5,0,0,0-.254-0.068H6.928a0.5,0.5,0,0,0-.254.068,0.439,0.439,0,0,0-.176.186L6.323,3H4.458a0.467,0.467,0,0,0-.469.469V3.74Zm7.783,1.528A0.259,0.259,0,0,0,11.7,5.092a0.212,0.212,0,0,0-.166-0.078H4.546a0.213,0.213,0,0,0-.166.078,0.26,0.26,0,0,0-.068.176L5.07,11.106a0.887,0.887,0,0,0,.293.625,0.916,0.916,0,0,0,.645.254h4a0.916,0.916,0,0,0,.645-0.254,0.887,0.887,0,0,0,.293-0.625Z' fill='%23777'/></g></svg>") no-repeat 50% 50%;
    &:hover {
      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M3.989,3.74a0.233,0.233,0,0,0,.234.234h7.567a0.233,0.233,0,0,0,.234-0.234V3.47A0.467,0.467,0,0,0,11.556,3H9.76L9.585,2.307a0.439,0.439,0,0,0-.176-0.186,0.5,0.5,0,0,0-.254-0.068H6.928a0.5,0.5,0,0,0-.254.068,0.439,0.439,0,0,0-.176.186L6.323,3H4.458a0.467,0.467,0,0,0-.469.469V3.74Zm7.783,1.528A0.259,0.259,0,0,0,11.7,5.092a0.212,0.212,0,0,0-.166-0.078H4.546a0.213,0.213,0,0,0-.166.078,0.26,0.26,0,0,0-.068.176L5.07,11.106a0.887,0.887,0,0,0,.293.625,0.916,0.916,0,0,0,.645.254h4a0.916,0.916,0,0,0,.645-0.254,0.887,0.887,0,0,0,.293-0.625Z' fill='%231a9a75'/></g></svg>") no-repeat 50% 50%;
    }
  }


  .tdb-templates {
    position: absolute;
    min-width: 400px;
    max-width: 400px !important;
    //max-height: 250px !important;
    padding: 12px;
    background-color: #fff;
    color: #000;
    //overflow-y: auto;
    .box-shadow(0px 8px 15px 1px rgba(0, 0, 0, 0.15));
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    z-index: 1;

    &.tdb-templates-align-right {
      right: 0;
    }

    &:empty {
      display: none !important;
    }

    .tdb-template-el {
      display: flex;
      align-items: center;
      min-height: 17px;
      margin-bottom: 8px;

      &:hover {
        .tdb-template-el-wrap {
          visibility: visible;
        }
      }

      &:last-child {
        margin-bottom: 0;
      }

      .tdb-template-el-id {
        display: none;
      }

      .tdb-template-el-title {
        //flex: 1;
        padding-bottom: 3px;
        top: 1px;
        position: relative;
        max-width: 209px;
        cursor: pointer;
        font-size: 12px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        &:hover {
          //color: #999;
          text-decoration: underline;
        }
      }
      .tdb-template-el-title-input {
        font-size: 12px;
        line-height: 1;
        margin: -2px 0 -3px;
        border-width: 0 0 1px 0;
        border-style: dotted;
        border-color: #000;
      }
      &.tdb-current {
        .tdb-template-el-title {
          pointer-events: none;

          &,
          &:hover {
            color: #1a9a75;
          }

          .tdb-template-el-title-input {
            pointer-events: auto;
          }
        }
      }

      .tdb-template-el-global {
        position: relative;
        display: inline-block;
        width: 48px;
        text-align: center;
        margin-left: auto;
        line-height: 1;

        .tdb-template-el-global-checked {
          display: none;
        }

        // checkbox + radio
        .tdb-template-el-global-input {
          display: none;

          &[checked="checked"] {
            + label {
              display: none;
            }

            + label + .tdb-template-el-global-checked {
              display: inline-block;
            }
          }
        }

        label {
          display: inline-block;
          border: 1px solid #e3e3e3;
          width: 10px;
          height: 10px;
          cursor: pointer;
        }
      }

      .tdb-template-el-mobile-wrap {
        position: relative;
        width: 90px;
        margin-left: 14px !important;
        display: inline-block;
        text-align: center;
        line-height: 1;

        .tdb-template-el-mobile {
          line-height: 1;
          cursor: pointer;
        }

        .tdb-template-el-mobile-active {
          display: inline-block;
          background-color: #949494;
          font-size: 10px;
          line-height: 1;
          padding: 2px 6px 3px;
          color: #fff;
          border-radius: 100px;
        }

        &:hover {
          .tdb-template-el-mobile {
            display: none;
          }

          .tdb-template-el-mobile-btns {
            display: inline-block;
          }
        }
      }

      .tdb-template-el-mobile-btns {
        position: relative;
        display: none;
        line-height: 1;
        z-index: 100;

        &:before {
          display: none;
          content: '';
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          left: -10px;
          margin: auto;
          width: 0;
          height: 0;
          border-top: 6px solid transparent;
          border-bottom: 6px solid transparent;
          border-left: 6px solid #fff;
          z-index: 10;
        }

        &:after {
          display: none;
          content: '';
          position: absolute;
          top: 0;
          left: -10px;
          width: 10px;
          height: 100%;
        }

        &:hover {
          &:before,
          &:after,
          .tdb-template-el-mobile-list {
            display: block;
          }
        }

        .tdb-template-el-mobile-btn {
          position: relative;
          top: 1px;
          display: inline-block;
          margin-left: 3px;
          padding: 4px;
          background-color: #E9E9E8;
          border-radius: 4px;
          cursor: pointer;

          &:after {
            content: '';
            display: block;
            width: 8px;
            height: 8px;
            background-repeat: no-repeat;
            background-position: center;
          }

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

        .tdb-template-el-mobile-blank {
          &:after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M3,8V5H0V3H3V0H5V3H8V5H5V8Z' fill='%23777'/></svg>");
          }
          &:hover:after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M3,8V5H0V3H3V0H5V3H8V5H5V8Z' fill='%231a9a75'/></svg>");
          }
        }
        .tdb-template-el-mobile-import {
          &:after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='7.969' viewBox='0 0 8 7.969'><path d='M8,7.969H0v-2H3v1H5v-1H8v2H8ZM1,2.984H3V0H4.953l.063,2.984H6.969L4.016,5.954Z' fill='%23777'/></svg>");
          }
          &:hover:after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='7.969' viewBox='0 0 8 7.969'><path d='M8,7.969H0v-2H3v1H5v-1H8v2H8ZM1,2.984H3V0H4.953l.063,2.984H6.969L4.016,5.954Z' fill='%231a9a75'/></svg>") ;
          }
        }
      }

      .tdb-template-el-mobile-list {
        position: absolute;
        top: -7px;
        right: calc(~'100% + 10px');
        width: 180px;
        max-height: 120px;
        height: auto;
        margin: 0;
        background-color: #fff;
        .box-shadow(0 2px 8px 0 rgba(0, 0, 0, 0.12));
        display: none;
        text-align: left;

        &.loading:after {
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          padding: 0;
          display: table;
          top: 100%;
          .transform(translateY(-50%));
          margin: auto;
          height: 100%;
          width: 100%;
          background: rgba(255, 255, 255, 0.7) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.0' width='15px' height='15px' viewBox='0 0 128 128' xml:space='preserve'><rect x='0' y='0' width='100%' height='100%' fill='%23FFFFFF' /><g><path d='M75.4 126.63a11.43 11.43 0 0 1-2.1-22.65 40.9 40.9 0 0 0 30.5-30.6 11.4 11.4 0 1 1 22.27 4.87h.02a63.77 63.77 0 0 1-47.8 48.05v-.02a11.38 11.38 0 0 1-2.93.37z' fill='%23000000' fill-opacity='1'/><animateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='800ms' repeatCount='indefinite'></animateTransform></g></svg>") no-repeat 50% 50%;
          transition: opacity 2s ease;
        }

      }

      .tdb-template-el-mobile-list-inner {
        overflow-y: auto;
        max-height: 100px;
        padding: 10px 14px;
      }

      .tdb-template-el-mobile-list-el {
        position: relative;
        display: flex;
        align-items: center;
        margin-bottom: 6px;
        cursor: pointer;

        &:last-child {
          margin-bottom: 0;
        }
        &.tdb-current {
          cursor: default;

          &:before {
            content: '';
            display: block;
            position: absolute;
            top: 50%;
            .transform(translateY(-50%));
            left: -7px;
            margin-top: 1px;
            width: 0;
            height: 0;
            border-top: 3px solid transparent;
            border-bottom: 3px solid transparent;
            border-left: 4px solid #1a9a75;
          }

          .tdb-template-el-mobile-list-title {
            color: #1a9a75;
            pointer-events: none;
          }
        }
        &:hover {
          .tdb-template-el-mobile-list-edit,
          .tdb-template-el-mobile-list-delete {
            display: block;
          }
        }
      }

      .tdb-template-el-mobile-list-title {
        font-size: 10px;
        line-height: 1;
        color: #868686;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        &:hover {
          color: #000;
        }
      }

      .tdb-template-el-mobile-list-no-el {
        font-size: 10px;
        padding: 0 14px !important;
      }
      .tdb-template-el-mobile-list-separator {
        margin: 0 14px !important;
        width: auto !important;
      }

      .tdb-template-el-mobile-list-edit,
      .tdb-template-el-mobile-list-delete {
        position: relative;
        top: 0;
        right: -7px;
        display: none;
        width: 9px;
        height: 9px;
        padding: 4px;

        background-repeat: no-repeat;
        background-position: center;
        line-height: 1;
        background-color: #e9e9e8;
        margin: -4px 0 -4px 2px;
        border-radius: 4px;
      }

      .tdb-template-el-mobile-list-edit {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 15 15'><g><path d='M7.731,4.986L3.263,9.455,3.009,11.486a0.477,0.477,0,0,0,.527.527L5.6,11.759l4.469-4.469ZM12.2,3.833a0.943,0.943,0,0,1,0,1.328L11.085,6.275,8.747,3.97,9.861,2.857a0.943,0.943,0,0,1,1.328,0Z' fill='%23777'/></g></svg>");

        &:hover {
          background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 15 15'><g><path d='M7.731,4.986L3.263,9.455,3.009,11.486a0.477,0.477,0,0,0,.527.527L5.6,11.759l4.469-4.469ZM12.2,3.833a0.943,0.943,0,0,1,0,1.328L11.085,6.275,8.747,3.97,9.861,2.857a0.943,0.943,0,0,1,1.328,0Z' fill='%231a9a75'/></g></svg>");
        }

      }

      .tdb-template-el-mobile-list-delete {
        cursor: pointer;

        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M3.989,3.74a0.233,0.233,0,0,0,.234.234h7.567a0.233,0.233,0,0,0,.234-0.234V3.47A0.467,0.467,0,0,0,11.556,3H9.76L9.585,2.307a0.439,0.439,0,0,0-.176-0.186,0.5,0.5,0,0,0-.254-0.068H6.928a0.5,0.5,0,0,0-.254.068,0.439,0.439,0,0,0-.176.186L6.323,3H4.458a0.467,0.467,0,0,0-.469.469V3.74Zm7.783,1.528A0.259,0.259,0,0,0,11.7,5.092a0.212,0.212,0,0,0-.166-0.078H4.546a0.213,0.213,0,0,0-.166.078,0.26,0.26,0,0,0-.068.176L5.07,11.106a0.887,0.887,0,0,0,.293.625,0.916,0.916,0,0,0,.645.254h4a0.916,0.916,0,0,0,.645-0.254,0.887,0.887,0,0,0,.293-0.625Z' fill='%23777'/></g></svg>");

        &:hover {
          background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'><g><path d='M3.989,3.74a0.233,0.233,0,0,0,.234.234h7.567a0.233,0.233,0,0,0,.234-0.234V3.47A0.467,0.467,0,0,0,11.556,3H9.76L9.585,2.307a0.439,0.439,0,0,0-.176-0.186,0.5,0.5,0,0,0-.254-0.068H6.928a0.5,0.5,0,0,0-.254.068,0.439,0.439,0,0,0-.176.186L6.323,3H4.458a0.467,0.467,0,0,0-.469.469V3.74Zm7.783,1.528A0.259,0.259,0,0,0,11.7,5.092a0.212,0.212,0,0,0-.166-0.078H4.546a0.213,0.213,0,0,0-.166.078,0.26,0.26,0,0,0-.068.176L5.07,11.106a0.887,0.887,0,0,0,.293.625,0.916,0.916,0,0,0,.645.254h4a0.916,0.916,0,0,0,.645-0.254,0.887,0.887,0,0,0,.293-0.625Z' fill='%231a9a75'/></g></svg>");
        }

      }

    }

    &[data-type="search"],
    &[data-type="404"],
    &[data-type="attachment"],
    &[data-type="date"],
    &[data-type="woo_search_archive"],
    &[data-type="woo_shop_base"] {
      min-width: 352px;
      max-width: 352px !important;

      .tdb-template-el {
        .tdb-template-el-mobile-wrap {
          margin-left: auto !important;
        }
      }
    }
  }
}

#wpadminbar {
  #wp-admin-bar-tdb_template_single,
  #wp-admin-bar-tdb_template_category,
  #wp-admin-bar-tdb_template_404,
  #wp-admin-bar-tdb_template_date,
  #wp-admin-bar-tdb_template_search,
  #wp-admin-bar-tdb_template_attachment,
  #wp-admin-bar-tdb_template_author,
  #wp-admin-bar-tdb_template_tag,
  #wp-admin-bar-tdb_template_woo_product,
  #wp-admin-bar-tdb_template_woo_archive,
  #wp-admin-bar-tdb_template_woo_search_archive,
  #wp-admin-bar-tdb_template_woo_shop_base,
  #wp-admin-bar-tdb_template_cpt,
  #wp-admin-bar-tdb_template_cpt_tax,
  #wp-admin-bar-tdc_page_mobile_template,
  #wp-admin-bar-td_analyze_css_menu {
    > a {
      max-width: 250px !important;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      background-color: #fff !important;
      color: #000 !important;

      &:hover {
        color: #666 !important;
      }

      .tdb-template-el-global-checked {
        position: relative;
        display: inline-block;
        margin-right: 1px;
        top: -1px;
      }
    }
  }

  #wp-admin-bar-tdb_template_single,
  #wp-admin-bar-tdb_template_category,
  #wp-admin-bar-tdb_template_404,
  #wp-admin-bar-tdb_template_date,
  #wp-admin-bar-tdb_template_search,
  #wp-admin-bar-tdb_template_attachment,
  #wp-admin-bar-tdb_template_author,
  #wp-admin-bar-tdb_template_tag,
  #wp-admin-bar-tdb_template_woo_product,
  #wp-admin-bar-tdb_template_woo_archive,
  #wp-admin-bar-tdb_template_woo_search_archive,
  #wp-admin-bar-tdb_template_woo_shop_base,
  #wp-admin-bar-tdb_template_cpt,
  #wp-admin-bar-tdb_template_cpt_tax {
    z-index: 9999999;
  }

  #wp-admin-bar-tdc_create_mobile_page,
  .tdb-load-mobile-template {
    float: none !important;
    cursor: pointer;

    .ab-item {
      background-size: 8px;
      background-color: #E9E9E8;
      flex: 0 0 auto;
      margin-right: 8px;
      width: 16px;
      height: 16px;
      border-radius: 4px;
      padding: 0;
      background-repeat: no-repeat !important;
      background-position: center !important;
      cursor: pointer;
    }
  }

  #wp-admin-bar-tdc_create_mobile_page {
    .ab-item {
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M3,8V5H0V3H3V0H5V3H8V5H5V8Z' fill='%23777'/></svg>");
    }
    &:hover {
      .ab-item {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M3,8V5H0V3H3V0H5V3H8V5H5V8Z' fill='%231a9a75'/></svg>");
      }
    }
  }

  .tdb-load-mobile-template {
    .ab-item {
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='7.969' viewBox='0 0 8 7.969'><path d='M8,7.969H0v-2H3v1H5v-1H8v2H8ZM1,2.984H3V0H4.953l.063,2.984H6.969L4.016,5.954Z' fill='%23777'/></svg>");
    }
    &:hover {
      .ab-item {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='7.969' viewBox='0 0 8 7.969'><path d='M8,7.969H0v-2H3v1H5v-1H8v2H8ZM1,2.984H3V0H4.953l.063,2.984H6.969L4.016,5.954Z' fill='%231a9a75'/></svg>") ;
      }
    }
  }
}

.tdb-templates-header {
  display: flex;
  margin: 0 0 9px !important;

  .tdb-templates-header-item {
    line-height: 1 !important;
    text-align: center;

    span {
      display: block;
      background-color: #f7f7f7;
      padding: 2px 9px 3px !important;
      font-size: 10px !important;
      font-style: italic;
      text-align: center;
      line-height: 1 !important;
      color: #909090;
      border-radius: 3px !important;
    }

    &.tdb-templates-header-item-name {
      flex: 1;

      span {
        display: inline-block;
        margin: 0 auto;
      }
    }
    &.tdb-templates-header-item-global {
      width: 48px !important;
    }
    &.tdb-templates-header-item-mobile {
      margin-left: 14px !important;
      width: 90px !important;
    }
  }
}
.tdb-templates-desc {
  &,
  b {
    color: #000;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: center;
    margin-bottom: 2px !important;
  }

  b {
    font-weight: bold !important;
  }
}


#tdb-search {
  height: auto;
  min-height: 30px;
  border-radius: 4px;

  &:focus,
  &:active {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
}


// custom td thickbox css
.td-thickbox-loading {
  #TB_window {
    visibility: hidden;
  }
}

.td-thickbox {
  #TB_closeWindowButton:focus {
    .tb-close-icon {
      box-shadow: none !important;
      color: #666;
    }
  }

  #TB_closeWindowButton:hover {
    .tb-close-icon {
      color: #00a0d2;
    }
  }

  height: auto !important;

  box-shadow: rgba(0, 0, 0, 0.0980392) 0px 0px 6px 2px;


  #TB_title {
    font-size: 13px;
    height: 32px;

    border-bottom: 1px solid rgb(238, 238, 238);

  }

  #TB_ajaxContent {
    padding: 18px;
    height: auto !important;
  }

  .tb-close-icon {

    margin-right: 3px;
    margin-top: 3px;
    &:focus {
      outline:0 !important;
    }
    &::before {
      font-size:15px !important;
      line-height: 28px;

    }
  }
}

// Theme panel modal box general
.td-thickbox {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;

  // wrap
  &#TB_window {
    background: url('../images/bg-modal.jpg');
    background-size: cover;
    background-position: center;
    .box-shadow(0 0 20px rgba(0, 0, 0, 0.2));
    overflow: hidden;
    padding: 0;

    &:before {
      content: '';
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      z-index: -1;
      background: rgba(0, 69, 130, 0.8);
      background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(0, 69, 130, 0.8)), color-stop(100%, rgba(38, 134, 146, 0.8)));
      background: -webkit-linear-gradient(45deg, rgba(0, 69, 130, 0.8) 0%, rgba(38, 134, 146, 0.8) 100%);
      background: linear-gradient(45deg, rgba(0, 69, 130, 0.8) 0%, rgba(38, 134, 146, 0.8) 100%);
    }
  }

  // title
  #TB_title {
    border: none !important;
    background: none;
    height: auto;
    padding: 0 50px;
    -webkit-box-sizing: border-box;
    box-sizing:  border-box;
  }
  #TB_ajaxWindowTitle {
    padding: 0;
    line-height: 63px;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
    width: 100%;
  }


  // content
  #TB_ajaxContent {
    padding: 36px 15px 40px !important;
    height: auto !important;
    width: auto !important;
    color: #fff;
    text-align: center;

    div {
      font-size: 14px;
      padding: 0 36px;
      line-height: 23px;
    }

    // input in modal
    .td-confirm-info {
      input {
        background-color: transparent;
        border-width: 0 0 1px 0;
        min-height: 30px;
        height: auto;
        .box-shadow(none);
        border-color: rgba(255, 255, 255, 0.41);
        padding: 8px;
        margin-top: 10px;
        text-align: center;
        font-size: 16px;
        line-height: 32px;
        color: #fff;
        width: 100%;
        border-radius: 4px;

        &::placeholder {
          color: rgba(255, 255, 255, 0.38);
        }
      }
      label {
        display: block;
      }
      .info {
        margin-top: 10px;
        line-height: 19px;
      }

      select {
        margin-top: 10px;
      }

      .tdb-form-check {
        margin-top: 15px;
        line-height: 1;

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

          + label {
            display: inline-block;
            margin-bottom: 0;
            cursor: pointer;

            .tdb-check {
              position: relative;
              display: inline-block;
              width: 16px;
              height: 16px;
              background-color: #fff;
              cursor: pointer;
              vertical-align: middle;
              border-radius: 3px;
              transition: all .3s ease-in-out;
              box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);

              &:after {
                content: '\e9db';
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                margin: auto;
                font-family: 'newspaper';
                font-size: 9px;
                line-height: 1;
                color: #fff;
                opacity: 0;
                transition: all .3s ease;
                pointer-events: none;
              }
            }

            .tdb-check-title {
              position: relative;
              padding-left: 6px;
              user-select: none;
              -webkit-user-select: none;
              font-size: 11px;
            }
          }

          &:checked {
            + label {
              .tdb-check {
                background-color: #1a9a75;

                &:after {
                  opacity: 1;
                }
              }
            }
          }
        }
      }
    }
  }

  // buttons
  .td-confirm-buttons {
    text-align: center;

    button {
      width: auto;
      min-width: 120px;
      height: 50px;
      background-color: #fff;
      padding: 5px 12px 6px;
      margin: 34px 9px 0 9px;
      text-transform: uppercase;
      text-shadow: none;
      font-size: 13px;
      font-weight: 600;
      color: #000;
      .box-shadow(1px 1px 4px 0 rgba(0,0,0,0.2));
      border: 0;
      border-radius: 0;
      outline: none !important;

      &:hover {
        color: #ffffff;
        background-color: #ec4d4d;
      }
    }
  }

  #TB_closeWindowButton {
    margin: 17px !important;

    &:hover {
      background-color: rgba(0, 0, 0, 0.16);
    }
  }

  // close
  .tb-close-icon {
    background: url('../images/mobile_template_close.png');
    background-repeat: no-repeat;
    background-position: center;
    width: 29px;
    height: 29px;
    margin: 0 !important;
    outline: none !important;
    .box-shadow(none);

    &:before {
      display: none;
    }
  }
}




.td-confirm-buttons {
  text-align: right;
  padding-top: 18px;

  button {
    min-width: 100px;
    background-color: white;
    border: 1px solid #ccc;
    font-size:13px;
    line-height: 14px;
    height: 32px;
    cursor:pointer;
    color: #555;


    &:hover {
      border-color: #999;
      color: #23282d;
    }
  }
}

.td-thickbox-fixed {
  height: 400px !important;

  #TB_ajaxContent {
    height: auto !important;
  }

  .td-confirm-info{
    height: 288px !important;
    overflow-y: scroll;
  }
}