/* Shipping classes multiselect */
.lar_classes_list {
  optgroup::before {
    display: none;
  }

  &:hover {
    color: inherit !important;
  }

  option {
    padding-top: 3px;
    padding-bottom: 3px;

    input[type=checkbox] {
      display: none;
    }

    &::before {
      content: "";
      width: 14px;
      height: 14px;
      border: 1px solid #8c8f94;
      border-radius: 3px;
      display: inline-block;
      margin-bottom: -3px;
      margin-right: 10px;
    }

    &:hover {
      color: #2271b1 !important;

      &::before {
        border-color: #3582c4;
      }
    }

    &:checked {
      background: inherit !important;

      &::before {
        background: #3582c4;
        box-shadow: inset 0 0 0 2px #fff;
      }
    }
  }
}

/* Carriers table */
table.lar_carriers_table {
  font-size: 14px;

  tr {
    &.lar_carriers_row {
      background: #f0f0f1;
    }

    th {
      vertical-align: middle;
      padding: 1em;
      font-weight: 600;
    }

    td {
      display: table-cell !important;
      font-size: 14px;
      vertical-align: middle;
      padding: 24px 12px;

      &.lar_carriers_service_code {
        color: #2c3338;
        font-weight: 600;
      }
    }
  }

  &.lar_carriers_table_modal {
    .lar_carriers_center {
      text-align: center;
    }

    tr:nth-child(even) {
      background: #f9f9f9;
    }

    th {
      padding: 0 10px 10px 0 !important;

      &:last-child {
        padding-right: 0 !important;
      }
    }

    td {
      padding: 0 10px 0 0 !important;

      &:last-child {
        padding-right: 0 !important;
      }
    }
  }
}

/* Boxes table */
table.lar_boxes_table {
  thead {
    tr {
      th {
        font-weight: 600;
      }
    }
  }

  tbody {
    tr {
      td {
        span {
          display: flex;
          align-items: center;
        }

        &:not(.check-column) {
          input:not([type="checkbox"]),
          select {
            width: 100%;
          }

          select {
            border-color: rgba(0,0,0,.15);
          }
        }

        &.check-column {
          display: flex;
          justify-content: center;
          width: 100%;
          padding: 0;
          height: 50px;

          input[type="checkbox"] {
            margin: 0 0 0 8px;
          }
        }

        &.sort {
          padding-top: 14px;
          cursor: grab;
        }
      }

      &:nth-child(even) {
        background: #f9f9f9;
      }

      &.ui-sortable-helper {
        display: flex;
        flex-wrap: nowrap;

        td {
          width: initial;
        }
      }
    }
  }
}

/* Problematic products list */
#lar_products_missing {
  h4 {
    margin: 0 0 5px;
  }

  #lar_products_missing_scroll {
    max-height: 200px;
    overflow-y: scroll;
    max-width: 650px;
    background: white;
    border-radius: 2px;
    border: 1px solid #8c8f94;
    padding: 10px 10px 0;

    a {
      text-decoration: none;
      font-weight: bold;
    }
  }
}

/* Resend order */
#TB_window {
  p.send-order-desc {
    text-align: center;
    font-weight: bold;
  }

  p.submit,
  p#lar-error-msg {
    text-align: center;
  }

  table:not([class]) {
    border-collapse: collapse;
    margin-top: .5em;
    width: 100%;
    clear: both;

    tbody {
      tr {
        th.titledesc {
          padding: 20px 10px 20px 0;

          label {
            text-align: left;
            line-height: 1.3;
            font-weight: 600;
            color: #1d2327;
            font-size: 14px;
          }
        }
      }
    }
  }

  #shipping-note {
    resize: none;
  }

  #shipping-note-counter {
    display: block;
    font-size: smaller;
  }

  .carriers-list {
    .carriers-list-header,
    .carriers-list-carrier,
    label {
      display: flex;
    }

    .carriers-list-header {
      border-bottom: 1px solid #c3c4c7;
      padding: 8px 0;

      span {
        line-height: 1.3;
        font-weight: 600;
        color: #1d2327;
        font-size: 14px;
        align-self: center;
      }
    }

    .carriers-list-carriers {
      padding-bottom: 15px;

      .carriers-list-carrier {
        align-items: end;
        padding: 8px 0;

        &:nth-child(2n) {
          background: #f9f9f9;
        }

        &.default-carrier {
          color: #135e96;

          input {
            border-color: #135e96;
          }
        }
      }
    }

    .carrier-loader {
      padding: 8px 0;
      text-align: center;

      img {
        width: 100%;
        height: 10px;
      }
    }

    label {
      width: 100%;
    }

    span {
      width: 25%;
    }
  }
}

/* Buttons */
#btn-lar-cancel-orders {
  background: #b32d2e;
  border-color: #b32d2e;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
}

/* Danger message */
.lar_danger_message {
  color: #b32d2e;
}