.order-form {
  padding: 0 !important;
  margin-bottom: 0 !important;

  & dl,
  & fieldset {
    margin: 0 1rem;

    @media (width >= 600px) {
      margin: 0 2rem;
    }
  }

  & dl > div {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
  }

  & dl dt {
    align-items: center;
    color: var(--custom-text-color);
    display: flex;
    flex: 1;
    font-size: 1rem;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 1rem 0;

    & > div {
      flex: 1;
    }

    & label {
      font-weight: 500;
      margin-bottom: 0;
    }

    & *:not(label) {
      color: var(--custom-text-color-muted);
    }

    & p {
      font-size: 0.875rem;
    }
  }

  & dl dd {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;

    & input {
      margin: 0;
    }
  }

  & dl dd button {
    background: #333;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
  }

  & input[type="text"] {
    width: 4rem;
    text-align: center;
  }

  & footer {
    border-top: 1px solid var(--custom-border-color);
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    gap: 1rem;
    padding: 1rem;

    @media (width >= 600px) {
      position: relative;
      background: var(--custom-text-background-color);
      padding: 1rem 2rem;
      margin-top: 2rem;
    }

    &.expanded {
      background: var(--custom-text-background-color-hover);
    }
  }

  & tr {
    display: flex;
    gap: 1rem;
  }

  & td {
    padding: 0;
    display: inline-flex;
    align-items: center;
  }

  & td.quantity {
    align-items: start;
  }

  & td.description {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;

    &.total {
      align-items: end;

      & em {
        font-size: 0.825rem;
        color: var(--custom-text-color-muted);
      }
    }

    & span {
      color: var(--custom-text-color-muted);
      font-size: 0.875rem;
      font-style: italic;
    }
  }

  & td.amount {
    text-align: right;
  }

  & table.summary-total {
    border-top: 3px double var(--custom-button-background-color, #09090b);
    font-weight: 500;
    padding-top: 0.5rem;

    & .description {
      align-items: flex-end;
    }
  }

  & table tr + tr {
    margin-top: 0.5rem;
  }

  & a.collapse-summary,
  & a.collapse-summary:visited {
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    width: 150px;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    height: 20px;
    margin: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--custom-text-background-color-hover);
    border: 1px solid var(--custom-border-color);
    border-bottom: 1px solid var(--custom-text-background-color-hover);
  }

  & a.expand-summary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    & .title {
      flex: 1;
    }
  }

  & .quantity {
    max-width: 40px;
  }

  & ul.error-list {
    margin-bottom: 1rem;
  }

  & .text-muted {
    color: var(--custom-text-color-muted);
  }
}
