@layer pages {
  .tier-order {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: var(--os-radius-pill);
    background: var(--os-color-surface-selected);
    color: var(--os-color-text-selected);
    font-size: var(--os-font-size-pill);
    font-weight: var(--os-font-weight-bold);
  }

  .tier-name {
    display: flex;
    flex-direction: column;

    strong {
      color: var(--os-color-text-body);
      font-weight: var(--os-font-weight-semibold);
    }

    small {
      font-size: var(--os-font-size-label);
    }
  }

  .tier-notice {
    display: flex;
    align-items: center;
    gap: var(--os-space-5);
  }

  .tier-notice__text {
    min-width: 0;
  }

  /* El mensaje al solicitante solo aparece con el aviso en "Sí"; la ayuda de visibilidad sigue a la opción elegida. */
  .tier-form:not(:has([name="tier[notify_customer]"][value=true]:checked)) .tier-form__message,
  .tier-form:has([name="tier[sees_all_tickets]"][value=true]:checked) .tier-form__visibility-hint[data-when=own],
  .tier-form:not(:has([name="tier[sees_all_tickets]"][value=true]:checked)) .tier-form__visibility-hint[data-when=all] {
    display: none;
  }
}
