  /* ---- Cart order-summary bar, embedded in the footer. Only rendered on
     the cart page, and only shown at tablet widths — desktop keeps its own
     sticky summary in the page grid, mobile keeps its fixed bottom bar. ---- */
  .cart-footer-summary,
  .chk-footer-summary {
    display: none;
  }

  .site-footer {
    padding: 2rem 0;
  }

  @media (min-width: 641px) and (max-width: 991px) {
    .cart-footer-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      position: fixed;
      inset-inline: 0;
      inset-block-end: 0;
      z-index: 45;
      background: #fff;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: 16px 16px 0 0;
      padding: 1.1rem 2rem calc(1.1rem + env(safe-area-inset-bottom));
      box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    }

    .cart-footer-summary__info {
      display: flex;
      align-items: baseline;
      gap: 0.9rem;
    }

    .cart-footer-summary__count {
      font-size: 13px;
      color: #888;
    }

    .cart-footer-summary__label {
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #888;
      margin-inline-end: 0.4rem;
    }

    .cart-footer-summary__value {
      font-size: 1.35rem;
      font-weight: 800;
      color: #111;
    }

    .cart-footer-summary__checkout {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex-shrink: 0;
      background: var(--cart-accent, #111);
      color: #fff;
      border: 0;
      border-radius: 2px;
      padding: 0.85rem 1.6rem;
      font-weight: 600;
      font-size: 15px;
      text-decoration: none;
      transition: opacity 0.15s ease, transform 0.1s ease;
    }

    .cart-footer-summary__checkout:hover {
      opacity: 0.88;
      transform: translateY(-1px);
    }

    /* ---- Checkout order-total bar, same tablet-docked pattern as the
       cart bar above, shown only on the checkout page. The button
       submits the checkout form via its `form` attribute even though
       it lives outside the <form> element in the DOM. ---- */
    .chk-footer-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      position: fixed;
      inset-inline: 0;
      inset-block-end: 0;
      z-index: 45;
      background: #fff;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: 16px 16px 0 0;
      padding: 1.1rem 2rem calc(1.1rem + env(safe-area-inset-bottom));
      box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    }

    .chk-footer-summary__info {
      display: flex;
      align-items: baseline;
      gap: 0.9rem;
    }

    .chk-footer-summary__label {
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #888;
      margin-inline-end: 0.4rem;
    }

    .chk-footer-summary__value {
      font-size: 1.35rem;
      font-weight: 800;
      color: #111;
    }

    .chk-footer-summary__submit {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex-shrink: 0;
      background: var(--chk-accent, #111);
      color: #fff;
      border: 0;
      border-radius: 2px;
      padding: 0.85rem 1.6rem;
      font-weight: 600;
      font-size: 15px;
      font-family: inherit;
      cursor: pointer;
      transition: opacity 0.15s ease, transform 0.1s ease;
    }

    .chk-footer-summary__submit:hover {
      opacity: 0.88;
      transform: translateY(-1px);
    }
  }

  /* ===================================================================
     Footer redesign: accent call-to-action band, brand + three link
     columns on a dark background, hairline, "Powered by" line.
     =================================================================== */
  .site-footer {
    padding: 0.25rem 0 1.5rem;
    background: #111;
    color: #fff;
    border-top: 0;
  }

  .ft-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 2rem;
    padding: 2rem 0 2.25rem;
  }

  .ft-brand__logo { display: inline-block; margin-bottom: 1rem; color: #fff; font-size: 2.4rem; font-weight: 800; text-decoration: none; }
  .ft-brand__logo img { display: block; height: 64px; width: auto; max-width: 16rem; object-fit: contain; filter: brightness(0) invert(1); }

  .ft-brand__tagline { margin: 0 0 1.25rem; max-width: 22rem; font-size: 13px; line-height: 1.6; color: #b7b7b7; }

  .ft-social { display: flex; gap: 0.6rem; }
  .ft-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #d9d9d9;
    transition: border-color 0.15s ease, color 0.15s ease;
  }
  .ft-social a:hover { border-color: var(--ft-accent); color: var(--ft-accent); }

  .ft-col__title {
    margin: 0 0 1rem;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
  }

  .ft-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
  .ft-links a, .ft-links span { font-size: 13px; color: #b7b7b7; text-decoration: none; transition: color 0.15s ease; }
  .ft-links a:hover { color: #fff; }

  .ft-links--icons li { display: flex; align-items: flex-start; gap: 0.6rem; }
  .ft-links--icons svg { flex-shrink: 0; margin-top: 2px; color: var(--ft-accent); }

  .ft-bottom { padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.14); text-align: center; }
  .ft-bottom p { margin: 0; font-size: 13px; color: #8a8a8a; }
  .ft-bottom a { color: inherit; text-decoration: underline; }

  @media (max-width: 991px) {
    .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ft-brand { grid-column: 1 / -1; }
  }

  @media (max-width: 560px) {
    .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  }

  /* Phones: just the "Powered by InvoPOS" line. */
  @media (max-width: 767px) {
    .ft-grid { display: none; }
    .site-footer { padding: 1rem 0; }
    .ft-bottom { padding-top: 0; border-top: 0; }
  }
