/*  ----------------------------------------------------------------------------
    WordPress default widgets
*/
// general widgets
.widget {
  // padding sidebar on all widgets
  padding: 0px 19px 0px 20px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    padding: 0px 17px 0px 17px;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    padding: 0px 10px 0px 10px;
  }

  a {
    color: @td_text_color;
  }

  ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
  }

  li {
    line-height: 30px;
    list-style: none;
    padding: 0px;
    margin: 0px;
  }

  select {
    max-width: 100%;
  }

  .block-title {
    margin-left: 0px;
    margin-top: 21px;
    margin-bottom: 7px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-top: 17px;
    }
  }

  margin-bottom: 13px;
}


// archive
.widget_archive {
  a {
    span {
      float: right;
    }
  }

  select {
    display: block;
    width: 100%;
    margin: 12px 0px 22px 0px;
  }
}

// calendar
.widget_calendar {
  table {
    width: 100%;
    text-align: center;
  }

  th {
    text-align: center;
  }

  td {
    padding: 8px 0;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      padding: 5px 0;
    }
  }

  #today {
    background-color: @td_grid_border_color;
    font-weight: bold;
    color: #000000;
  }

  caption {
    font-weight: bold;
    padding-bottom: 10px;
  }

  thead tr {
    border-bottom: 1px dashed @module-dashed-line;
    margin: 10px 0 10px 0;
    line-height: 34px;
  }

  tfoot {
    td {
      border: none;
    }
    #prev {
      text-align: left;
    }
    #next {
      text-align: right;
    }

    a {
      background-color: #444444;
      border-radius: 3px;
      display: inline-block;
      color: #ffffff;
      padding: 2px 15px;
      font-weight: bold;
      font-family: @font1;
      font-size: 11px;
      line-height: 16px;

      &:hover {
        background-color: @td_theme_color;
        color: #ffffff;
      }
    }
  }

  .block-title {
    margin-bottom: 12px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-bottom: 8px;
    }
  }

  margin-bottom: 14px;
}

// categories
.widget_categories {
  a {
    span {
      float: right;
    }
  }

  li > ul {
    margin-left: 21px;
  }

  select {
    display: block;
    width: 100%;
    margin: 12px 0px 22px 0px;
  }
}


// custom menu
.widget_nav_menu {
  a {
    span {
      float: right;
    }
  }

  li > ul {
    margin-left: 21px;
    box-shadow: none;
  }
}


// pages
.widget_pages {
  li > ul {
    margin-left: 21px;
  }
}

// recent comments
.widget_recent_comments {
  li {
    margin: 0px 0px 10px 0px !important;
    line-height: 21px;
    padding-bottom: 13px;
    border-bottom: 1px dashed @module-dashed-line;

    &:last-child {
      border-bottom: 0px;
      padding-bottom: 0px;
    }
  }

  a:last-child {
    font-style: italic;
    font-size: 11px;
    font-weight: bold;
  }

  .block-title {
    margin-bottom: 12px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-bottom: 8px;
    }
  }

  margin-bottom: 16px;
}


// recent posts
.widget_recent_entries {
  li {
    display: block;
    margin-bottom: 4px;
    padding-bottom: 7px;
    border-bottom: 1px dashed @module-dashed-line;

    &:last-child {
      border-bottom: none;

      .post-date {
        margin-bottom: 5px;
      }
    }

    a {
      display: inline-block;
      line-height: 21px;
    }
  }

  .block-title {
    margin-bottom: 11px;
  }

  .post-date {
    display: block;
    font-family: @font1;
    font-size: 11px;
    line-height: 16px;
    color: #b5b5b5;
    font-style: italic;
  }

  margin-bottom: 5px;
}


// search
.widget_search {
  .td-widget-search-input {
    width: 95%;
  }

  .block-title {
    margin-bottom: 19px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-bottom: 15px;
    }
  }

  .wpb_button {
    margin: 0px !important;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin: 0px 17px 0px 0px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      margin: 0px 10px 0px 0px;
    }
  }

  margin-bottom: 19px;
  margin-top: 21px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    margin: 17px 0px 15px 0px;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    margin: 17px 0px 15px 0px;
  }
}


// tag
.widget_tag_cloud {
  .block-title {
    margin-bottom: 20px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-bottom: 16px;
    }
  }
  a {
    border: 1px solid @td_grid_border_color;
    display: inline-table;
    line-height: 1;
    margin-bottom: 3px;
    padding: 5px 8px;
    vertical-align: middle;
    border-color: @td_grid_border_color;

    // removing the transition
    -o-transition: none;
    -moz-transition: none;
    -khtml-transition: none;
    -webkit-transition: none;
    -ms-transition: none;
    transition: none;

    &:hover {
      border-color: @td_theme_color;
    }
  }
}


// rss
.widget_rss {
  margin-bottom: 8px;

  .block-title {
    margin-bottom: 12px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-bottom: 8px;
    }

    a:first-child {
      display: none;
    }

    .rsswidget {
      color: #ffffff;
      line-height: 16px;
    }
  }

  li {
    margin-bottom: 4px;
    border-bottom: 1px dashed @module-dashed-line;
  }

  li:last-child {
    border-bottom: none;
  }

  .rsswidget {
    display: table;
    line-height: 21px;
  }

  .rss-date,
  cite {
    display: inline-block;
    font-family: @font1;
    font-size: 11px;
    line-height: 16px;
    color: #b5b5b5;
    font-style: italic;
    position: relative;
    top: -5px;
  }
}

// text
.widget_text {
  .block-title {
    margin-bottom: 12px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-bottom: 8px;
    }
  }

  margin-bottom: 17px;
}