/**
 * Front office styles. Everything is scoped under the module's own
 * containers and resets what themes commonly add to p, legend, table and
 * form groups, so the page looks the same in Classic, Warehouse,
 * Hummingbird or a custom theme.
 *
 * @author    WebStart Consulting
 * @copyright WebStart Consulting
 * @license   Proprietary – WebStart Consulting (see LICENSE)
 */

/* ------------------------------------------------------------- labels */
/* The legal wording is stored as written in the decree (lower case): the
   buttons show it in capitals, titles and links with a capital first letter,
   whatever the theme does. */
.wscwd-btn,
#wscwd .wscwd-btn,
.wscwd-order-box .wscwd-btn {
  text-transform: uppercase;
  letter-spacing: .02em;
}
.wscwd-title,
.wscwd-footer-link,
.wscwd-account-block-link,
.wscwd-history-link {
  display: inline-block;
}
.wscwd-title::first-letter,
.wscwd-footer-link::first-letter,
.wscwd-account-block-link::first-letter,
.wscwd-history-link::first-letter {
  text-transform: uppercase;
}

/* ------------------------------------------------------------- base */
#wscwd,
#wscwd-receipt,
#wscwd-history {
  max-width: 1100px;
  color: inherit;
}
section#wscwd.wscwd p,
section#wscwd-receipt.wscwd p,
section#wscwd-history.wscwd p,
section#wscwd.wscwd ul,
section#wscwd.wscwd ol,
section#wscwd.wscwd dl,
section#wscwd-receipt.wscwd dl {
  margin: 0 0 1rem;
  padding-left: 0;
  padding-right: 0;
  text-indent: 0;
}
#wscwd .wscwd-muted,
.wscwd-order-box .wscwd-muted,
.wscwd .wscwd-muted {
  color: #6c757d;
}
#wscwd .wscwd-block {
  display: block;
}
#wscwd .wscwd-h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 1rem;
  padding: 0;
  text-transform: none;
}
#wscwd .wscwd-help {
  margin-bottom: 1.25rem;
}
.wscwd .wscwd-alert {
  margin: 0 0 1.25rem;
}
#wscwd .wscwd-errors {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}

/* ------------------------------------------------------------- cards and grid */
.wscwd .wscwd-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 0 0 1.5rem;
}
.wscwd .wscwd-card-soft {
  background: #f8f8f8;
}
.wscwd .wscwd-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
}
.wscwd .wscwd-card-head .wscwd-h2 {
  margin-bottom: 0;
}
#wscwd .wscwd-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
#wscwd .wscwd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 1.25rem;
}
@media (max-width: 767px) {
  #wscwd .wscwd-grid,
  #wscwd .wscwd-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .wscwd .wscwd-card {
    padding: 1rem;
  }
}

/* ------------------------------------------------------------- steps */
#wscwd .wscwd-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  counter-reset: none;
}
#wscwd .wscwd-step {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #6c757d;
  margin: 0;
  padding: 0;
}
#wscwd .wscwd-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
}
#wscwd .wscwd-step.is-active {
  color: #222;
  font-weight: 600;
}
#wscwd .wscwd-step.is-active .wscwd-step-no {
  background: #222;
  border-color: #222;
  color: #fff;
}
#wscwd .wscwd-step.is-done .wscwd-step-no {
  border-color: #6c757d;
}

/* ------------------------------------------------------------- forms */
#wscwd .wscwd-field {
  margin: 0 0 1rem;
}
#wscwd .wscwd-field label,
#wscwd .wscwd-items label {
  display: block;
  margin: 0 0 .35rem;
  padding: 0;
  font-weight: 600;
  text-align: left;
  float: none;
  width: auto;
}
#wscwd .wscwd-field .form-control {
  width: 100%;
  max-width: none;
}
#wscwd .wscwd-actions {
  margin: .5rem 0 0;
}
#wscwd .wscwd-login {
  margin: 1rem 0 0;
}
#wscwd .wscwd-privacy {
  font-size: .9rem;
}
.wscwd .wscwd-badge {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #f1f1f1;
  font-size: .85rem;
}
.wscwd-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------- items table */
#wscwd .wscwd-items {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  min-width: 0;
}
#wscwd .wscwd-legend {
  display: block;
  width: auto;
  float: none;
  border: 0;
  margin: 0 0 .5rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
}
.wscwd .wscwd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.wscwd .wscwd-table th,
.wscwd .wscwd-table td {
  padding: .65rem .5rem;
  border-bottom: 1px solid #e9e9e9;
  vertical-align: middle;
  text-align: left;
}
.wscwd .wscwd-table th {
  font-weight: 600;
  font-size: .9rem;
  border-bottom-width: 2px;
}
.wscwd .wscwd-table .wscwd-qty {
  width: 6.5rem;
  text-align: center;
}
#wscwd .wscwd-item-name {
  font-weight: 400;
  margin: 0;
}
#wscwd .wscwd-select {
  min-width: 4.5rem;
  margin: 0 auto;
}
.wscwd .wscwd-disabled {
  color: #6c757d;
}

/* ------------------------------------------------------------- start page lists */
#wscwd .wscwd-orders {
  list-style: none;
  margin: 0;
}
#wscwd .wscwd-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid #eee;
}
#wscwd .wscwd-order:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
#wscwd .wscwd-order:first-child {
  padding-top: 0;
}
#wscwd .wscwd-order-ref {
  font-weight: 600;
  margin-right: .5rem;
}
#wscwd .wscwd-how {
  list-style: decimal;
  padding-left: 1.2rem;
}
#wscwd .wscwd-how li {
  margin-bottom: .5rem;
}

/* ------------------------------------------------------------- review and receipt */
.wscwd .wscwd-declaration {
  font-weight: 600;
}
.wscwd .wscwd-dl {
  display: grid;
  grid-template-columns: minmax(10rem, 30%) minmax(0, 1fr);
  gap: .5rem 1.25rem;
  margin: 0;
}
.wscwd .wscwd-dl dt {
  font-weight: 600;
  margin: 0;
}
.wscwd .wscwd-dl dd {
  margin: 0;
}
@media (max-width: 575px) {
  .wscwd .wscwd-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: .15rem;
  }
  .wscwd .wscwd-dl dd {
    margin-bottom: .6rem;
  }
}
.wscwd .wscwd-pre {
  white-space: pre-line;
}
.wscwd .wscwd-review-items {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}
#wscwd .wscwd-edit {
  margin: 0;
}
#wscwd .wscwd-edit-button {
  padding: 0;
  border: 0;
  text-transform: none;
}
#wscwd .wscwd-confirm {
  margin: 0 0 1.5rem;
}
.wscwd .wscwd-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}

/* ------------------------------------------------------------- outside the page */
.wscwd-order-box {
  margin-top: 1rem;
}
.wscwd-order-box .wscwd-button {
  margin-bottom: .5rem;
}
.wscwd-order-box .wscwd-cases {
  margin: 0;
  padding-left: 1.1rem;
}
.wscwd-footer {
  padding: .5rem 15px;
}
.wscwd-history-link {
  margin-left: .5rem;
}

/* ------------------------------------------------------------- logged in: order list */
#wscwd .wscwd-other {
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #eee;
}
#wscwd .wscwd-other summary {
  cursor: pointer;
  color: #6c757d;
  margin-bottom: .75rem;
}
#wscwd .wscwd-other[open] summary {
  margin-bottom: 1rem;
}
