.cart-footer {
  max-width: 968px;
  margin: 0 auto;
  padding-top: 32px; 
  width: 100%;

  @media screen and (max-width: 767px) {
    padding-top: 16px;
  }

  .cart-footer__blocks {
    display: flex;
    flex-direction: column;
  }


  .cart-footer__totals {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;

    @media screen and (max-width: 767px) {
      flex-direction: column-reverse;
      gap: 16px;
      font-size: 14px;
      padding: 0 12px;
    }
  }

  .cart-footer__total-note-red,
  .cart-footer__total-note {
    margin: initial;
    font-size: 16px;
    line-height: 1.2;

    @media screen and (max-width: 767px) {
      font-size: 14px;
    }
  }

  .cart-footer__total-note-red {
    color: #BE0000;
  }

  .cart-footer__total-right {
    display: flex;
    align-items: center;
    gap: 28px;

  }

  .cart-footer__total-title {
    p {
      margin: initial;
      line-height: 1.2;
    }
  }

  .cart-footer__total-price {
    margin: initial;
    width: 160px;
    font-size: 28px;
    line-height: 1;
    text-align: right;

    @media screen and (max-width: 767px) {
      margin-left: auto;
      width: fit-content;
      font-size: 22px;
    }
  }

  .cart-footer__remark {
    margin-top: 60px;

    label {
      .cart-footer__remark-text {
        padding: 0 20px;
        display: block;

        @media screen and (max-width: 767px) {
          padding: 0 12px;
        }
        
        span {
          margin: initial;
          display: block;
          font-size: 16px;
          line-height: 1.2;

          @media screen and (max-width: 767px) {
            font-size: 14px;
          }
        }
      }
    }

    textarea {
      margin: initial;
      margin-top: 16px;
      padding: 8px 12px;
      border: 1px solid #000;

      @media screen and (max-width: 767px) {
        font-size: 14px;
      }
    }
  }

  .cart-footer__navigation-buttons {
    margin-top: 28px;
    display: flex;
    gap: 28px;

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

  .cart-footer__navigation-button {
    flex: 1;
    padding: 20px 0;
    display: block;
    background-color: transparent;
    border: 1px solid #000;

    span {
      display: block;
      color: #121212BF;
      font-size: 16px;
      line-height: 1.2;

      @media screen and (max-width: 767px) {
        font-size: 14px;
      }
    }
  }

  .cart-footer__checkout-button {
    margin-top: 28px;
    padding: 20px 0;
    display: block;
    width: 100%;
    background-color: #777;

    @media screen and (max-width: 767px) {
      margin-top: 16px;
    }

    span {
      display: block;
      color: #fff;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.2;

      @media screen and (max-width: 767px) {
        font-size: 14px;
      }
    }
  }

  & .cart-footer__pc-only.cart-footer__pc-only.cart-footer__pc-only {
    display: inline;

    @media screen and (max-width: 767px) {
      display: none;
    }
  }
}