/**
 * Second responsive css file
 * 960>
 * 959-768
 */
 

/**
 * 960>
 * Tablet resolution
 * No min-width, everything is inherited down
 * .tablet elements are displayed
 * .desktop elements are hidden
 */
@media all and (max-width: 959px) {
  
  .desktop {
    display: none;
  }
  .tablet {
    display: block;
  }
  
  /**
   * Hide admin menu
   */
  #menu-admin {
    display: none;
  }
  body.admin-menu,
  .admin-menu #cart-messages {
    margin-top: 0;
  }
  
  /**
   * General styling (page.css)
   */
  #header .menu-item-admin,
  .main-menu .cart .cart-title {
    display: none;
  }
  #bottom {
    padding: 60px 20px 80px;
  }
  .popup-size-support .popup-light {
    margin-top: -20px;
  }
  .popup-size-support .popup-inner {
    margin: 100px 20px 40px;
  }
  .course-top > .right {
    float: none;
    margin: 0;
    padding: 15px 0 0;
    clear: both;
  }
  .course-top > .right > * {
    margin: 0 15px 0 0;
  }

  /**
   * Front page
   */
  .page-index .top {
    height: 420px;
  }
  .page-index .top .inner {
    padding-top: 80px;
  }
  .page-index .top h1 {
    font-size: 56px;
    line-height: 1.1;
  }

  /**
   * Course item
   */
  .size-small .course-item:nth-child(n) {
    float: left;
    clear: none;
    width: 49%;
    margin: 30px 0 30px 2%;
  }
  .size-small .course-item:nth-child(2n+1) {
    clear: both;
    margin-left: 0;
  }
  .size-small .course-item:nth-child(-n+2) {
    margin-top: 0;
  }
  .course-item .title {
    font-size: 22px;
  }
  
  /**
   * Course view
   */
  .course-view .info .text,
  .course-view .info .list {
    width: auto;
    float: none;
  }
  .course-view .info .list {
    margin-top: 30px;
  }
  
  /**
   * Course user
   */
  .user-course .col-1 {
    width: auto;
    float: none;
    padding-bottom: 35px;
  }
  .user-course .col-2 {
    width: auto;
    float: none;
    min-height: 0;
  }
  .user-course .col-2 .detail:nth-child(n) {
    width: 50%;
    float: left;
    border-right: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
  }
  .user-course .col-2 .detail:nth-last-child(-n+2) {
    border-bottom-width: 0;
  }
  .user-course .col-2 .detail:nth-child(2n) {
    border-right-width: 0;
  }
  
  /**
   * Webinar
   */
  .webinar-watch .box .col:nth-child(n) {
    width: auto;
    float: none;
    max-width: none;
  }
  .webinar-watch .box .col-1 {
    margin: 0;
  }
  .webinar-watch .box .col-2 {
    margin: 10px 0 0;
  }
  .webinar-watch .box .col-1:nth-child(n) {
    padding: 0;
  }
  .chat-messages {
    height: 350px;
  }
  
  /**
   * Messages
   */
  .messages::before,
  .messages .col1::before {
    display: none;
  }
  .messages .col {
    width: auto;
    float: none;
    border: none;
  }
  .messages .active + .col1,
  .messages .col2 {
    display: none;
  }
  .messages .col2.active {
    display: block;
  }
  .messages #thread .btn-back {
    display: inline-block;
  }
  
}

/**
 * 959-768
 * Tablet resolution
 * Min-width, nothing is inherited down
 */
@media all and (max-width: 959px) and (min-width: 768px) {
  
  /**
   * General styling (page.css)
   */
  .box > .col {
    width: 49.9%;
  }
  .box > .col:first-child {
    margin-right: 0.2%;
  }
  
  /**
   * User account
   */
  .form-user-login .form-type-actions .form-item {
    display: block;
    margin: 0 0 10px;
  }
  
  /**
   * Checkout
   */
  .order-checkout .box > .col {
    padding: 30px;
  }
  .cart-checkout .item .image {
    display: none;
  }
  .cart-checkout .item .title {
    padding-left: 0;
  }
  
}