/*
 * 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.
 */
.wcmpbe__d--none {
  display: none !important;
}
.wcmpbe__d--block {
  display: block !important;
}
.wcmpbe__d--inline-block {
  display: inline-block !important;
}
.wcmpbe__d--flex {
  display: -ms-flexbox !important;
  display: flex !important;
}
.wcmpbe__m--auto {
  margin: auto !important;
}
.wcmpbe__ml--0 {
  margin-left: 0 !important;
}
.wcmpbe__ml--1 {
  margin-left: 0.25em !important;
}
.wcmpbe__ml--2 {
  margin-left: 0.5em !important;
}
.wcmpbe__ml--3 {
  margin-left: 0.75em !important;
}
.wcmpbe__mt--0 {
  margin-top: 0 !important;
}
.wcmpbe__mt--1 {
  margin-top: 0.25em !important;
}
.wcmpbe__mt--2 {
  margin-top: 0.5em !important;
}
.wcmpbe__mt--3 {
  margin-top: 0.75em !important;
}
.wcmpbe__mr--0 {
  margin-right: 0 !important;
}
.wcmpbe__mr--1 {
  margin-right: 0.25em !important;
}
.wcmpbe__mr--2 {
  margin-right: 0.5em !important;
}
.wcmpbe__mr--3 {
  margin-right: 0.75em !important;
}
.wcmpbe__mb--0 {
  margin-bottom: 0 !important;
}
.wcmpbe__mb--1 {
  margin-bottom: 0.25em !important;
}
.wcmpbe__mb--2 {
  margin-bottom: 0.5em !important;
}
.wcmpbe__mb--3 {
  margin-bottom: 0.75em !important;
}
.wcmpbe__pl--0 {
  padding-left: 0 !important;
}
.wcmpbe__pl--1 {
  padding-left: 0.25em !important;
}
.wcmpbe__pl--2 {
  padding-left: 0.5em !important;
}
.wcmpbe__pl--3 {
  padding-left: 0.75em !important;
}
.wcmpbe__pt--0 {
  padding-top: 0 !important;
}
.wcmpbe__pt--1 {
  padding-top: 0.25em !important;
}
.wcmpbe__pt--2 {
  padding-top: 0.5em !important;
}
.wcmpbe__pt--3 {
  padding-top: 0.75em !important;
}
.wcmpbe__pr--0 {
  padding-right: 0 !important;
}
.wcmpbe__pr--1 {
  padding-right: 0.25em !important;
}
.wcmpbe__pr--2 {
  padding-right: 0.5em !important;
}
.wcmpbe__pr--3 {
  padding-right: 0.75em !important;
}
.wcmpbe__pb--0 {
  padding-bottom: 0 !important;
}
.wcmpbe__pb--1 {
  padding-bottom: 0.25em !important;
}
.wcmpbe__pb--2 {
  padding-bottom: 0.5em !important;
}
.wcmpbe__pb--3 {
  padding-bottom: 0.75em !important;
}
.wcmpbe__ws--nowrap {
  white-space: nowrap !important;
}
.wcmpbe__text--left {
  text-align: left !important;
}
.wcmpbe__text--top {
  text-align: top !important;
}
.wcmpbe__text--right {
  text-align: right !important;
}
.wcmpbe__text--bottom {
  text-align: bottom !important;
}

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

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

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

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

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

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

.wcmpbe__box {
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  padding: 10px;
  position: absolute;
  z-index: 999;
  border-radius: 3px;
}

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

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

.wcmpbe__spinner--loading .wcmpbe__spinner__loading,
.wcmpbe__spinner--success .wcmpbe__spinner__success,
.wcmpbe__spinner--failed .wcmpbe__spinner__failed {
  margin-left: 4px;
  display: block !important;
}

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

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

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

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

.wcmpbe__spinner,
.wcmpbe__shipment-options__save input {
  vertical-align: middle;
}

.wcmpbe__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;
}

/*
 * Track & Trace status
 */
.wcmpbe__table--track-trace {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  border-collapse: collapse;
}

.wcmpbe__table--track-trace th {
  text-align: left;
}

.wcmpbe__table--track-trace th,
.wcmpbe__table--track-trace td {
  vertical-align: top;
  padding: 5px 2px;
  border-bottom: 1px solid #ccc;
}

.wcmpbe__table--track-trace td.wcmpbe__td--create-label {
  vertical-align: middle;
}

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

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

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

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

.wcmpbe__bulk-options .wcmpbe__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
 */
.wcmpbe_delivery_option_details {
  margin-top: 5px;
}

.wcmpbe_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 wcmpbe form labels in settings page and others*/
.wcmpbe label span.optional {
  display: none;
}

/*
 * WCMPBE Settings page
 */
.woocommerce_page_wcmpbe_settings tr.wcmpbe__child {
  background: #e5e5e5;
}

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

.woocommerce_page_wcmpbe_settings tr.wcmpbe__child * {
  font-size: 0.95em !important;
}

.woocommerce_page_wcmpbe_settings tr.wcmpbe__child th {
  padding-left: 10px;
  padding-left: 10px;
}

.woocommerce_page_wcmpbe_settings tr.wcmpbe__child td {
  padding-top: 5px;
  padding-bottom: 10px;
}

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

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

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

.wcmpbe__close-button {
  cursor: pointer;
}

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

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

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

.wcmpbe__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%;
}

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

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

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

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

.wcmpbe__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%;
  }
}