.purchase-page #row1f {
  margin-left: 0;
  margin-right: 0;
}

.purchase-page .cart-items-table th,
.purchase-page .cart-items-table td {
  padding: 6px;
}

@media (max-width: 991.98px) {
  .purchase-page .navbar {
    flex-wrap: wrap;
  }

  .purchase-page .site-navbar-brand {
    position: static;
    flex: 0 0 100%;
    margin-right: 0;
    text-align: center;
    transform: none;
  }

  .purchase-page .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .purchase-page .navbar-nav .nav-link {
    padding: 8px;
  }
}

@media (max-width: 575.98px) {
  .purchase-page #row1f > .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
  }

  .purchase-page .navbar {
    margin-bottom: 0 !important;
    padding: 8px;
  }

  .purchase-page .navbar-nav .nav-link {
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .purchase-page .cart-items-table,
  .purchase-page .cart-items-table tbody,
  .purchase-page #card-details-section table,
  .purchase-page #card-details-section tbody,
  .purchase-page #success-order-details table,
  .purchase-page #success-order-details tbody {
    display: block;
    width: 100%;
  }

  .purchase-page .cart-items-table {
    border: 0;
  }

  .purchase-page .cart-items-table thead,
  .purchase-page #card-details-section thead,
  .purchase-page #success-order-details thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .purchase-page .cart-items-table tbody tr,
  .purchase-page #card-details-section tbody tr,
  .purchase-page #success-order-details tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #d9d9d9 !important;
    border-radius: 6px;
    background: #fff;
  }

  .purchase-page .cart-items-table tbody td,
  .purchase-page #card-details-section tbody td,
  .purchase-page #success-order-details tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px !important;
    border: 0;
    text-align: right !important;
    overflow-wrap: anywhere;
  }

  .purchase-page .cart-items-table tbody td:first-child,
  .purchase-page #card-details-section tbody td:first-child,
  .purchase-page #success-order-details tbody td:first-child {
    display: block;
    text-align: left !important;
    font-weight: 600;
  }

  .purchase-page .cart-items-table tbody td:not(:first-child)::before,
  .purchase-page #card-details-section tbody td:not(:first-child)::before,
  .purchase-page #success-order-details tbody td:not(:first-child)::before {
    flex: 0 0 auto;
    font-weight: 600;
    text-align: left;
  }

  .purchase-page .cart-items-table td:nth-child(2)::before,
  .purchase-page #card-details-section td:nth-child(3)::before,
  .purchase-page #success-order-details td:nth-child(3)::before {
    content: "Price";
  }

  .purchase-page .cart-items-table td:nth-child(3)::before,
  .purchase-page #card-details-section td:nth-child(2)::before,
  .purchase-page #success-order-details td:nth-child(2)::before {
    content: "Qty";
  }

  .purchase-page .cart-items-table td:nth-child(4)::before,
  .purchase-page #card-details-section td:nth-child(4)::before,
  .purchase-page #success-order-details td:nth-child(4)::before {
    content: "Subtotal";
  }

  .purchase-page .cart-items-table td:nth-child(5)::before {
    content: "Action";
  }

  .purchase-page .lease-items-table td:nth-child(2)::before,
  .purchase-page .lease-summary td:nth-child(3)::before {
    content: "Monthly Price" !important;
  }

  .purchase-page .lease-items-table td:nth-child(4)::before,
  .purchase-page .lease-summary td:nth-child(4)::before {
    content: "Monthly Total" !important;
  }

  .purchase-page .cart-items-table input[type="number"] {
    min-height: 38px;
  }

  .purchase-page .cart-items-table button {
    min-height: 38px;
  }

  .purchase-page #paypal-button-container,
  .purchase-page #card-row,
  .purchase-page .payment-button-row {
    margin-left: 0 !important;
  }

  .purchase-page #authorizePay,
  .purchase-page #authorizePurchasePay,
  .purchase-page #authorizeSubscribe {
    max-width: 100%;
  }

  .purchase-page #card-details-section,
  .purchase-page #paypal-success,
  .purchase-page #success-order-details {
    overflow-wrap: anywhere;
  }
}
