/* START Login Page Style */
.login-registration-main {
  background-color: var(--surface-1);
  display: flex;
  flex-direction: column;
  padding: var(--header-height) 0;

  @media screen and (max-width: 768px) {
    padding: var(--header-height-mobile) 0;
  }
}

.login-registration-form-container {
  margin-top: var(--size-9);

  @media screen and (max-width: 768px) {
    margin-top:
      var(--size-5);
  }

  .submit__button {
    padding: var(--size-3) var(--size-5);
  }
}

.registration-form-content {
  .top-row {
    display: flex;
    justify-content: space-between;

    .field-wrap {
      width: 48%;
    }

    @media screen and (max-width: 768px) {}
  }

  .second-row {
    display: flex;
    justify-content: space-between;

    .field-wrap:first-child {
      width: 45%;
    }

    .field-wrap:last-child {
      width: 55%;
    }

    @media screen and (max-width: 768px) {}
  }
}

.show-password__checkbox {
  display: flex;
  margin: var(--size-000) var(--size-2);
  align-items: center;
  font-size: var(--font-size-1);

  input {
    color: var(--border-color);
    height: calc(var(--font-size-1) * .8);
    width: calc(var(--font-size-1) * .8);
    margin: 0;
    border: var(--border-style-medium);
    border-radius: var(--border-radius);

    &:checked {
      box-shadow: inset .6em .6em var(--brand);
      transition: var(--transition);
    }

  }

  label {
    font-size: var(--font-size-0);
    letter-spacing: var(--font-letterspacing-0);
  }
}

.forgot-password__link {
  margin-bottom: var(--size-7);
  text-align: right;

  a {
    color: var(--blue-9);
    font-size: var(--font-size-0);
    font-weight: var(--font-weight-5);
    margin: var(--size--1);
  }
}

.registration-notice {
  width: 80%;
  font-size: var(--font-size-00);
  margin: var(--size-9) auto var(--size-2);
  text-align: center;

  @media screen and (max-width: 768px) {
    margin-top: var(--size-5);
  }
}

.dial263-registration-notice {
  max-width: 80%;
  color: var(--text-2);
  background-color: var(--surface-2);
  margin: var(--size-1) auto var(--size-2);
  padding: var(--size-1) var(--size-3);
  border: var(--border-style-thin);
  border-color: var(--brand);
  border-radius: var(--border-radius);
  font-size: var(--font-size-00);
  font-weight: var(--font-weight-5);
  text-align: center;

  span {
    color: var(--brand);
  }
}

/* END Login Page Style */



/* START Customer Dashboard Page Style */
.customer-account-dashboard-main {
  background-color: var(--surface-1);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--header-height) 0;

  @media screen and (max-width: 768px) {
    padding: var(--header-height-mobile) 0;
  }
}

.customer-account-dashboard-header {
  background-color: var(--surface-3);
  display: flex;
  width: 70%;
  margin: var(--size-3) 0;
  flex-direction: row;
  align-items: center;
  border-bottom: var(--border-style-thick);
  border-color: var(--surface-2);
  border-radius: var(--border-radius);

  .avatar {
    width: 80px;
    aspect-ratio: 1/1;
    border-radius: 60%;
    margin: var(--size-3) var(--size-5);
    border: var(--border-style-thick);
    overflow: hidden;
    box-shadow: 0 0 0 var(--size-1) var(--surface-1);

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .customer-account-metadata {
    width: 65%;
    margin: auto;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
  }

  .customer-metadata-block {
    width: 100%;
    display: flex;
    align-items: center;

    .customer__metadata {
      min-width: 30%;
      padding: var(--size-1) var(--size-2);
      border-left: var(--border-style-thick);
      border-color: var(--text-1);
      display: flex;
      align-items: center;
    }
  }

  .alert__icon {
    color: var(--danger-2);
    margin-left: var(--size-1);
    font-size: var(--font-size-4);
    animation: var(--animation-bounce);
    animation-duration: .75s;
    animation-iteration-count: 3;
  }

  .approve__icon {
    color: var(--approve-2);
    margin-left: var(--size-1);
    font-size: var(--font-size-3);
  }

  .dial263-verification-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--surface-2);
    color: var(--brand);
    margin: var(--size-1);
    padding: calc(var(--size-1) / 2) var(--size-1);
    border-radius: var(--border-radius);
    font-size: var(--font-size-0);
    font-weight: var(--font-weight-5);
    border: var(--border-style-thin);
    border-color: var(--brand);
    cursor: pointer;
  }

  @media screen and (max-width: 768px) {
    width: 100%;
    margin: 0;
    flex-flow: row wrap;
    padding-top: var(--size-3);
    border: none;
    border-bottom: var(--border-style-medium);

    .avatar {
      max-width: 20%;
      margin: var(--size-1);

      img {
        object-fit: contain;
        background-color: var(--surface-1);
      }
    }

    .customer-account-metadata {
      flex-grow: 1;
      max-width: 70%;
      text-align: center;
      margin: 0;
      padding: 0;
    }

    .customer-metadata-block {
      width: 100%;
      flex-direction: column;
      border-top: var(--border-size-3) solid var(--border-color);
      margin-left: -1px;
      font-size: var(--font-size-0);
      font-weight: var(--font-weight-5);
      line-height: var(--font-lineheight-0);

      .customer__metadata {
        padding: none;
        border-left: none;
      }
    }

    .alert__icon {
      font-size: var(--font-size-3);
    }

    .approve__icon {
      font-size: var(--font-size-1);
    }
  }
}

.logout-form {
  flex-grow: 1;

  .submit__button {
    margin: var(--size-1);

    @media screen and (max-width: 768px) {
      margin: var(--size-2) var(--size-3);
    }
  }
}

.customer-dashboard-breadcrumbs {
  display: flex;
  align-items: center;
  margin: var(--size-2) var(--size-1);
  list-style-type: none;

  @media screen and (max-width: 768px) {
    font-size: var(--font-size-0);
    margin: var(--size-1) var(--size-1);
  }
}

.customer-dashboard__breadcrumb {
  color: var(--border-color);
  background-color: var(--surface-3);
  margin: var(--size-1);
  transform: skew(-20deg);
  border-radius: var(--border-radius);

  a {
    padding: calc(var(--size-1) / 2) var(--size-2);
    display: block;
    transform: skew(20deg);
  }

  &:hover {
    color: var(--text-1);
    background-color: var(--brand);
  }


  &.last-breadcrumb {
    padding: calc(var(--size-1) / 2) var(--size-3);
    border: var(--border-style-medium);
    border-radius: var(--border-radius);
    pointer-events: none;

    a {
      color: var(--text-1);
    }
  }
}

.customer-dashboard-content__header {
  width: 100%;
  text-align: center;

  &:nth-of-type(1) {
    background-color: var(--brand);
  }

  @media screen and (max-width: 768px) {
    margin-top: var(--size-3);
    min-width: 100%;
    letter-spacing: var(--font-letterspacing-0);
  }
}

.customer-dashboard-content {
  min-width: 768px;
  width: 90%;
  margin-bottom: var(--size-9);

  @media screen and (max-width: 768px) {
    min-width: 100%;
  }
}

.customer-dashboard-menu {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;

  @media screen and (max-width: 768px) {
    flex-direction: column;
  }
}

.customer-dashboard-menu-item {
  width: var(--size-content-2);
  background-color: var(--surface-3);
  display: flex;
  flex-direction: column;
  margin: var(--size-2);
  border: var(--border-style-medium);
  border-radius: var(--border-radius);
  line-height: var(--font-lineheight-1);

  h2 {
    font-weight: var(--font-weight-6);
    line-height: var(--font-lineheight-0);
    letter-spacing: var(--font-letterspacing-0);
  }

  a {
    flex-grow: 1;
    padding: var(--size-2);
  }

  &:hover {
    border-color: var(--surface-2);
    transition: var(--transition);
    box-shadow: var(--inner-shadow-1);

    i {
      color: var(--brand);
      line-height: auto;
    }
  }

  .alert__icon {
    color: var(--danger-2);
    margin-left: var(--size-2);
    font-size: var(--font-size-4);
  }

  @media screen and (max-width: 768px) {
    width: 97.5%;
    margin: calc(var(--size-1) / 2) auto 0;

    &:active {
      border-color: var(--brand);
    }

    .alert__icon {
      font-size: var(--font-size-3);
    }
  }
}

.label-with-icon {
  color: var(--text-1);
  display: flex;
  align-items: center;
  line-height: var(--font-lineheight-1);

  .label-icon {
    color: var(--surface-2);
    margin: var(--size-2);
  }

  @media screen and (max-width: 768px) {
    .label-icon {
      margin: var(--size-1) var(--size-2);
    }
  }
}

.message-card-list {
  display: flex;
  flex-flow: column;
  justify-content: align-items;
  list-style-type: none;

  @media screen and (max-width: 768px) {
    flex-direction: column;
  }
}

.message-card-item {
  width: 100%;
  background-color: var(--surface-3);
  margin: var(--size-1) auto var(--size-3);
  border-bottom: var(--border-style-medium);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-2);

  @media screen and (max-width: 768px) {
    width: 90%;
    margin: var(--size-1) auto;

    &:active {
      border-color: var(--brand);
    }
  }
}

.message-card-subject {
  color: var(--text-2);
  background-color: var(--surface-2);
  flex-grow: 1;
  padding: var(--size-1) var(--size-3);
}


.message-card-details {
  background-color: var(--border-color);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--size-2);

  @media screen and (max-width: 768px) {
    flex-direction: column;
    font-size: var(--font-size-0);
  }
}

.message-card-sender {
  &::before {
    color: var(--text-2);
    font-weight: var(--font-weight-6);
    content: "FROM: "
  }
}

.message-card-date {
  color: var(--brand);

  @media screen and (max-width: 768px) {
    text-decoration: underline;
  }
}

.message-card-content {
  width: 90%;
  margin: var(--size-2) auto;
  padding-bottom: var(--size-3);
  border-bottom: var(--border-style-medium);
}

.account-information-dashboard {
  .form-container {
    margin: var(--size-3) auto;
  }
}

.address-book-dashboard {
  @media screen and (max-width: 768px) {
    .field-wrap {
      margin-bottom: var(--size-2) !important;
    }
  }
}

.address-card-list {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  list-style-type: none;

  @media screen and (max-width: 768px) {
    flex-flow: column;
    justify-content: center;
    align-items: center;
  }
}

.address-card {
  background-color: var(--surface-3);
  width: var(--size-content-3);
  max-width: 45%;
  display: flex;
  flex-flow: row wrap;
  margin: var(--size-3) auto;
  padding: var(--size-3) var(--size-3);
  border-top: var(--border-style-medium);
  border-right: var(--border-style-medium);
  box-shadow: var(--shadow-1);

  b {
    width: 93%;
    margin: var(--size-1) auto 0;
  }

  p {
    width: 90%;
    margin: 0 auto 0;
    line-height: var(--font-lineheight-1);

    &:last-of-type {
      margin-bottom: var(--size-3);
    }
  }

  &:has(.primary-address__label) {
    padding: 0 var(--size-3) var(--size-1);
    order: -1;
  }

  .submit__button {
    min-width: 45%;
    max-width: 45%;
    margin: var(--size-1) auto;
    padding: var(--size-1) var(--size-3);
    letter-spacing: var(--font-letterspacing-0);

    &:hover {
      color: var(--text-1);
      background-color: var(--surface-1);
      box-shadow: var(--shadow-2);
    }
  }

  @media screen and (max-width: 768px) {
    max-width: 90%;
    padding: var(--size-1) 0;

    &:has(.primary-address__label) {
      padding: 0 0 var(--size-1);
    }

    .submit__button {
      padding: var(--size-2) var(--size-3);
      font-size: var(--font-size-1);
    }
  }
}

.set-address__button {
  color: var(--text-2);
  background-color: var(--surface-2);
}

.delete-address__button {
  background-color: var(--danger-1);
}

.primary-address__label {
  color: var(--brand);
  background-color: var(--surface-2);
  min-width: 98%;
  max-width: 98%;
  width: 98%;
  margin: calc(var(--size-1) / 3) auto 0;
  padding: var(--size-1) 0;
  border: var(--border-style-medium);
  border-color: var(--brand);
  text-align: center;
  order: -1;

  &:last-of-type {
    margin-bottom: var(--size-3);
  }

}

.delete-address__button {
  background-color: var(--danger-1);
}



.orders-container {
  width: 100%;
  margin: auto;
  margin-bottom: var(--size-7);
}

.orders-card-list {
  list-style-type: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

.completed-orders-card-list {
  background-color: var(--surface-2);
  padding: var(--size-4) 0 var(--size-7);
  list-style-type: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

.order-card {
  background-color: var(--surface-3);
  flex-basis: 45%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  border: var(--border-style-thick);
  border-color: var(--surface-2);
  border-radius: var(--border-radius);
  margin: var(--size-2) auto;
  padding: 0 var(--size-2);

  .completed-orders-card-list & {
    background-color: var(--surface-1);
    border-color: var(--brand);
    border-top: unset;
  }

  @media screen and (max-width: 768px) {
    flex-basis: 90%;
    padding: 0 var(--size-1);

    .completed-orders-card-list & {
      flex-basis: 96.5%;
      margin: var(--size-3) auto;
      border-radius: unset;
      border-left: unset;
      border-right: unset;
      border-top: var(--border-style-thick);
      border-color: var(--surface-3);
    }
  }
}

.order-card__date {
  background-color: var(--surface-1);
  flex-basis: 100%;
  padding: 0 var(--size-3);

  .completed-orders-card-list & {
    background-color: var(--brand);
  }

  &:before {
    content: 'order date: ';
    margin-left: var(--size-2);
    margin-right: var(--size-1);
    text-transform: uppercase;
    font-size: var(--font-size-00);
  }

  @media screen and (max-width: 768px) {
    font-size: var(--font-size-0);
  }
}

.order-card__amount {
  color: var(--approve-1);
}

.order-card-info-block {
  width: 45%;
  margin: var(--size-1) auto;

  p {
    margin: var(--size-1) var(--size-3);
  }

  @media screen and (max-width: 768px) {

    p {
      letter-spacing: var(--font-letterspacing-0);
    }

    &:nth-of-type(1) {
      width: 57.5%;
    }

    &:nth-of-type(2) {
      width: 35%;
    }
  }
}

.order-card__ful-name {
  text-align: center;
  line-height: var(--font-lineheight-0);
}

.order-card__invoice {
  width: 90%;
  list-style-type: square;
  margin: 0 auto;

  ::marker {
    color: var(--brand);
    font-size: var(--font-size-3);
    letter-spacing: var(--font-letterspacing-0);
  }

  li {
    font-size: var(--font-size-1);
    font-weight: var(--font-weight-5);
    line-height: var(--font-lineheight-0);
    letter-spacing: var(--font-letterspacing-0);
  }
}


.order-card-status-block {
  flex-basis: 75%;
  display: flex;
  margin: var(--size-1) 0;

  b {
    flex-basis: 42.5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    &:before {
      margin-left: var(--size-2);
      margin-right: var(--size-1);
      text-transform: uppercase;
      font-size: var(--font-size-00);
    }
  }

  @media screen and (max-width: 768px) {
    flex-basis: 60%;
    flex-direction: column;

    b {
      flex-basis: 47.5%;
    }
  }
}

.order-card__order-status {
  margin: var(--size-2);
  border-bottom: var(--border-style-thick);
  border-right: var(--border-style-thick);
  border-color: var(--brand);
  box-shadow: var(--shadow-1);
  text-align: center;

  .completed-orders-card-list & {
    border-color: var(--approve-1);
  }

  &:before {
    content: 'order status: ';
  }
}

.order-card__ful-status {
  margin: var(--size-2);
  border-bottom: var(--border-style-thick);
  border-right: var(--border-style-thick);
  border-color: var(--brand);
  box-shadow: var(--shadow-1);
  text-align: center;

  .completed-orders-card-list & {
    border-color: var(--approve-1);
  }

  &:before {
    content: 'fulfillment status: ';
  }
}

.order-card__pay-status {
  margin: var(--size-2);
  border-bottom: var(--border-style-thick);
  border-right: var(--border-style-thick);
  border-color: var(--brand);
  box-shadow: var(--shadow-1);
  text-align: center;

  &:before {
    content: 'payment status: ';
  }
}

.order-card__pay-gate {
  margin: var(--size-2);
  border-bottom: var(--border-style-thick);
  border-right: var(--border-style-thick);
  border-color: var(--brand);
  box-shadow: var(--shadow-1);
  text-align: center;

  &:before {
    content: 'payment type: ';
  }
}

.order-card__estimate {
  background-color: var(--surface-1);
  flex-basis: 50%;
  padding: var(--size-1);
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-2);
  text-align: center;

  .completed-orders-card-list & {
    display: none;
  }

  &:before {
    content: 'estimate pickup date/time: ';
    color: var(--approve-2);
    margin-left: var(--size-2);
    margin-right: var(--size-1);
    text-transform: uppercase;
    font-size: var(--font-size-0);
  }

  @media screen and (max-width: 768px) {
    font-size: var(--font-size-1);
  }
}

.order-card__button {
  background-color: var(--border-color);
  flex-basis: 22.5%;
  margin-top: auto;
  margin-left: auto;
  padding: var(--size-2);

  @media screen and (max-width: 768px) {
    flex-basis: 35%;
    margin-bottom: var(--size-5);
  }
}

.order-card__id {
  flex-basis: 100%;
  text-align: right;
  font-size: var(--font-size-00);
  margin-top: var(--size-3);

  &:before {
    content: '#:';
    font-weight: bold;
  }

  @media screen and (max-width: 768px) {
    margin-top: var(--size-1);
  }
}

.invoice-card {
  line-height: var(--font-lineheight-0);

  .invoice-item-list {
    width: 100%;
    margin: var(--size-1) auto;
    list-style-type: none;
  }

  .order-card-status-block {
    flex-basis: 95%;

    b {
      flex-basis: 22.5%;
    }
  }

  .order-invoice-item {
    margin: var(--size-1) auto var(--size-2);
  }

  .order-invoice-item-details {
    width: 100%;
    list-style-type: none;
  }

  .order-invoice-line-item-details {
    list-style-type: none;
    margin: 0 0 var(--size-1);

    span:nth-child(2) {
      font-weight: var(--font-weight-6);
      text-decoration: underline;
    }
  }

  @media screen and (max-width: 768px) {
    max-width: 100%;
    flex-basis: 97.5%;

    .order-card-status-block {
      flex-basis: 95%;
      flex-flow: row wrap;

      b {
        flex-basis: 45%;
        margin: var(--size-1) auto;
      }
    }

    .order-invoice-item-details {
      font-size: var(--font-size-0);
      font-weight: var(--font-weight-5);
    }
  }
}




.customer-dashboard-vouchers-container {
  width: 100%;
  margin: auto;
  margin-bottom: var(--size-7);
}

.active-voucher-card-list {
  list-style-type: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

.active-voucher-card {
  background-color: var(--surface-3);
  flex-basis: 45%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  border: var(--border-style-thick);
  border-color: var(--surface-2);
  border-radius: var(--border-radius);
  margin: var(--size-2) auto;

  @media screen and (max-width: 768px) {
    flex-basis: 95%;
  }
}

.voucher-balance-card {
  background-color: var(--surface-1);
  border: unset;
  border-top: var(--border-style-medium);
  border-bottom: var(--border-style-thick);

  .voucher-card__shop {
    font-size: var(--font-size-2);
  }

  .voucher-card-order-block {
    p:nth-child(1) {
      font-size: var(--font-size-3);
      line-height: var(--font-lineheight-0);
      letter-spacing: var(--font-letterspacing-1);
      text-align: center;
      text-transform: uppercase;
    }
  }

  .voucher-card-order {
    margin: var(--size-2) 0 var(--size-5);
  }

  .voucher-order__invoice-summary {
    list-style-type: square;
  }

  @media screen and (max-width: 768px) {
    width: 100%;
    flex-basis: 100%;
    box-shadow: var(--shadow-1);

    .voucher-card__balance {
      font-size: var(--font-size-6);
    }
  }
}

.voucher-card__id {
  width: 100%;
  background-color: var(--surface-2);
  color: var(--brand);
  text-indent: var(--size-3);
  padding: 0 var(--size-1);

  &:before {
    color: var(--text-2);
    content: "Voucher ID:\a";
    font-size: var(--font-size-0);
    font-weight: var(--font-weight-6);
    white-space: pre;
  }
}

.voucher-card__balance {
  color: var(--approve-2);
  background-color: var(--surface-1);
  flex-basis: 85%;
  margin: 0 0 var(--size-1);
  text-indent: var(--size-1);
  display: flex;

  .voucher-card__shop {
    color: var(--text-1);
    margin: auto;
    display: flex;

    &:before {
      color: var(--brand);
      content: "Merchant:\a";
      font-size: var(--font-size-0);
      font-weight: var(--font-weight-6);
      text-transform: uppercase;
    }
  }

  &:before {
    color: var(--text-1);
    content: "Balance:\a";
    font-size: var(--font-size-0);
    font-weight: var(--font-weight-6);
    text-transform: uppercase;
  }

  @media screen and (max-width: 768px) {
    flex-flow: row wrap;
    font-size: var(--font-size-2);

    .voucher-card__shop {
      font-size: var(--font-size-1);

      &:before {
        font-size: var(--font-size-00);
      }
    }

    &:before {
      font-size: var(--font-size-00);
    }
  }
}

.voucher-card-recipient-block {
  line-height: var(--font-lineheight-0);
  flex-basis: 90%;
}

.voucher-card-recipient-list {
  list-style-type: square;
  width: 100%;

  ::marker {
    color: var(--brand);
    font-size: var(--font-size-3);
  }
}

.voucher-recipient__id {
  font-weight: var(--font-size-2);
}


.voucher-card-order-block {
  flex-basis: 95%;
  margin: var(--size-3) auto var(--size-1);
  line-height: var(--font-lineheight-0);
}


.voucher-card-order {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  margin: var(--size-1) 0 var(--size-2);
  border-top: var(--border-style-medium);
}

.voucher-order__id {
  width: 45%;
  flex-basis: 45%;
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-0);
  font-weight: var(--font-weight-5);

  span:nth-child(1) {
    font-size: var(--font-size-00);
    font-weight: var(--font-weight-6);
  }

  .id-value {
    color: var(--brand);
    text-overflow: ellipsis;

    /* Required for text-overflow to do anything */
    white-space: nowrap;
    overflow: hidden;
  }
}

.voucher-order__status {
  width: 25%;
  flex-basis: 25%;
  display: flex;
  flex-direction: column;
  text-align: center;

  span {
    font-size: var(--font-size-00);
  }
}

.voucher-order__order-total {
  width: 30%;
  flex-basis: 30%;
  color: var(--approve-1);
  text-align: right;
}

.voucher-order__invoice-summary {
  flex-basis: 95%;
  margin: 0 auto;
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-5);

  ::marker {
    color: var(--brand);
    font-size: var(--font-size-2);
  }

  @media screen and (max-width: 768px) {
    font-size: var(--font-size-0);

    ::marker {
      font-size: var(--font-size-1);
    }
  }
}

.voucher-card__button {
  width: 80%;
  margin: var(--size-1) auto;
  padding: var(--size-1);
  background-color: var(--border-color);

  &:hover {
    color: var(--brand);
    background-color: var(--surface-2);
  }
}

.voucher__balance {
  margin: var(--size-1);
  color: var(--approve-1);
}



/** START Customer Cart Page Style */
.shopping-cart-main {
  flex-grow: unset;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: center;
  padding: var(--header-height) 0;

  @media screen and (max-width: 768px) {
    flex-flow: column;
    padding: var(--header-height-mobile) 0;
  }
}

.shopping-cart__header {
  width: 95%;
  margin: var(--size-1) auto var(--size-3);
  padding: var(--size-3) var(--size-5) var(--size-1);
  border-bottom: var(--border-style-thin);
  line-height: var(--font-lineheight-1);

  @media screen and (max-width: 768px) {
    width: 100%;
    margin: var(--size-1) auto;
    padding: var(--size-1) 0;
    font-size: var(--font-size-7);
    text-align: center;
    letter-spacing: var(--font-letterspacing-0);
  }
}

.empty-cart-section {
  width: var(--size-content-2);
  max-width: 80%;
  height: 10vh;
  margin: var(--size-5) auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.empty-cart__notice {
  display: flex;
  flex-flow: column;
  align-items: space-around;
  justify-content: space-around;
  cursor: pointer;

  p {
    color: var(--blue-9);
  }

  &:hover {

    b,
    p {
      text-shadow: var(--text-shadow);
    }

    p {
      color: var(--brand);
    }
  }
}

.guest-cart__notice {
  color: var(--danger-1);
  background-color: var(--danger-background);
  margin: var(--size-1) 25%;
  padding: calc(var(--size-1) / 2) var(--size-5);
  border: var(--border-style-medium);
  border-radius: var(--border-radius);
  border-radius: var(--border-radius);
  font-size: var(--font-size-0);
  font-weight: var(--font-weight-5);
  text-align: center;
  animation: var(--animation-bounce);
  animation-duration: .5s;
  animation-iteration-count: 2;
  cursor: pointer;
  order: 2;

  span {
    margin: 0 var(--size-2);
    text-decoration: underline;
    font-weight: var(--font-weight-7);
  }

  p {
    margin: calc(var(--size-1) / 2) 0 var(--size-1);
    line-height: var(--font-lineheight-0);
  }

  @media screen and (max-width: 768px) {
    padding: calc(var(--size-1) / 2) var(--size-2);
    width: 85%;
    margin: auto;
    line-height: var(--font-lineheight-0);
    order: unset;
  }
}


.fulfillment-information-section {
  flex-basis: 55%;
  margin: var(--size-1) 0 var(--size-1) auto;
  order: 3;

  .field-label {
    width: 90%;
    text-indent: var(--size-3);
  }

  @media screen and (max-width: 768px) {
    width: 100%;
    margin: auto;
    flex-direction: column;
    justify-content: center;

    .field-wrap {
      margin-bottom: var(--size-2) !important;
    }
  }
}

.fulfillment-type-radio-field {
  width: 90%;
  display: flex;
  flex-flow: row wrap;

  label {
    text-decoration: underline;

    .cart-pickup-notice {
      text-shadow: none;
    }
  }

  input[type=radio] {
    display: none;

    ~label {
      cursor: pointer;
    }

    b:after {
      content: "(available for all items)";
      display: block;
      color: var(--danger-1);
      margin: calc(var(--size-1) / 2) var(--size-1);
      font-size: var(--font-size-00);
      text-transform: uppercase;
    }
  }

  input[type="radio"]:checked+label {
    background: var(--surface-3);
    border: var(--border-style-thick);
    border-color: var(--surface-2);
    pointer-events: none;

    b {
      color: var(--brand);

      &:after {
        content: "(available for all items)";
        display: block;
        color: var(--approve-2);
        margin: var(--size-1);
        font-size: var(--font-size-00);
        text-transform: uppercase;
      }
    }
  }

  input[type="radio"]:disabled+label {
    opacity: 65%;
    color: var(--border-color);
    background: var(--surface-2);
    pointer-events: none;

    b:after {
      content: "(unavailable for this order)";
      display: block;
      color: var(--danger-1);
      margin: var(--size-1);
      font-size: var(--font-size-00);
      text-transform: uppercase;
    }
  }

  @media screen and (max-width: 768px) {
    flex-basis: unset;
    width: 95%;
    margin: auto;
  }
}

.fulfillment-type-radio-field-label {
  width: var(--size-header-2);
  margin: var(--size-1) var(--size-1) var(--size-3);
  padding: var(--size-3) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-1);
  border: var(--border-style-thin);
  border-radius: var(--border-radius);
  position: relative;

  span,
  b {
    text-align: center;
    margin: var(--size-1);
    line-height: var(--font-lineheight-1);
  }

  &:hover {
    color: var(--text-2);
    background-color: var(--border-color);
    border: var(--border-style-medium);
    border-color: var(--brand);
  }

  @media screen and (max-width: 768px) {
    flex-basis: 30%;
    margin: var(--size-1) auto;
    padding: var(--size-1) 0;

    span {
      font-size: var(--font-size-0);
    }

    b,
    span {
      line-height: var(--font-lineheight-0);
    }

    .cart-pickup-notice {
      font-size: var(--font-size-0);
      text-decoration: none;
    }

    &:hover {
      color: var(--text-1);
    }
  }
}

.cart-pickup-notice {
  display: flex;
  width: 85%;
  margin: var(--size-2) auto;
  justify-content: center;
  align-items: center;
  color: var(--brand);
  text-align: center;
  font-size: var(--font-size-0);
  font-weight: var(--font-weight-6);
  text-shadow: var(--text-shadow-small);

  i {
    color: var(--approve-2);
    font-size: var(--font-size-4);
    margin: var(--size-1);
  }
}


.cart-items-section__header {
  order: 5;
  width: 85%;
  margin: var(--size-2) auto 0;
  text-decoration: underline;
}

.cart-items-section {
  position: relative;
  background-color: var(--surface-1);
  flex-basis: 90%;
  margin: auto auto 0;
  padding-bottom: 1%;
  border-top: var(--border-style-medium);
  border-bottom: var(--border-style-thin);
  order: 6;

  @media screen and (max-width: 768px) {
    flex-basis: 100%;
    margin: 0;
    padding-bottom: 3%;
    box-shadow: var(--inner-shadow-2);
    order: 5;
  }
}

.shop-cart-details {
  width: 90%;
  background-color: var(--surface-3);
  display: flex;
  flex-flow: row wrap;
  margin: var(--size-2) auto var(--size-6);
  padding: 0;
  outline: var(--border-style-thick);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-2);

  &:hover {
    box-shadow: var(--shadow-4);

    .cart-product-list {
      border-color: var(--brand);
    }
  }

  &.htmx-swapping {
    animation: var(--animation-slide-out-left) forwards;
  }

  @media screen and (max-width: 768px) {
    width: 96.5%;

    flex-direction: column;
    margin: var(--size-3) auto var(--size-8);
    box-shadow: var(--shadow-4);
  }
}

.shop-cart-details__header {
  width: 100%;
  color: var(--text-2);
  background-color: var(--border-color);
  padding: var(--size-4) 0 0;
  line-height: var(--font-lineheight-0);
  text-indent: var(--size-2);

  span {
    color: var(--brand);
    font-size: var(--font-size-0);
  }
}

.cart-product-list {
  list-style-type: none;
  flex-basis: 65%;
  margin-bottom: var(--size-6);
  padding-top: var(--size-5);
  border-top: var(--border-style-thick);
}

.cart-product {
  width: 90%;
  display: flex;
  margin: 0 auto;
  padding: 0 var(--size-1);
  border-bottom: var(--border-style-medium);
  border-color: var(--brand);

  &:hover {
    box-shadow: var(--shadow-1);
    border-bottom: var(--border-style-thick);
  }

  @media screen and (max-width: 768px) {
    width: 97.5%;
    flex-flow: row wrap;
  }
}

.cart-product-image {
  flex-basis: 20%;
  max-width: 20%;
  aspect-ratio: 15/10;
  display: flex;
  justify-content: center;
  align-items: start;
  margin-top: 1%;

  img {
    flex-grow: 1;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
  }

  @media screen and (max-width: 768px) {
    flex-basis: 30%;
    max-width: 30%;
    margin-top: .5%;
    margin-left: auto;
  }
}

.cart-product-details {
  flex-basis: 45%;
  display: flex;
  flex-direction: column;
  margin: var(--size-1);

  .cart-product__name {
    margin-bottom: var(--size-1);
  }

  .cart-product-merchant {
    font-weight: var(--font-weight-5);
  }

  p {
    line-height: var(--font-lineheight-1);
    margin-left: 2.5%;

    &:not(.cart-product__name) {
      margin-left: calc(2.5% + var(--size-1));
      font-size: var(--font-size-0);
    }
  }

  p>a {
    &:visited {
      color: var(--blue-7);
    }

    &:hover {
      color: var(--brand);
    }
  }

  .cart-product__price {
    &:before {
      margin-right: var(--size-2);
      content: 'IN STOCK:';
      font-size: var(--font-size-0);
      letter-spacing: var(--font-letterspacing-0);
      color: var(--approve-2);
    }
  }

  @media screen and (max-width: 768px) {
    flex-basis: 67.5%;
    margin: 2.5% 0 0;

    p {
      line-height: var(--font-lineheight-0);

      &:not(.cart-product__name) {
        margin-right: var(--size-2);
        font-size: var(--font-size-00);
        letter-spacing: var(--font-letterspacing-0);
      }

      &.cart-product__name {
        margin-bottom: calc(var(--size-1) / 2);
      }

      &.cart-product-merchant {
        font-size: var(--font-size-00);
      }
    }

    .cart-product__price {
      line-height: var(--font-lineheight-00);

      &:before {
        margin-right: var(--size-1);
        font-size: var(--font-size-00);
        font-weight: var(--font-weight-6);
      }
    }
  }
}

.cart-product-actions {
  flex-basis: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: row wrap;

  .quantity-input {
    flex-grow: .5;

    button,
    .quantity {
      font-size: var(--font-size-5);
    }
  }

  @media screen and (max-width: 768px) {
    flex-basis: 92.5%;
    margin: auto;
    flex-direction: row;
    border-top: var(--border-style-thin);
    border-color: var(--surface-1);
    order: 3;

    .quantity-input {
      flex-basis: 20%;
      flex-grow: unset;
      margin: 0 auto;
      order: 3;

      button {
        font-size: var(--font-size-4);
      }

      .quantity {
        max-width: 1.5em;
        font-size: var(--font-size-3);
      }
    }
  }
}

.save-cart-item__button,
.delete-cart-item__button,
.return-item-to-cart__button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--size-1);
  padding: var(--size-1) var(--size-2);
  border-radius: var(--border-radius);
  font-size: var(--font-size-0);
  font-weight: var(--font-weight-5);
  justify-self: flex-end;
  line-height: var(--font-lineheight-0);

  i {
    margin: var(--size-00) calc(var(--size-1) / 2);
  }
}


.save-cart-item__button {
  background-color: var(--surface-3);
  border: var(--border-style-thin);

  &:hover {
    background-color: var(--border-color);
  }

  @media screen and (max-width: 768px) {
    order: 2;
  }
}

.delete-cart-item__button {
  background-color: var(--danger-2);
  color: var(--text-2);

  &:hover {
    background-color: var(--danger-1);
  }

  @media screen and (max-width: 768px) {
    order: 1;
  }
}

.cart-product-price-line {
  flex-basis: 15%;
  margin: var(--size-2) var(--size-3);
  text-align: end;

  @media screen and (max-width: 768px) {
    flex-basis: 90%;
    margin: -10% auto 0;
    align-self: end;
    line-height: var(--font-lineheight-1);
  }
}

.fulfillment-address-select-field {
  flex-basis: 30%;
  display: flex;
  flex-direction: column;
  margin: var(--size-1) 2.5% auto;
  background-color: var(--surface-1);
  border-top: var(--border-style-medium);
  border-bottom: var(--border-style-medium);
  border-radius: var(--border-radius);
  box-shadow: var(--inner-shadow-2);

  &:hover {
    box-shadow: var(--shadow-1);
  }

  select {
    background-color: var(--surface-3);
    min-width: var(--size-content-1);
    margin: 0 var(--size-2);
    padding: calc(var(--size-1) / 2) var(--size-2);
    font-size: var(--font-size-3);
    font-weight: var(--font-weight-5);
    border: var(--border-style-thin);
    border-radius: var(--border-radius);

    &:hover,
    &:active {
      cursor: hand;
    }

    &:focus {
      outline: 0;
      color: var(--brand);
      background-color: var(--border-color);
      border-color: var(--brand);
      transition: var(--transition);
    }
  }

  .cart-fulfillment-address {
    background-color: var(--surface-1);
    min-width: var(--size-header-1);
    display: flex;
    margin: var(--size-2);
    padding: calc(var(--size-1) / 2) var(--size-2);

    i {
      margin: var(--size-2) var(--size-1) 0 var(--size-5);
    }
  }

  .address-card {
    width: unset;
    min-width: 70%;
    margin: 0;
    padding: var(--size-1);
    border: none;
    box-shadow: none;
    font-weight: var(--font-weight-5);
  }

  @media screen and (max-width: 768px) {
    justify-content: center;

    select {
      width: 95%;
      margin: auto;
      font-size: var(--font-size-2);
    }

    .cart-fulfillment-address {
      margin: var(--size-1) auto 0;
      max-width: 90%;

      i {
        margin-left: var(--size-2);
      }
    }
  }
}

.shop-cart-actions {
  flex-basis: 65%;
  display: flex;
  margin: var(--size-1) auto 0;
  padding: 0;

  button {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: var(--size-1) var(--size-2);
    box-shadow: var(--inner-shadow-2);
    text-align: center;
    text-transform: uppercase;
    line-height: var(--font-lineheight-1);
    font-weight: var(--font-weight-7);

    &:active,
    &:hover {
      box-shadow: var(--shadow-1);
      transition: var(--transition);
    }
  }

  .clear-shop-cart__button {
    color: var(--text-2);
    background-color: var(--danger-2);
    border-top-left-radius: var(--radius-1);

    i {
      margin: auto var(--size-2);
    }
  }

  .save-shop-cart__button {
    color: var(--text-1);
    background-color: var(--surface-1);
  }

  .checkout-shop-cart__button {
    color: var(--text-1);
    background-color: var(--brand);
    display: flex;
    justify-content: space-around;
    min-width: 60%;
    border-top-right-radius: var(--radius-1);

    b {
      font-size: var(--font-size-5);
    }

    &:hover {
      b {
        color: var(--text-2);
      }
    }
  }

  @media screen and (max-width: 768px) {
    width: 100%;
    margin: var(--size-1) 0 0;
    padding: 0;

    button {
      line-height: var(--font-lineheight-0);
      padding: calc(var(--size-1) / 2) var(--size-2);

      span {
        font-size: var(--font-size-0);
      }
    }

    .clear-shop-cart__button {
      border-top-left-radius: unset;
      border-bottom-left-radius: var(--radius-1);
    }

    .checkout-shop-cart__button {
      flex-direction: column;
      border-top-right-radius: unset;
      border-bottom-right-radius: var(--radius-1);

      b {
        color: var(--text-2);
        font-size: var(--font-size-3);
      }
    }
  }
}


.shopping-cart-checkout-section {
  position: relative;
  flex-basis: 35%;
  margin: var(--size-1) auto var(--size-1) 0;
  display: flex;
  flex-direction: column;
  order: 4;

  .submit__button {
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
    padding: var(--size-3);
    border-radius: unset;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);

    &:hover,
    &:active {
      i {
        color: var(--brand);
      }

      span {
        text-decoration: underline;
      }
    }
  }

  .back__button {
    color: var(--text-2);
    background-color: var(--surface-2);
    width: 80%;
    max-width: 80%;
    padding: var(--size-2) 0;
    font-weight: var(--font-weight-5);
  }

  &+.checkout-secondary {
    flex-basis: 75%;
    flex-direction: row;
    order: 6;
    margin: 0 auto;

    .submit__button {
      border-bottom-left-radius: unset;
      height: 50%;
    }
  }

  @media screen and (max-width: 768px) {
    width: 100%;
    margin: 0 auto;
    order: 6;

    .submit__button {
      padding: var(--size-3);
      box-shadow: var(--shadow-1);
    }

    .back__button {
      padding: var(--size-2) 0 var(--size-3);
      box-shadow: var(--shadow-1);
    }

    &+.checkout-secondary {
      display: none;
    }
  }
}

.shopping-cart-totals {
  background-color: var(--surface-1);
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: var(--size-4);
  border-top: var(--border-style-medium);
  border-left: var(--border-style-medium);
  border-color: var(--surface-2);
  box-shadow: var(--shadow-1);

  p {
    font-size: var(--font-size-0);
    margin: calc(var(--size-1) / 2) var(--size-5) var(--size-2);
  }

  @media screen and (max-width: 768px) {
    width: 100%;
    border-left: none;
    border-top: var(--border-style-thick);
  }
}

.shopping-cart-totals-item {
  width: 95%;
  display: flex;
  margin: auto;
  justify-content: space-between;

  label {
    min-width: 65%;
    max-width: 65%;

    &:after {
      content: ':'
    }
  }

  &.final-total-item {
    width: 95%;
    margin: var(--size-3) auto;
    border-top: var(--border-style-medium);
    border-color: var(--surface-1);

    label {
      min-width: 55%;
      max-width: 55%;
    }
  }

  .totals__value {
    flex-grow: 1;
    text-align: end;
  }
}

.saved-cart-items-section__header {
  color: var(--text-2);
  margin: var(--size-2) var(--size-3) 0;
  border-bottom: var(--border-style-thick);
  border-color: var(--surface-3);
  text-transform: uppercase;
  line-height: var(--font-lineheight-1);
}

.saved-cart-items-section {
  position: relative;
  background-color: var(--border-color);
  flex-basis: 80%;
  margin: var(--size-7) auto 0;
  border: var(--border-style-thin);
  border-radius: var(--border-radius);
  order: 7;


  @media screen and (max-width: 768px) {
    flex-basis: 100%;
    margin: var(--size-5) auto;
    box-shadow: var(--inner-shadow-2);
    border-radius: unset;
    order: 6;

  }
}

.saved-cart-product-list {
  list-style-type: none;
  flex-basis: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--size-1);
  padding-top: var(--size-1);
}

.saved-cart-product {
  background-color: var(--surface-3);
  color: var(--text-1);
  width: 30%;
  display: flex;
  flex-flow: row wrap;
  margin: var(--size-1);
  padding: var(--size-1);
  border: var(--border-style-thin);
  border-radius: var(--border-radius);
  border-color: var(--brand);

  .blue__link,
  .blue__link:visited {
    color: var(--border-color);
  }

  .cart-product-actions {
    flex-basis: 55%;
  }

  &:hover {
    box-shadow: var(--shadow-1);
    border-bottom: var(--border-style-thick);
    border-color: var(--brand);
  }

  @media screen and (max-width: 768px) {
    width: 46.5%;
    margin: calc(var(--size-1) / 2) auto;

    .cart-product-image {
      flex-basis: 40%;
      max-width: 40%;
    }

    .cart-product-details {
      flex-basis: 57.5%;
      line-height: var(--font-lineheight-0);
      letter-spacing: var(--font-letterspacing-0);
      font-size: var(--font-size-0);
      font-weight: var(--font-weight-5);
    }

    .cart-product-actions {
      flex-basis: 92.5%;
    }

    .cart-product-price-line {
      margin: -5% auto 0;
    }
  }
}

.return-item-to-cart__button {
  background-color: var(--surface-2);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: calc(var(--size-1) / 2) auto var(--size-1);
  padding: var(--size-1) var(--size-2);
  border: var(--border-style-thin);
  border-color: var(--surface-2);
  border-radius: var(--border-radius);
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-6);
  line-height: var(--font-lineheight-0);
  letter-spacing: var(--font-letterspacing-0);
  justify-self: center;

  i {
    margin: var(--size-00) calc(var(--size-1) / 2);
  }

  &:hover {
    background-color: var(--border-color);
  }

  @media screen and (max-width: 768px) {
    order: 2;
    font-size: var(--font-size-1);
  }
}

.saved-cart-items-section-actions {
  display: flex;
}

.clear-all-saved-cart-button {
  max-width: 47.5%;
  width: 47.5%;
  color: var(--text-2);
  background-color: var(--danger-2);
  margin: var(--size-3) auto var(--size-1);
  padding: var(--size-2);

  &:hover,
  &:active {
    background-color: var(--danger-1);
    box-shadow: var(--inner-shadow-1);
    border: var(--border-style-thin);
  }

  @media screen and (max-width: 1024px) {
    max-width: 47.5%;
    width: 47.5%;
    font-size: var(--font-size-0);
  }
}

.return-all-saved-cart-button {
  max-width: 47.5%;
  width: 47.5%;
  color: var(--text-2);
  background-color: var(--brand);
  margin: var(--size-3) auto var(--size-1);
  padding: var(--size-2);

  &:hover,
  &:active {
    background-color: var(--surface-1);
    box-shadow: var(--inner-shadow-1);
    border: var(--border-style-thin);
  }

  @media screen and (max-width: 1024px) {
    max-width: 47.5%;
    width: 47.5%;
    font-size: var(--font-size-0);
  }
}

.clear-cart-button {
  max-width: unset;
  color: var(--text-2);
  background-color: var(--danger-2);
  width: 90%;
  margin-top: var(--size-9);
  padding: var(--size-3) var(--size-2);
  order: 8;

  &:hover,
  &:active {
    background-color: var(--danger-1);
    box-shadow: var(--inner-shadow-1);
    border: var(--border-style-thin);
  }

  @media screen and (max-width: 1024px) {
    width: 95%;
    margin-top: var(--size-8);
  }
}

/* END Shopping Cart Page Style */

/* START Checkout Page Style */
.order-checkout-main {
  flex-grow: unset;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: center;
  padding: var(--header-height) 0;

  @media screen and (max-width: 1024px) {
    flex-flow: column;
    align-items: center;
    padding: var(--header-height-mobile) 0;
  }
}

.order-checkout__header {
  width: 95%;
  margin: var(--size-1) auto var(--size-1);
  padding: var(--size-3) var(--size-5) var(--size-1);
  border-bottom: var(--border-style-thin);
  border-color: var(--surface-2);
  line-height: var(--font-lineheight-1);

  @media screen and (max-width: 768px) {
    width: 100%;
    padding: var(--size-1) 0;
    font-size: var(--font-size-7);
    text-align: center;
    letter-spacing: var(--font-letterspacing-0);
  }
}

.checkout-information-section {
  background-color: var(--surface-3);
  flex-basis: 55%;
  display: flex;
  flex-direction: column;
  border: var(--border-style-medium);
  border-radius: var(--border-radius);

  .address-card {
    background-color: unset;
    max-width: 90%;
    margin: 0 var(--size-1);
    padding: var(--size-1);
    border: none;
    box-shadow: none;
  }

  @media screen and (max-width: 768px) {
    width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
  }
}

.checkout-fulfillment-information {
  background-color: var(--surface-1);
  padding: var(--size-1) var(--size-2);
  border-bottom: var(--border-style-thin);
}

.checkout-billing-information {
  padding: var(--size-1) var(--size-2);
  border-bottom: var(--border-style-thin);

  .alert__icon {
    color: var(--danger-1);
    margin: 0 var(--size-3);
    font-size: var(--font-size-5);
  }
}

.checkout-billing-address-button {
  max-width: 50%;
  width: 50%;

  i {
    color: var(--text-2);
    margin: var(--size-1);
  }

  @media screen and (max-width: 768px) {
    max-width: 80%;
    width: 80%;
  }
}

.checkout-payment-information {
  position: relative;
}

.checkout-payment-methods-selection {
  h3 {
    margin: var(--size-1) var(--size-3);
  }
}

.payment-method-radio-field {
  display: flex;
  flex-flow: row wrap;

  input[type=radio] {
    display: none;

    ~label {
      cursor: pointer;
    }
  }

  input[type="radio"]:disabled+label {
    opacity: 75%;
    background: var(--surface-2);
    pointer-events: none;

    &.with-notice:after {
      content: "Account Information Required";
      display: block;
      color: var(--danger-1);
      margin: var(--size-1);
      font-size: var(--font-size-0);
      text-transform: uppercase;
      text-align: center;
    }

    &.with-notice-2:after {
      content: "Currently Unavailable";
      display: block;
      color: var(--danger-1);
      margin: var(--size-1);
      font-size: var(--font-size-0);
      text-transform: uppercase;
      text-align: center;
    }
  }

  .submit__button {
    max-width: 60%;
    width: 60%;
    margin: var(--size-3) auto;
  }

  input[type="radio"]:checked+label {
    background: var(--surface-3);
    border: var(--border-style-thick);
    border-color: var(--surface-2);
    pointer-events: none;
    box-shadow: var(--shadow-2);

    b {
      color: var(--brand);
    }

    @media screen and (max-width: 768px) {
      box-shadow: none;
    }
  }

  @media screen and (max-width: 768px) {
    padding: 0 2.5%;
    box-shadow: none;
  }
}


.payment-method-radio-field-label {
  position: relative;
  background: var(--surface-1);
  width: var(--size-11);
  max-height: var(--size-header-1);
  margin: var(--size-2);
  padding: var(--size-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  border: var(--border-style-thin);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-1);

  img {
    max-width: 95%;
    max-height: 95%;
    aspect-ratio: 1/1;
    object-fit: contain;
  }

  &:hover {
    color: var(--brand);
    background-color: var(--border-color);
    border: var(--border-style-medium);
    border-color: var(--brand);
    box-shadow: var(--shadow-3);
  }

  @media screen and (max-width: 768px) {
    width: 25%;
    max-height: unset;
    padding: var(--size-1);
    box-shadow: var(--shadow-1);
  }
}

.payment-form-container {
  flex-basis: 100%;
  background-color: var(--surface-1);
  padding: var(--size-1);
  border-bottom: var(--border-style-thin);
  border-top: var(--border-style-thin);

  .paypal-button-container {
    max-width: 600px;
    margin: auto;
    padding: var(--size-3) var(--size-2);
    border: var(--border-style-thin);
    border-radius: var(--border-radius);
    background-color: var(--border-color);
  }

  .submit__button {
    max-width: 80%;
    width: 80%;
    padding: var(--size-4) var(--size-7);
    margin: var(--size-4) auto var(--size-1);
  }
}

.invoice-summary-section {
  background-color: var(--surface-3);
  flex-basis: 42.5%;
  border: var(--border-style-medium);
  border-radius: var(--border-radius);

  @media screen and (max-width: 768px) {
    float: none;
    background-color: var(--surface-1);
    width: 95%;
    margin: var(--size-1) 0 var(--size-2);
    border-top: var(--border-style-medium);
    box-shadow: var(--shadow-1);
  }
}

.invoice-summary__header {
  color: var(--text-2);
  background-color: var(--surface-2);
  padding: var(--size-2);

  p {
    margin-left: var(--size-2);
  }
}

.checkout-cart-item-list {
  list-style-type: none;
}

.checkout-cart-item {
  background-color: var(--surface-3);
  display: flex;
  align-items: center;
  padding: var(--size-2) var(--size-3);

  .sold-by {
    color: var(--border-color);
  }

  @media screen and (max-width: 768px) {

    .sold-by {
      font-size: var(--font-size-0);
      line-height: var(--font-lineheight-0);
    }
  }
}

.checkout-cart-item-details {
  flex-grow: 1;
  border-bottom: var(--border-style-medium);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-flow: row wrap;

  p {
    width: 95%;
    line-height: var(--font-lineheight-0);
  }
}

.checkout-digital-service-details {
  margin: var(--size-3);

  p:nth-child(1) {
    font-size: var(--font-size-4);
    margin-right: var(--size-1);
  }

  b {
    margin-left: var(--size-1);
    margin-right: var(--size-1);
  }

  span {
    font-weight: var(--font-weight-5);
  }
}

.order-totals {
  width: 100%;
  background-color: var(--surface-1);

  .checkout-fees {
    color: var(--danger-1);
    text-align: right;
    padding: var(--size-2) var(--size-5);
    border-top: var(--border-style-medium);
    line-height: var(--font-lineheight-1);
  }

  .checkout-total {
    padding: var(--size-2) var(--size-5);
    border-top: var(--border-style-medium);
  }
}

.place-order__button {
  width: 100%;
  color: var(--text-1);
  background-color: var(--brand);
  line-height: var(--font-lineheight-0);

  &:hover {
    transition: var(--transition);
    box-shadow: var(--shadow-1);
    color: var(--text-2);
    background-color: var(--surface-2);
  }

  &:active {
    box-shadow: var(--inner-shadow-1);
  }

  @media screen and (max-width: 768px) {
    line-height: var(--font-lineheight-4);
  }
}

.checkout-notice {
  background-color: var(--surface-2);
  color: var(--text-2);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-00);

  i {
    color: var(--brand);
    margin: var(--size-1);
    font-size: var(--font-size-1);
  }
}

.checkout-complete-main {
  .checkout-success-message-box {
    flex-grow: 1;
    width: 80%;
    margin: var(--header-height) auto;
    padding: var(--header-height) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;

    @media screen and (max-width: 768px) {
      width: 85%;
      max-width: 85%;
      margin: var(--header-height-mobile) auto;
      padding: var(--header-height-mobile) 0;
    }
  }
}

.checkout-success-message-box {
  display: flex;
  flex-direction: column;
  height: var(--size-content-1);
  aspect-ratio: 2/1;
  text-align: center;

  i {
    font-size: var(--font-size-8);
    color: var(--approve-2);
    animation: var(--animation-pulse);
    animation-duration: .5s;
  }

  p {
    color: var(--brand);
    background-color: var(--surface-2);
    border-radius: var(--border-radius);
  }
}
