@media (min-width: 992px) {
  #order-form > .tm-checkout-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: max-content 1fr;
  }
  .tm-checkout-actions-row::before,
  .tm-checkout-actions-row::after { display: none; }
  .tm-checkout-actions-row > #checkoutContent,
  .tm-checkout-actions-row > #checkoutSidebar { width: auto; min-width: 0; }
  .tm-checkout-actions-row > #checkoutContent { grid-area: 1 / 1; }
  .tm-checkout-actions-row > #checkoutSidebar { grid-area: 1 / 2 / span 2; }
  .tm-checkout-actions-row #checkoutContent .co-box-additional:last-child { margin-bottom: 0; }
  .tm-checkout-actions-row #checkoutSidebar .consents:last-child {
    padding-bottom: 24px;
    border-radius: 0 0 25px 25px;
  }
  .tm-checkout-actions-row > .next-step--step-2 {
    grid-area: 2 / 1;
    align-self: start;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 40px;
    padding: 0;
    background: transparent;
  }
  .tm-checkout-actions-row > .next-step--step-2 .next-step-back { margin: 0; }
  .tm-checkout-actions-row > .next-step--step-2 #submit-order { width: auto; min-width: 230px; }
}

@media (max-width: 991px) {
  .tm-checkout-mobile #checkoutContent > .cart-content > .consents {
    margin: 0 0 22px;
    padding: 14px;
    border-radius: 12px;
  }
  .tm-checkout-mobile #checkoutContent .co-box-additional { margin-bottom: 16px; }
  .tm-checkout-mobile #checkoutContent .order-summary { width: 100%; margin: 0; }
  .tm-checkout-mobile #checkoutContent .order-summary-top,
  .tm-checkout-mobile #checkoutContent .order-summary-bottom {
    margin: 0;
    padding: 12px 14px;
  }
  .tm-checkout-mobile #checkoutContent .order-summary-top h2 { margin: 0 0 8px; }
  .tm-checkout-mobile #checkoutContent .order-summary .cart-items { margin: 0; }
  .tm-checkout-mobile #checkoutContent .order-summary .cart-item,
  .tm-checkout-mobile #checkoutContent .order-summary .recapitulation-single { padding-block: 6px; }
  .tm-checkout-mobile #checkoutContent .next-step--step-2 {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
  }
  .tm-checkout-mobile #checkoutContent #submit-order { width: 100%; }
  .tm-checkout-mobile #checkoutContent .next-step-back { order: 0; margin: 0; }
  .tm-checkout-mobile #checkoutSidebar:has(> .cart-content:empty) { display: none; }
}
