.finalize-block {
  width: 100%;
  margin-top: 14px;
}

.mobile-final-summary { display: none; }

.pay-now-button {
  width: 100%;
  min-height: 50px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  color: var(--color-primary-text);
  background: var(--color-primary);
  font-weight: 700;
  transition: background-color 160ms ease, transform 100ms ease;
}

.pay-now-button:hover { background: var(--color-primary-hover); }
.pay-now-button:active { transform: translateY(1px); }

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  width: 100%;
  margin-top: 48px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.policy-links button {
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: var(--color-link);
  background: transparent;
  font-size: 14px;
  line-height: 18.9px;
}

.policy-links button:hover { text-decoration: underline; }

@media (max-width: 999px) {
  .finalize-block { margin-top: 44px; }
  .mobile-final-summary { display: block; }

  .add-discount-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 122.34px;
    height: 38px;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    font-weight: 700;
    white-space: nowrap;
  }

  .add-discount-button svg { width: 15px; height: 15px; }

  .mobile-total-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
  }

  .mobile-total-product {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-right: 9px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 3px 3px 0 #eee;
  }

  .mobile-total-product img { width: 40px; height: 40px; object-fit: cover; }

  .mobile-total-copy { display: flex; flex-direction: column; line-height: 1.15; }
  .mobile-total-copy strong { font-family: var(--font-heading); font-size: 20px; line-height: 22px; }
  .mobile-total-copy small { margin-top: 1px; color: var(--color-muted); font-size: 14px; }

  .mobile-total-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  .mobile-total-price small { color: var(--color-muted); font-size: 11px; }
  .mobile-total-price strong { font-size: 20px; line-height: 24px; }
  .mobile-total-price svg { width: 16px; height: 16px; }

  .pay-now-button { margin-top: 14px; }

  .policy-links {
    gap: 4px 14px;
    margin-top: 14px;
    padding-top: 14px;
    padding-bottom: 26px;
  }
}
