.fb-quick-order {
  background: #ffffff;
  color: #2b2c2d;
  margin-block: 36px 16px;
  width: 100%;
}

.fb-quick-order__inner {
  margin-inline: auto;
  max-width: 1200px;
  padding: 36px 20px 0;
}

.fb-quick-order__heading h2 {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 28px;
}

.fb-quick-order__table-wrap {
  overflow-x: auto;
}

.fb-quick-order__table {
  border: 0;
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
  width: 100%;
}

.fb-quick-order__table th,
.fb-quick-order__table td {
  border: 0;
  border-bottom: 1px solid rgba(43, 44, 45, 0.12);
  padding: 16px 12px;
  text-align: left;
  vertical-align: middle;
}

.fb-quick-order__table th {
  color: #686868;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.fb-quick-order__table th:first-child,
.fb-quick-order__table td:first-child {
  padding-left: 0;
  width: 43%;
}

.fb-quick-order__table th:nth-child(2),
.fb-quick-order__table td:nth-child(2) {
  width: 21%;
}

.fb-quick-order__table th:nth-child(3),
.fb-quick-order__table td:nth-child(3),
.fb-quick-order__table th:nth-child(4),
.fb-quick-order__table td:nth-child(4) {
  text-align: right;
  width: 18%;
}

.fb-quick-order__table th:last-child,
.fb-quick-order__table td:last-child {
  padding-right: 0;
}

.fb-quick-order__product-inner {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.fb-quick-order__image {
  align-items: center;
  background: #f4f4f4;
  border-radius: 6px;
  display: flex;
  flex: 0 0 56px;
  height: 56px;
  justify-content: center;
  overflow: hidden;
  width: 56px;
}

.fb-quick-order__image:empty::before {
  color: #686868;
  content: "-";
}

.fb-quick-order__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.fb-quick-order__identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.fb-quick-order__identity strong,
.fb-quick-order__identity small {
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.fb-quick-order__identity strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.fb-quick-order__identity small {
  color: #686868;
  font-size: 12px;
}

.fb-quantity {
  align-items: center;
  border: 1px solid rgba(43, 44, 45, 0.38);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 36px 42px 36px;
  height: 44px;
  overflow: hidden;
  width: 116px;
}

.fb-quantity button,
.fb-quantity input {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #2b2c2d;
  height: 42px;
  line-height: 1;
  margin: 0;
  min-height: 42px;
  padding: 0;
  text-align: center;
  width: 100%;
}

.fb-quantity button {
  font-size: 18px;
}

.fb-quantity button:hover {
  background: #f4f4f4;
}

.fb-quantity input {
  -moz-appearance: textfield;
  font: 14px "Jost", Arial, sans-serif;
}

.fb-quantity input::-webkit-inner-spin-button,
.fb-quantity input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.fb-quick-order__price,
.fb-quick-order__line-total {
  font-size: 15px;
  white-space: nowrap;
}

.fb-quick-order__sold-out {
  color: #686868;
  font-size: 14px;
}

.fb-quick-order__footer {
  align-items: center;
  background: #ffffff;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 112px;
  padding-block: 20px;
  position: static;
}

.fb-quick-order__actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.fb-quick-order__actions .button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 150px;
}

.fb-quick-order__cart-link {
  background: #ffffff !important;
  border: 1px solid #1c2228 !important;
  color: #1c2228 !important;
}

.fb-quick-order__summary {
  display: flex;
  gap: 40px;
  text-align: right;
}

.fb-quick-order__summary > div {
  display: grid;
  gap: 2px;
}

.fb-quick-order__summary strong {
  color: #2b2c2d;
  font-size: 18px;
  font-weight: 500;
}

.fb-quick-order__summary span {
  color: #686868;
  font-size: 12px;
}

.fb-quick-order__status {
  grid-column: 1 / -1;
  margin: -12px 0 0;
  min-height: 20px;
}

.fb-quick-order__status.is-error {
  color: #b42318;
}

.fb-quick-order__status.is-success {
  color: #16794b;
}

.fb-quick-order__spinner {
  animation: fb-spin 700ms linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  border-top-color: #ffffff;
  display: none;
  height: 16px;
  margin-left: 8px;
  width: 16px;
}

.fb-quick-order.is-loading .fb-quick-order__spinner {
  display: inline-block;
}

@keyframes fb-spin {
  to {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 989px) {
  .fb-quick-order__inner {
    padding-inline: 16px;
  }

  .fb-quick-order__table-wrap {
    overflow: visible;
  }

  .fb-quick-order__table,
  .fb-quick-order__table tbody,
  .fb-quick-order__row {
    display: block;
    width: 100%;
  }

  .fb-quick-order__table thead {
    display: none;
  }

  .fb-quick-order__row {
    border-bottom: 1px solid rgba(43, 44, 45, 0.12);
    display: grid;
    gap: 14px 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 20px;
  }

  .fb-quick-order__table td,
  .fb-quick-order__table td:first-child,
  .fb-quick-order__table td:nth-child(2),
  .fb-quick-order__table td:nth-child(3),
  .fb-quick-order__table td:nth-child(4) {
    border: 0;
    padding: 0;
    text-align: left;
    width: auto;
  }

  .fb-quick-order__product {
    grid-column: 1 / -1;
  }

  .fb-quick-order__quantity {
    align-self: end;
  }

  .fb-quick-order__price,
  .fb-quick-order__line-total {
    display: grid;
    gap: 4px;
    justify-items: end;
  }

  .fb-quick-order__price::before,
  .fb-quick-order__line-total::before {
    color: #686868;
    content: attr(data-title);
    font-size: 11px;
    text-transform: uppercase;
  }

  .fb-quick-order__price {
    grid-column: 2;
    grid-row: 2;
  }

  .fb-quick-order__line-total {
    grid-column: 2;
    grid-row: 3;
  }

  .fb-quick-order__footer {
    grid-template-columns: 1fr;
    position: static;
  }

  .fb-quick-order__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    order: 2;
  }

  .fb-quick-order__actions .button {
    min-width: 0;
    width: 100%;
  }

  .fb-quick-order__summary {
    justify-content: space-between;
    order: 1;
    text-align: left;
  }

  .fb-quick-order__summary > div:last-child {
    text-align: right;
  }

  .fb-quick-order__status {
    margin-top: 0;
    order: 3;
  }
}

@media screen and (max-width: 520px) {
  .fb-quick-order {
    margin-top: 24px;
  }

  .fb-quick-order__inner {
    padding-top: 28px;
  }

  .fb-quick-order__heading h2 {
    font-size: 25px;
  }

  .fb-quick-order__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb-quick-order__spinner {
    animation-duration: 1.5s;
  }
}


.fb-quick-order-modal {
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  color: #2b2c2d;
  max-height: 92vh;
  max-height: 92dvh;
  max-width: none;
  overflow: hidden;
  padding: 0;
  width: min(1100px, calc(100vw - 32px));
}

.fb-quick-order-modal::backdrop {
  background: rgba(28, 34, 40, 0.58);
}

.fb-quick-order-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
}

.fb-quick-order-modal__header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(43, 44, 45, 0.12);
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  min-height: 62px;
  padding: 8px 12px 8px 24px;
  position: relative;
  z-index: 20;
}

.fb-quick-order-modal__header strong {
  font: 500 16px/1.3 "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
  padding-right: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-quick-order-modal__header button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #2b2c2d;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 26px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 44px;
}

.fb-quick-order-modal__header button:hover,
.fb-quick-order-modal__header button:focus-visible {
  background: #f4f4f4;
}

.fb-quick-order-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.fb-quick-order-modal__loading,
.fb-quick-order-modal__error {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 280px;
  padding: 32px;
  text-align: center;
}

.fb-quick-order-modal__loading {
  gap: 10px;
}

.fb-quick-order-modal.is-loading .fb-quick-order__spinner {
  display: inline-block;
}

.fb-quick-order-modal__error {
  flex-direction: column;
  gap: 16px;
}

.fb-quick-order-modal__error p {
  margin: 0;
}

.fb-quick-order-modal__error .button {
  min-width: 140px;
}

.fb-quick-order--modal {
  margin: 0;
}

.fb-quick-order--modal .fb-quick-order__inner {
  max-width: none;
  padding: 28px 24px 0;
}

.fb-quick-order--modal .fb-quick-order__heading {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.fb-quick-order--modal .fb-quick-order__heading h2 {
  font-size: 24px;
  margin-bottom: 22px;
}

.fb-quick-order--modal .fb-quick-order__heading a {
  color: #2b2c2d;
  flex: 0 0 auto;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.fb-quick-order-modal-open {
  overflow: hidden;
}

@media screen and (max-width: 640px) {
  .fb-quick-order-modal {
    border-radius: 6px 6px 0 0;
    margin: auto 0 0;
    max-height: 94vh;
    max-height: 94dvh;
    width: 100vw;
  }

  .fb-quick-order-modal__panel {
    max-height: 94vh;
    max-height: 94dvh;
  }

  .fb-quick-order-modal__header {
    min-height: 58px;
    padding-left: 16px;
    padding-right: 8px;
  }

  .fb-quick-order--modal .fb-quick-order__inner {
    padding: 22px 16px 0;
  }

  .fb-quick-order--modal .fb-quick-order__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
  }

  .fb-quick-order--modal .fb-quick-order__heading h2 {
    font-size: 21px;
    margin: 0;
  }
}


.fb-quick-order__actions[hidden],
.fb-quick-order__confirmation[hidden] {
  display: none;
}

.fb-quick-order__remove-all,
.fb-quick-order__confirmation > button:last-child {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  color: #2b2c2d !important;
  display: inline-flex;
  gap: 7px;
  min-height: 42px;
  padding: 8px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fb-quick-order__remove-all.is-hidden {
  display: none;
}

.fb-quick-order__confirmation {
  align-items: center;
  display: flex;
  gap: 10px;
}

.fb-quick-order__confirmation > span {
  font-size: 14px;
  margin-right: 8px;
}

.fb-quick-order__status {
  align-items: center;
  display: flex;
  gap: 8px;
}

.fb-quick-order__spinner {
  border-color: rgba(201, 21, 119, 0.24);
  border-top-color: #c91577;
  flex: 0 0 16px;
  margin-left: 0;
}

@media screen and (max-width: 989px) {
  .fb-quick-order__confirmation {
    align-items: stretch;
    flex-direction: column;
    order: 2;
  }

  .fb-quick-order__confirmation > span {
    margin-right: 0;
    text-align: center;
  }
}
