#trackmage-shipment-tracking {
  &.loading{
    position: relative;
    span.spinner {
      visibility: visible;
      position: absolute;
      left: 50%;
      top: 50%;
      margin-top: -25px;
      margin-left: -25px;
      background-size: 50px;
      width: 50px;
      height: 50px;
    }
    &:after{
      content: ' ';
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      display: block;
      background: rgba(0,0,0,0.3);
      z-index: 65000;
    }
  }
  .inside {
    margin: 0;
    padding: 0;

    .shipments {
      &__table {
        width: 100%;
      }

      &__thead {
        &__th {
          text-align: left;
          padding: 1em;
          font-weight: 400;
          color: #999;
          background: #f8f8f8;

          &:first-child {
            padding-left: 2em;
          }

          &:last-child {
            padding-right: 2em;
          }

          &--shipment {
            width: 20%;
          }

          &--status {
            width: 15%;
          }

          &--carrier {
            width: 15%;
          }

          &--items {
            width: 40%;
          }

          &--actions {
            width: 10%;
          }
        }
      }

      &__tbody {
        tr {
          td {
            padding: 1.5em 1em 1em;
            text-align: left;
            line-height: 1.5em;
            vertical-align: top;
            border-bottom: 1px solid #f8f8f8;

            &:first-child {
              padding-left: 20px;
            }

            &:last-child {
              padding-right: 20px;
            }
          }

          &:last-child {
            td {
              border-bottom: 1px solid #dfdfdf;
            }
          }
        }

        .shipment {
          &:hover {
            &__actions__wrap {
              visibility: visible;
            }
          }

          &__items {
            ul {
              margin: 0;
            }
          }

          .shipment__actions {
            &__wrap {
              width: 170px;
              text-align: right;
              padding-left: 0;
              vertical-align: middle;
            }

            &__action {
              color: #ccc;
              display: inline-block;
              cursor: pointer;
              padding: 0;
              margin: 0;
              vertical-align: middle;
              text-decoration: none;
              line-height: 18px;
              width: 18px;
              height: 18px;
              font-size: 18px;
              overflow: hidden;

              &:hover:before {
                color: #999;
              }

              &--delete:hover:before {
                color: #a00;
              }

              &:before {
                font-family: Dashicons;
                speak: none;
                font-weight: 400;
                text-transform: none;
                line-height: 1;
                -webkit-font-smoothing: antialiased;
                text-indent: 0px;
                top: 0px;
                left: 0px;
                width: 100%;
                height: 100%;
                text-align: center;
                position: relative;
                font-variant: normal;
                margin: 0px;
                content: "";
              }

              &--edit:before {
                content: "\f464";
              }

              &--delete:before {
                content: "\f335";
              }

              &.button{
                padding: 0 10px;
                overflow: auto;
                font-size: 13px;
                line-height: 2;
                color: #2271b1;
                width: auto;
                height: 30px;
                text-align: center;
                &:before{
                  content: "" !important;
                }
              }
            }
          }

          &:hover {
            .shipment__actions {
              &__wrap {
                visibility: visible;
              }
            }
          }
        }
      }
    }

    .add-shipment,
    .edit-shipment {
      border-bottom: 1px solid #dfdfdf;
      padding: 1.5em 2em;
      background: #f8f8f8;
      line-height: 2em;

      .select2-selection{
        &__rendered{
          line-height: 13px !important;
        }
      }
      .items {
        &__row {
          margin-bottom: 6px;

          &:last-of-type {
            margin-bottom: 0;
          }
        }
        &__product {
          width: 45%;
          float: left;
          line-height: 1;
          padding-right: 10px;
          box-sizing: border-box;
        }

        &__qty {
          width: 45%;
          float: left;
          line-height: 1;
          padding-right: 10px;
          box-sizing: border-box;
        }

        &__delete {
          width: 10%;
          float: left;
          line-height: 1;
          padding: 5px 0;

          .btn-delete {
            cursor: pointer;

            &:before {
              font-family: Dashicons;
              speak: none;
              font-weight: 400;
              text-transform: none;
              line-height: 1;
              -webkit-font-smoothing: antialiased;
              text-indent: 0px;
              top: 0px;
              left: 0px;
              width: 100%;
              height: 100%;
              font-size: 20px;
              color: #ccc;
              text-align: center;
              position: relative;
              font-variant: normal;
              margin: 0px;
              content: "\f335";
            }

            &:hover:before {
              color: #a00;
            }
          }
        }

        &__btn-add-row {
          margin-top: 6px;
        }
      }
    }

    .actions {
      border-bottom: 1px solid #dfdfdf;
      padding: 1.5em 2em;
      background: #f8f8f8;
      line-height: 2em;

      .right {
        float: right;

        .button {
          margin-left: 0.25em;
        }
      }

      .left {
        float: left;

        .button {
          margin-right: 0.25em;
        }
      }

      &:after {
        content: "";
        display: block;
        clear: both;
      }
    }
  }
}
.woocommerce-page {
  div[aria-describedby="delete-shipment-confirm-dialog"] {
    .ui-dialog-titlebar-close {
      color: transparent !important;
    }

    .ui-dialog-titlebar-close:before {
      content: "" !important;
    }
  }
}
