/* Completion view inside the legacy storefront checkout modal. */

.ph-storefront-root .ph-checkout-dialog > .ph-checkout-success-view {
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(30px, 5vw, 58px) !important;
  scrollbar-gutter: stable;
}

.ph-storefront-root .ph-checkout-success-view .ph-receipt-row > * {
  min-width: 0;
}

.ph-storefront-root .ph-checkout-success-view .ph-receipt-val {
  text-align: right;
  overflow-wrap: anywhere;
}

.ph-storefront-root .ph-checkout-success-view .ph-btn-copy-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-inline: 10px;
}

@media (max-width: 640px) {
  .ph-storefront-root .ph-checkout-dialog > .ph-checkout-success-view {
    max-height: 96dvh;
    padding: 62px 14px calc(24px + env(safe-area-inset-bottom)) !important;
    scrollbar-gutter: auto;
  }

  .ph-storefront-root .ph-checkout-success-view .ph-receipt-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ph-storefront-root .ph-checkout-success-view .ph-receipt-val {
    text-align: left;
  }
}
