.smartship-metabox-container {
  position: relative;
}

.smartship-metabox-container .smartship-shipment {
  border-bottom: 1px solid #dddddd;
  margin: 10px -12px 10px;
  padding: 0 12px 15px;
}

.smartship-metabox-container fieldset {
  margin: 0 0 10px;
}

.smartship-metabox-container fieldset h4 {
  margin: 0 0 5px;
}

.smartship-metabox-container .form-field {
  margin: 0 0 5px;
}

.smartship-metabox-container .form-field label {
  display: block;
  margin: 0 0 3px;
}

.smartship-metabox-container .smartship-ajax-loader {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.66);
  background-image: url("../img/ajax-indicators/spinner.gif");
  background-repeat: no-repeat;
  background-position: center center;
  top: 0;
  left: 0;
  display: none;
}

.smartship-metabox-container .wc-smartship-icon {
  display: inline-block;
  width: auto;
  height: 16px;
  width: 16px;
  margin-left: 5px;
  margin-top: 7px;
  background-repeat: no-repeat;
  background-position: left top;
}

.smartship-metabox-container .wc-smartship-icon.wc-smartship-icon-created {
  background-image: url("../img/ajax-indicators/yes.png");
}

.smartship-metabox-container .wc-smartship-icon.wc-smartship-icon-failed {
  background-image: url("../img/ajax-indicators/no.png");
}

.smartship-metabox-container .smartship-errors {
  margin-top: 5px;
  color: #c92a2a;
}

.smartship-metabox-container .wc-smartship-license-error-container {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: row;
}

.smartship-metabox-container .wc-smartship-license-error-container .wc-smartship-license-error {
  color: #c92a2a;
  font-size: 16px;
  text-align: center;
  flex: none;
  width: 90%;
}

.smartship-dimension-inputs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 95%;
}

.smartship-dimension-inputs input {
  flex: auto;
  width: 33%;
}

#wc-smartship.postbox.processing .smartship-ajax-loader {
  display: block;
}

#wc-smartship-freight-addons,
fieldset#wc-smartship-freight,
#wc-smartship-lq-process-permit-container,
#wc-smartship-lq-wrapper,
#wc-smartship-mps-copies-wrapper,
#wc-smartship-dng-container,
#wc-smartship-dng-fields,
#wc-smartship .wc-smartship-cod-container,
#wc-smartship-dimensions-wrapper,
#wc-smartship-opay-wrapper {
  display: none;
}

#wc-smartship.service-ITKY14I #wc-smartship-dng-container,
#wc-smartship.service-IT14I #wc-smartship-dng-container,
#wc-smartship.service-PO2102 #wc-smartship-dng-container,
#wc-smartship.service-PO2144 #wc-smartship-dng-container,
#wc-smartship.service-PO2104 #wc-smartship-dng-container,
#wc-smartship.service-POF1 #wc-smartship-dng-container {
  display: block;
}

#wc-smartship.service-PO2102 #wc-smartship-lq-process-permit-container,
#wc-smartship.service-IT14I #wc-smartship-lq-process-permit-container,
#wc-smartship.service-PO2104 #wc-smartship-lq-process-permit-container,
#wc-smartship.service-PO2108 #wc-smartship-lq-process-permit-container,
#wc-smartship.service-PO2103 #wc-smartship-lq-process-permit-container {
  display: block;
}

#wc-smartship.addon-lq_process_permit #wc-smartship-lq-wrapper {
  display: block;
}

#wc-smartship.addon-opay #wc-smartship-opay-wrapper {
  display: block;
}

#wc-smartship.addon-cod .wc-smartship-cod-container {
  display: block;
}

#wc-smartship.addon-mps #wc-smartship-mps-copies-wrapper {
  display: block;
}

#wc-smartship.addon-dng #wc-smartship-dng-fields {
  display: block;
}

#wc-smartship.service-POF1 fieldset#wc-smartship-freight,
#wc-smartship.service-POF1 #wc-smartship-freight-addons,
#wc-smartship.service-POF1 #wc-smartship-dimensions-wrapper {
  display: block;
}

#wc-smartship.service-POF1 #wc-smartship-fragile-container,
#wc-smartship.service-POF1 #wc-smartship-large-container {
  display: none;
}

#wc-smartship.service-PO2017 #wc-smartship-fragile-container,
#wc-smartship.service-PO2017 #wc-smartship-large-container,
#wc-smartship.service-PO5007 #wc-smartship-fragile-container,
#wc-smartship.service-PO5007 #wc-smartship-large-container,
#wc-smartship.service-PO5001 #wc-smartship-fragile-container,
#wc-smartship.service-PO5001 #wc-smartship-large-container,
#wc-smartship.service-PO5002 #wc-smartship-fragile-container,
#wc-smartship.service-PO5002 #wc-smartship-large-container {
  display: none;
}

/**
 * Bulk create
 */
#wc-smartship-bulk-app {
  margin-top: 20px;
  margin-right: 20px;
}

#wc-smartship-bulk-app .wcss-bulk-controls {
  margin-bottom: 20px;
}

#wc-smartship-bulk-app .wcss-bulk-controls .button {
  margin-right: 10px;
}

#wc-smartship-bulk-app .wcss-bulk-controls span {
  line-height: 30px;
  display: inline-block;
  vertical-align: top;
}

#wc-smartship-bulk-app .wcss-bulk-controls .wcss-icon {
  height: 30px !important;
  margin-right: 5px;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create {
  table-layout: fixed;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create select,
#wc-smartship-bulk-app table.wc-smartship-bulk-create input[type="text"],
#wc-smartship-bulk-app table.wc-smartship-bulk-create input[type="number"] {
  width: 100%;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create .select2-container .select2-selection--multiple {
  min-height: 20px !important;
  line-height: 1 !important;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create .select2-container .select2-selection--multiple .select2-search__field {
  min-height: 20px !important;
  line-height: 1 !important;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create .select2-container.select2-container--disabled .select2-selection--multiple {
  color: #a7aaad;
  border-color: #dcdcde;
  background-color: #f6f7f7;
  opacity: 0.7;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create .select2-container .select2-search__field {
  min-width: 50px;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create tr {
  position: relative;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create .wcss-process-overlay {
  position: absolute;
  background: rgba(255, 255, 255, 0.66) url("../img/ajax-indicators/wpspin_light.gif") no-repeat center center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create .meta {
  margin-bottom: 0;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create tr.error {
  background: #ffe3e3;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create tr.completed {
  background: #d3f9d8;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create tr.skipped {
  background: #fff3bf;
}

#wc-smartship-bulk-app table.wc-smartship-bulk-create tr.wcss-error-row td {
  padding-top: 0;
  color: #c92a2a;
}

/**
 * Check credentials in the settings page
 */
.wc-smartship-check-credentials-indicator {
  display: inline-block;
  width: auto;
  height: 30px;
  background-repeat: no-repeat;
  background-position: left center;
  margin-left: 10px;
  padding-left: 21px;
  line-height: 30px;
  vertical-align: top;
}

.wc-smartship-check-credentials-processing {
  background-image: url("../img/ajax-indicators/wpspin_light.gif");
}

.wc-smartship-check-credentials-success {
  background-image: url("../img/ajax-indicators/yes.png");
}

.wc-smartship-check-credentials-fail {
  background-image: url("../img/ajax-indicators/no.png");
}

/**
 * License status label
 */
.markup-license-status-label {
  color: #ffffff;
  padding: 5px 7px;
  font-size: 13px;
  border-radius: 5px;
  text-transform: uppercase;
  display: inline-block;
}

.markup-license-status-label.license-ok {
  background: #2b8a3e;
  color: #ffffff;
}

.markup-license-status-label.license-disabled {
  background: #c92a2a;
}

.markup-license-status-label.license-unknown {
  background: #212529;
}

.markup-license-error {
  display: inline-block;
  margin-left: 5px;
}

.markup-license-last-checked {
  color: #666666;
  margin-top: 10px;
}

.markup-license-renew {
  margin-top: 10px;
}

/**
 * Customs rules in the settings
 */
.smartship-dialog .ui-dialog-titlebar-close {
  text-indent: -9999px;
}

table.wc-smartship-customs-rules {
  table-layout: auto !important;
}

table.wc-smartship-customs-rules th, table.wc-smartship-customs-rules td {
  padding: 15px 10px;
}

#smartship-dialog-customs-rule form .form-field {
  margin-bottom: 10px;
}

#smartship-dialog-customs-rule form .form-field select.wc-enhanced-select, #smartship-dialog-customs-rule form .form-field > input {
  width: 400px !important;
  max-width: 400px !important;
}

#smartship-dialog-customs-rule form .form-field label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

#smartship-dialog-customs-rule form .form-submit {
  margin-top: 20px;
}
