/* AAL Quick-Ship availability module */

.aal-qs-availability-module {
  margin: 10px 0 14px;
}

.aal-qs-availability-clear {
  clear: both;
  display: block;
  height: 0;
  line-height: 0;
}

.bundled_product_summary:not(.thumbnail_hidden) > .aal-qs-availability-module--bundle-row {
  clear: both;
  float: none;
  width: 100%;
  margin-top: 18px;
}

.aal-qs-availability-card {
  border: 1px solid #d7d7d7;
  border-left: 4px solid #4f7d3b;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 20, 20, .07);
  padding: 13px 15px;
}

.aal-qs-availability-card--production {
  border-left-color: #275b7c;
}

.aal-qs-availability-card--waiting,
.aal-qs-availability-card--standard,
.aal-qs-availability-card--stale {
  border-left-color: #777;
}

.aal-qs-availability-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.aal-qs-availability-head > div {
  min-width: 0;
}

.aal-qs-availability-kicker {
  margin: 0 0 3px;
  color: #666;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.aal-qs-availability-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.aal-qs-status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eaf4e4;
  color: #345b2b;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.aal-qs-status-pill--production {
  background: #e9f3f8;
  color: #244e68;
}

.aal-qs-status-pill--waiting,
.aal-qs-status-pill--standard,
.aal-qs-status-pill--stale {
  background: #eee;
  color: #555;
}

.aal-qs-availability-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  padding: 8px 0;
  margin-bottom: 10px;
}

.aal-qs-metric {
  min-height: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 0;
}

.aal-qs-metric strong {
  display: inline;
  min-width: 2ch;
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.aal-qs-metric span {
  display: inline;
  color: #666;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.aal-qs-availability-copy {
  margin: 0;
  color: #4f4f4f;
  font-size: 13px;
  line-height: 1.45;
}

.aal-qs-snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

.aal-qs-inventory-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  margin-top: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.aal-qs-inventory-toggle span:last-child {
  color: #c40000;
  font-size: 18px;
  line-height: 1;
}

.aal-qs-inventory-panel {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 12px;
  padding: 0 14px 14px;
  overflow-x: auto;
}

.aal-qs-inventory-panel table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.aal-qs-inventory-panel th,
.aal-qs-inventory-panel td {
  padding: 10px 7px;
  border-bottom: 1px solid #e8e8e8;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.aal-qs-inventory-panel th {
  white-space: nowrap;
}

.aal-qs-inventory-panel th:nth-child(1),
.aal-qs-inventory-panel td:nth-child(1) {
  width: 30%;
}

.aal-qs-inventory-panel th:nth-child(2),
.aal-qs-inventory-panel td:nth-child(2) {
  width: 18%;
}

.aal-qs-inventory-panel th:nth-child(3),
.aal-qs-inventory-panel td:nth-child(3) {
  width: 12%;
}

.aal-qs-inventory-panel th:nth-child(4),
.aal-qs-inventory-panel td:nth-child(4) {
  width: 18%;
}

.aal-qs-inventory-panel th:nth-child(5),
.aal-qs-inventory-panel td:nth-child(5) {
  width: 22%;
}

.aal-qs-inventory-panel th {
  color: #666;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.aal-qs-inventory-panel .aal-qs-num {
  text-align: right;
}

.aal-qs-inventory-panel .aal-qs-selected-row {
  background: #fff8e8;
}

@media (max-width: 640px) {
  .aal-qs-availability-head {
    display: block;
  }

  .aal-qs-status-pill {
    display: inline-block;
    margin-top: 10px;
  }

  .aal-qs-availability-metrics {
    gap: 7px 14px;
  }
}
