/*
 * Generates helpers.
 *
 * The key of the outer map is the base property.
 *
 * alias             Will be used in the class instead of the full property if set.
 * variants          Simple values.
 * directionVariants Values that will be set for left, top, right and bottom.
 */
.wcmp__d--none {
  display: none !important;
}
.wcmp__d--block {
  display: block !important;
}
.wcmp__d--inline-block {
  display: inline-block !important;
}
.wcmp__d--flex {
  display: -ms-flexbox !important;
  display: flex !important;
}
.wcmp__m--auto {
  margin: auto !important;
}
.wcmp__ml--0 {
  margin-left: 0 !important;
}
.wcmp__ml--1 {
  margin-left: 0.25em !important;
}
.wcmp__ml--2 {
  margin-left: 0.5em !important;
}
.wcmp__ml--3 {
  margin-left: 0.75em !important;
}
.wcmp__mt--0 {
  margin-top: 0 !important;
}
.wcmp__mt--1 {
  margin-top: 0.25em !important;
}
.wcmp__mt--2 {
  margin-top: 0.5em !important;
}
.wcmp__mt--3 {
  margin-top: 0.75em !important;
}
.wcmp__mr--0 {
  margin-right: 0 !important;
}
.wcmp__mr--1 {
  margin-right: 0.25em !important;
}
.wcmp__mr--2 {
  margin-right: 0.5em !important;
}
.wcmp__mr--3 {
  margin-right: 0.75em !important;
}
.wcmp__mb--0 {
  margin-bottom: 0 !important;
}
.wcmp__mb--1 {
  margin-bottom: 0.25em !important;
}
.wcmp__mb--2 {
  margin-bottom: 0.5em !important;
}
.wcmp__mb--3 {
  margin-bottom: 0.75em !important;
}
.wcmp__pl--0 {
  padding-left: 0 !important;
}
.wcmp__pl--1 {
  padding-left: 0.25em !important;
}
.wcmp__pl--2 {
  padding-left: 0.5em !important;
}
.wcmp__pl--3 {
  padding-left: 0.75em !important;
}
.wcmp__pt--0 {
  padding-top: 0 !important;
}
.wcmp__pt--1 {
  padding-top: 0.25em !important;
}
.wcmp__pt--2 {
  padding-top: 0.5em !important;
}
.wcmp__pt--3 {
  padding-top: 0.75em !important;
}
.wcmp__pr--0 {
  padding-right: 0 !important;
}
.wcmp__pr--1 {
  padding-right: 0.25em !important;
}
.wcmp__pr--2 {
  padding-right: 0.5em !important;
}
.wcmp__pr--3 {
  padding-right: 0.75em !important;
}
.wcmp__pb--0 {
  padding-bottom: 0 !important;
}
.wcmp__pb--1 {
  padding-bottom: 0.25em !important;
}
.wcmp__pb--2 {
  padding-bottom: 0.5em !important;
}
.wcmp__pb--3 {
  padding-bottom: 0.75em !important;
}
.wcmp__ws--nowrap {
  white-space: nowrap !important;
}
.wcmp__text--left {
  text-align: left !important;
}
.wcmp__text--top {
  text-align: top !important;
}
.wcmp__text--right {
  text-align: right !important;
}
.wcmp__text--bottom {
  text-align: bottom !important;
}

.widefat .column-wc_actions .wcmp__action.button, .wcmp__action.button {
  width: auto;
  border-color: #0f5c47;
  display: -ms-inline-flexbox;
  display: inline-flex;
  padding: 0 0.25em !important;
}
.widefat .column-wc_actions .wcmp__action.button:focus, .wcmp__action.button:focus {
  border-color: #168869;
  color: #168869;
  box-shadow: 0 0 0 1px #168869;
}
.widefat .column-wc_actions .wcmp__action.button img, .wcmp__action.button img {
  width: 18px;
}

/*
 * Shipment overview: Print offset dialog
 */
.wcmp__offset-dialog {
  position: absolute;
}
.wcmp__offset-dialog__icon {
  -ms-flex: 0;
      flex: 0;
  height: 40px;
}
.wcmp__offset-dialog p {
  -ms-flex: 1;
      flex: 1;
  margin: auto;
}
.wcmp__offset-dialog input {
  margin-top: 0 !important;
}

/*
 * Shipment options form styling
 */
.wcmp__shipment-options-dialog {
  width: 28em;
}
.wcmp__shipment-options-dialog table {
  width: 100%;
}
.wcmp__shipment-options-dialog table,
.wcmp__shipment-options-dialog select {
  font-size: 90%;
}
.wcmp__shipment-options-dialog select,
.wcmp__shipment-options-dialog input {
  height: auto;
  padding: 0 8px !important;
}
.wcmp__shipment-options-dialog select,
.wcmp__shipment-options-dialog input,
.wcmp__shipment-options-dialog .form-row {
  margin: 0;
}
.wcmp__shipment-options-dialog td.wcmp_option_cost {
  width: 60px;
  text-align: right;
  font-weight: bold;
}
.wcmp__shipment-options-dialog a {
  color: inherit;
  text-decoration: none;
}

/*
 * Shipment summary (overview and single order)
 */
.wcmp__shipment-summary {
  list-style: none;
  margin-right: 0.3em;
}
.wcmp__shipment-summary .delivery-date,
.wcmp__shipment-summary .delivery-options {
  display: block;
}
.wcmp__shipment-summary li:before {
  content: "+";
  margin-right: 4px;
}
.wcmp__shipment-summary__list {
  width: auto;
}

.wcmp__table {
  border-collapse: collapse;
}
.wcmp__table th,
.wcmp__table td {
  padding: 0.75em 0.5em;
}
.wcmp__table.wc_status_table {
  font-size: 0.85em;
  margin: 0;
}
.wcmp__table.wc_status_table.widefat {
  width: auto;
  border: none;
  box-shadow: none;
}
.wcmp__table.wc_status_table tr:nth-child(2n) td,
.wcmp__table.wc_status_table tr:nth-child(2n) th {
  background: transparent;
}
.wcmp__table--track-trace {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  border-collapse: collapse;
}
.wcmp__table--track-trace th,
.wcmp__table--track-trace td {
  vertical-align: top;
  padding: 5px 2px;
  border-bottom: 1px solid #ccc;
}
.wcmp__table--track-trace td.wcmp__td--create-label {
  vertical-align: middle;
}
.wcmp__table--track-trace th {
  text-align: left;
}

.wcmp__box {
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  padding: 10px;
  border-radius: 3px;
}

.wcmp__settings-section > h2 {
  border-bottom: 1px solid #c3c4c7;
  padding-bottom: 0.5em;
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
}

.table th, .table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

.table .table {
  background-color: #fff;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-hover .table-active:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-hover .table-active:hover > td, .table-hover .table-active:hover > th {
  background-color: rgba(0, 0, 0, 0.075);
}

.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge:empty {
  display: none;
}

.badge-primary {
  color: #fff;
  background-color: #0f5c47;
}

.badge-primary[href]:hover, .badge-primary[href]:focus {
  color: #fff;
  text-decoration: none;
  background-color: #0f5c47;
}

.badge-secondary {
  color: #fff;
  background-color: #6c757d;
}

.badge-secondary[href]:hover, .badge-secondary[href]:focus {
  color: #fff;
  text-decoration: none;
  background-color: #545b62;
}

.logo-img {
  width: 100%;
}

.logo-img img {
  width: 50%;
  max-height: 45px;
  display: block;
  margin: 0 auto;
  padding: 1em 0;
}

/*
 * Shipment overview
 */
.wcmp__order__track-trace {
  word-break: break-all;
}

/*
 * Shipment overview: Track & Trace column
 */
.wcmp__barcodes {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wcmp__modal {
  position: absolute;
  z-index: 999;
}

/*
 * Spinner
 */
.wcmp__spinner {
  display: -ms-inline-flexbox;
  display: inline-flex;
  margin: auto;
}

.wcmp__spinner > img {
  width: 16px;
  display: none;
}

.wcmp__spinner--loading .wcmp__spinner__loading,
.wcmp__spinner--success .wcmp__spinner__success,
.wcmp__spinner--failed .wcmp__spinner__failed {
  margin-left: 4px;
  display: block !important;
}

.button > .wcmp__spinner {
  margin-left: 0;
  transition: all 0.3s ease;
}

.button + .wcmp__spinner, input + .wcmp__spinner {
  margin-left: 5px;
  margin-top: 5px;
}

.wcmp__bulk-spinner {
  margin-top: 6px;
}

.widefat .column-order_actions .column-wc_actions .wcmp__spinner {
  position: absolute;
}

.wcmp__spinner,
.wcmp__shipment-options__save input {
  vertical-align: middle;
}

.wcmp__encircle {
  display: inline-block;
  text-decoration: none;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  font-size: 10px;
  line-height: 10px;
  padding: 2px;
  border: 1px solid #666;
  color: #666;
  text-align: center;
}

/*
 * Bulk export options styling
 */
.wcmp__bulk-options .wcmp_settings-table td {
  border: none;
  padding: 0 7px 2px !important;
  vertical-align: middle !important;
}

.wcmp__bulk-options td.ordercell {
  width: 60%;
}

.wcmp__bulk-options input[type=checkbox], input[type=radio] {
  margin-right: 8px;
}

.wcmp__bulk-options {
  width: 96%;
  margin: 10px auto;
}

.wcmp__bulk-options .wcmp__shipment-options__save {
  margin-top: 8px;
  float: right;
}

/*
 * Chosen delivery options styling
 */
#order_data .delivery-options {
  margin-top: 10px;
}

#order_data .delivery-options strong {
  display: block;
}

/*
 * Delivery options
 */
.wcmp_delivery_option_details {
  margin-top: 5px;
}

.wcmp_delivery_option_details td {
  padding: 0;
}

/* fix woocommerce column float */
@media only screen and (min-width: 1280px) {
  #order_data .order_data_column {
    max-width: 31% !important;
  }
}
/* Hide the "(optional)" spans on wcmp form labels in settings page and others*/
.wcmp label span.optional {
  display: none;
}

/*
 * WCMP Settings page
 */
.woocommerce_page_wcmp_settings tr.wcmp__child {
  background: #e5e5e5;
}

.woocommerce_page_wcmp_settings table.form-table select,
.woocommerce_page_wcmp_settings table.form-table input {
  height: auto;
  line-height: 1.8;
}

.woocommerce_page_wcmp_settings tr.wcmp__child * {
  font-size: 0.95em !important;
}

.woocommerce_page_wcmp_settings tr.wcmp__child th {
  padding-left: 10px;
  padding-left: 10px;
}

.woocommerce_page_wcmp_settings tr.wcmp__child td {
  padding-top: 5px;
  padding-bottom: 10px;
}

.woocommerce_page_wcmp_settings input,
.woocommerce_page_wcmp_settings table.form-table .select2-container,
.woocommerce_page_wcmp_settings select {
  max-width: 360px;
}

.woocommerce_page_wcmp_settings table.form-table .select2-container {
  min-width: auto !important;
  width: 100% !important;
}

.woocommerce_page_wcmp_settings table.form-table th {
  width: 280px;
}

.wcmp__close-button {
  cursor: pointer;
}

/* Toggle element */
.wcmp__toggle {
  cursor: pointer;
}

[data-disabled=true] .wcmp__toggle,
[data-readonly=true] .wcmp__toggle {
  opacity: 65%;
  cursor: not-allowed;
}

/* Skeleton loader (Styles copied from Delivery Options) */
.wcmp__skeleton-loader {
  width: 100%;
}

.wcmp__skeleton-loader div {
  height: 1.5em;
  margin-top: 8px;
  animation: shimmer 2s infinite linear;
  background: rgba(0, 0, 0, 0.05) linear-gradient(to right, transparent 25%, rgba(0, 0, 0, 0.05) 50%, transparent 75%);
  background-size: 400% 400%;
}

.wcmp__skeleton-loader tr:nth-child(1) td:first-child div {
  width: 60%;
}

.wcmp__skeleton-loader tr:nth-child(2) td:first-child div {
  width: 80%;
}

.wcmp__skeleton-loader tr:nth-child(3) td:first-child div {
  width: 75%;
}

.wcmp__skeleton-loader tr:nth-child(4) td:first-child div {
  width: 77%;
}

.wcmp__skeleton-loader tr:nth-child(5) td:first-child div {
  width: 64%;
}
@keyframes shimmer {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}