@layer components {
  /* -----------------------------------------------------------------
   * Review page sections (Return items / Return method / Refund method
   * / Refund overview). Each section has a small grey header with an
   * "Edit" link on the right, separated from the body by a thin rule.
   * ----------------------------------------------------------------- */
  .review-block + .review-block {
    margin-top: var(--spacing-2xl);
  }

  .review-block__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-md);
  }

  .review-block__title {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--portal-foreground-muted);
    margin: 0;
  }

  .review-block__title--standalone {
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
    margin: 0 0 var(--spacing-md) 0;
  }

  .review-block__edit {
    font-size: 0.9375rem;
    color: var(--color-text);
    text-decoration: none;
  }

  .review-block__edit:hover {
    text-decoration: underline;
  }

  .review-block__value {
    margin: 0;
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
  }

  /* -----------------------------------------------------------------
   * Single item row inside the "Return items" section. Image on the
   * left, title / variant·price / reason stacked on the right. No
   * card background — sits flush in the section.
   * ----------------------------------------------------------------- */
  .review-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .review-item + .review-item {
    margin-top: var(--spacing-md);
  }

  .review-item__image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  .review-item__image--placeholder {
    background-color: var(--color-gray-100);
  }

  .review-item__details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
  }

  .review-item__title {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
  }

  .review-item__variant,
  .review-item__reason {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
  }

  /* -----------------------------------------------------------------
   * Refund overview: tabular label/value rows with a total row that's
   * separated by a fine rule and rendered in bold. The optional
   * "Switch to ..." hint sits below the table in muted grey.
   * ----------------------------------------------------------------- */
  .refund-overview {
    margin: 0;
  }

  .refund-overview__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--spacing-xs) 0;
  }

  .refund-overview__row dt {
    color: var(--color-text);
    font-size: 0.9375rem;
  }

  .refund-overview__row dd {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    text-align: right;
  }

  .refund-overview__row--total {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    font-weight: 600;
    flex-wrap: wrap;
  }

  .refund-overview__row--total dt,
  .refund-overview__row--total dd {
    font-weight: 600;
    font-size: 1rem;
  }

  .refund-overview__subtext {
    flex-basis: 100%;
    font-size: 0.775rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-align: left;
  }

  .refund-overview__switch {
    margin: var(--spacing-md) 0 0 0;
    font-size: 0.9375rem;
    color: var(--portal-muted-foreground);
  }

  .refund-overview__switch a {
    color: var(--portal-muted-foreground);
    text-decoration: none;
  }

  .refund-overview__switch a:hover {
    text-decoration: underline;
  }

  /* -----------------------------------------------------------------
   * Full-width "Register return" submit form at the bottom of the
   * review page.
   * ----------------------------------------------------------------- */
  .review-submit-form {
    margin-top: var(--spacing-2xl);
  }
}
